By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,062 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

Need to create exe file which can run on any system without installing.

P: 20
Hi,

I have developed an application using VB6 as frontend and Ms-Access as backend. I have created exe file through File -> Make .exe option. I have given that exe file to my users. If they try to run that, they are getting error. If I create a setup.exe and install it on their system, then it is working fine.


Is there any way to create an EXE file which can run on any system without installing it through setup.exe ?

Please help me out on this. Thanks in advance.
Dec 31 '07 #1
Share this Question
Share on Google+
23 Replies


lotus18
100+
P: 866
Hi

You can also run that EXE file (File > Make .exe) as long as you the computer that you wanted to run the program has the references but also it depends upon what program are you developing.

Making an EXE file using the wizard, collects all the references that are needed for the program to work fine. :)

Happy New Year!!!

Rey Sean
Dec 31 '07 #2

daniel aristidou
100+
P: 491
What happens is that the Link to the database has a certain path,When you switch pc this path reamins the same but the datbase file is actually loacted else where.
If they have vb on their computer open the file and correct the path of the data control.
Daniel (~_~) Happy new Year
Dec 31 '07 #3

P: 20
Hi daniel,

Thank you very much for your reply. But the thing is, There is no problem with any database path. I am getting the login screen. When i enter the username and password, it is giving the error saying "Componet 'mscomct2.ocx' or one of its dependencies not correctly registered: a file is missing or invalid."

I have logged into the system as "USER". I dont have local admin rights on the system. Could you help me out on this as soon as possible.


Thanks in advance. Happy New Year
What happens is that the Link to the database has a certain path,When you switch pc this path reamins the same but the datbase file is actually loacted else where.
If they have vb on their computer open the file and correct the path of the data control.
Daniel (~_~) Happy new Year
Dec 31 '07 #4

VijaySofist
100+
P: 107
Hi,

I have developed an application using VB6 as frontend and Ms-Access as backend. I have created exe file through File -> Make .exe option. I have given that exe file to my users. If they try to run that, they are getting error. If I create a setup.exe and install it on their system, then it is working fine.


Is there any way to create an EXE file which can run on any system without installing it through setup.exe ?

Please help me out on this. Thanks in advance.

Hai Venkat!

Copy and Paste the mscomct2.ocx to all the users machine and run the command regsvr32 mscomct2.ocx in the Start-->Run Window


Wish You a Happy and a Prosperous New Year

With Regards
Vijay. R
Dec 31 '07 #5

P: 20
Hi Rey,

Thank you very much for your reply. I dont know how to create EXE file using wizard and how to collect the referrences. Could u please help me out on this?

When I double click on my exe file, I am getting the login screen. When i enter the username and password, it is giving the error saying "Componet 'mscomct2.ocx' or one of its dependencies not correctly registered: a file is missing or invalid."

I have logged into the system as "USER". I dont have local admin rights on the system. Could you help me out on this as soon as possible.

Thanks in advance. Happy New year

Venkat.


Hi

You can also run that EXE file (File > Make .exe) as long as you the computer that you wanted to run the program has the references but also it depends upon what program are you developing.

Making an EXE file using the wizard, collects all the references that are needed for the program to work fine. :)

Happy New Year!!!

Rey Sean
Dec 31 '07 #6

P: 20
Hi Vijay,

Thank you very much for your reply.
I have kept my database on a network shared drive. So everyone will have access to that.

When I double click on my exe file, I am getting the login screen. When i enter the username and password, it is giving the error saying "Componet 'mscomct2.ocx' or one of its dependencies not correctly registered: a file is missing or invalid."

I have logged into the system as "USER". I dont have local admin rights on the system. Could you help me out on this as soon as possible.

Thanks in advance. Happy New year

Venkat.


Hai Venkat!

Can you Please explain us what is the process going on, in your Application.

One more question "Is the DataBase available in the machine where you paste your exe"

Please Explain about the Error in detail.



Wish You a Happy and a Prosperous New Year

With Regards
Vijay. R
Dec 31 '07 #7

debasisdas
Expert 5K+
P: 8,127
you need to create the setup and install the same in alll the target PC to work perfectly. If you create only the exe it will work provided that there is no reference to any external file or database.
Dec 31 '07 #8

daniel aristidou
100+
P: 491
Ok.... Just note you should post all of the relevant information, You did not post exactly what the error was.
Dec 31 '07 #9

debasisdas
Expert 5K+
P: 8,127
in the setup you need to copy all the referenced dll and ocx file . Thats why a setup is required.
Dec 31 '07 #10

P: 20
Hi,

Is there any way that i can include all those .dll and .ocx files in the exe file itself without any setup. y because, the same will be used by others where in they dont have any hard disk to install on their systems. They are working on client systems.

Hope y got my problem.
Please help me on this. Thanks in advance.

Venkat.

in the setup you need to copy all the referenced dll and ocx file . Thats why a setup is required.
Dec 31 '07 #11

P: 20
Hi Vijay,

I can not copy the .dll or .ocx files to the system32 folder as I dont have any rights to do the same. even if i try to do the same, it will say "disk is write-protected. Access-denied".


Is there any way that i can include all those .dll and .ocx files in the exe file itself without any setup. y because, the same will be used by others where in they dont have any hard disk to install on their systems. They are working on client systems.

Hope y got my problem.
Please help me on this. Thanks in advance.

Venkat.



Hai Venkat!

Copy and Paste the mscomct2.ocx to all the users machine and run the command regsvr32 mscomct2.ocx in the Start-->Run Window


Wish You a Happy and a Prosperous New Year

With Regards
Vijay. R
Dec 31 '07 #12

Expert 100+
P: 487
I suggest .Exe file require ocx and dll to run in any system (your query seems you are not doing any web application). Any how you will install EXE in a system, then why cannot you install all OCX and DLL in EXE (Application) Path?
Open your project copy all your required OCX and DLL to the application path and refresh (give) reference to the application path in your project.
Now you create setup package only with your application path.
Note: You have to be careful and check twice and more with your system and nearby system then publish your project.
Dec 31 '07 #13

lotus18
100+
P: 866
Hi Ven

Well, you need to have to ask for permission for that : )

Rey Sean
Dec 31 '07 #14

Expert 100+
P: 487
Good and this can be use for register Dll and OCX.
When the admin uses write protected for a drive then it seems they dont want other application to install (May be for virus protection or file versioning problem)
Dec 31 '07 #15

P: 20
Hi Hari,

Is there any other way to copy all the DLLs and OCXs through progamatically.
or Is there any way to keep all the required DLLs and OCXs in the exe itself.




Good and this can be use for register Dll and OCX.
When the admin uses write protected for a drive then it seems they dont want other application to install (May be for virus protection or file versioning problem)
Dec 31 '07 #16

Expert 100+
P: 487
If your (System) admin allows you to register DLL and OCX then you can do what I prefer before. If all the rights were locked then you have to contact your administrator.
Dec 31 '07 #17

Expert 5K+
P: 8,434
... Is there any way to create an EXE file which can run on any system without installing it through setup.exe ?
Sure. Don't use VB.

I like VB and don't like to discourage people from using it. But as far as I'm aware, it cannot create a truly standalone program. Assembler can do it, of course, and presumably there are other languages which can.
Jan 1 '08 #18

werks
100+
P: 220
Hi venkatanarasimhaa,

Have you google your question?

Happy New Year..
Jan 1 '08 #19

VijaySofist
100+
P: 107
Hi Vijay,

I can not copy the .dll or .ocx files to the system32 folder as I dont have any rights to do the same. even if i try to do the same, it will say "disk is write-protected. Access-denied".


Is there any way that i can include all those .dll and .ocx files in the exe file itself without any setup. y because, the same will be used by others where in they dont have any hard disk to install on their systems. They are working on client systems.

Hope y got my problem.
Please help me on this. Thanks in advance.

Venkat.
Hi Venkat!

Sorry for the late Reply yaar.

Can you please request your System administrator to copy and paste the mscomct2.ocx in the target machine and run the command regsvr32 mscomct2.ocx in the Start-->Run Window of the same.

Please Reply us the Status.

With Regards
Vijay. R
Jan 2 '08 #20

debasisdas
Expert 5K+
P: 8,127
Is there any other way to copy all the DLLs and OCXs through progamatically.
or Is there any way to keep all the required DLLs and OCXs in the exe itself.
Then you have only one option left , install VB 6.0 itself in the target systems.

then you can directly run your exe.
Jan 2 '08 #21

lotus18
100+
P: 866
Then you have only one option left , install VB 6.0 itself in the target systems.

then you can directly run your exe.
I think this will only applicable if he is not using any ocx controls (other references) : )
Jan 2 '08 #22

Expert 100+
P: 487
Setup package is essential for every EXE (or at least copy Ocx and dll then register). It is not good practice to install VB in client machine (instead you can install your package).
Note: How sure about your EXE requires OCX and DLL only from VB (there may require some other supportive files).
Jan 2 '08 #23

lotus18
100+
P: 866
It is not good practice to install VB in client machine (instead you can install your package).
Yes I agree with you. Installing VB in client machine is not really a good practice. The only way to solve this problem (I think) is to ask for permission to install it.

Rey Sean
Jan 2 '08 #24

Post your reply

Sign in to post your reply or Sign up for a free account.