473,500 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

20 New Member
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
23 8076
lotus18
866 Contributor
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
491 Contributor
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
venkatanarasimhaa
20 New Member
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
107 New Member
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
venkatanarasimhaa
20 New Member
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
venkatanarasimhaa
20 New Member
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
8,127 Recognized Expert Expert
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
491 Contributor
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
8,127 Recognized Expert Expert
in the setup you need to copy all the referenced dll and ocx file . Thats why a setup is required.
Dec 31 '07 #10
venkatanarasimhaa
20 New Member
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
venkatanarasimhaa
20 New Member
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
CyberSoftHari
487 Recognized Expert Contributor
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
866 Contributor
Hi Ven

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

Rey Sean
Dec 31 '07 #14
CyberSoftHari
487 Recognized Expert Contributor
Good and this can be use for register Dll and OCX.
When the admin uses write protected for a drive then it seems they don’t want other application to install (May be for virus protection or file versioning problem)
Dec 31 '07 #15
venkatanarasimhaa
20 New Member
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 don’t want other application to install (May be for virus protection or file versioning problem)
Dec 31 '07 #16
CyberSoftHari
487 Recognized Expert Contributor
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
Killer42
8,435 Recognized Expert Expert
... 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
220 New Member
Hi venkatanarasimhaa,

Have you google your question?

Happy New Year..
Jan 1 '08 #19
VijaySofist
107 New Member
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
8,127 Recognized Expert Expert
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
866 Contributor
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
CyberSoftHari
487 Recognized Expert Contributor
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
866 Contributor
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

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

Similar topics

6
2156
by: Robert Maas, see http://tinyurl.com/uh3t | last post by:
System login message says PHP is available, so I tried this: http://www.rawbw.com/~rem/HelloPlus/h.php It doesn't work at all. Browser just shows the source. What am I doing wrong?
4
5354
by: Active8 | last post by:
I did this once and can't remember how <blush> so I read the reportlab user guid. It says to unzip the reportlab archive - this is on w2k, BTW, with Python23 - to a directory and make a file...
4
13593
by: Thomas Jespersen | last post by:
Hello I want to create a MSI file programmatically. Do you know of any third party .NET component which can help me with that? I'm going to use it like a self extracting zip. So it is not...
17
3747
by: Carmen Wai | last post by:
Hello: I would like to know whether there is any different in installing Postgresql on the Linux system with file system of EXT2 or EXT3. I have two machines with idential OS (Red Hat 7.3...
3
3888
by: Analyst | last post by:
Is it possible to install DB2 CAE v5.2 using a response file ? From one of IBMs tech article, I found that the IBM DB2 Universal DB can be installed using a response file. My objective it to...
11
19564
by: Robert Lacoste | last post by:
Dear Access gurus, I was using since years Access 97, now under XP SP2, without any problem. However I've just reformatted my HD (viruses...), reinstalled XP SP2, and then I am no longer able to...
4
2409
by: Larry | last post by:
I have a Perl script using DBD::DB2, that runs during system startup on a Solaris system. The script is working fine during startup on many machines, except on one machine it fails complaining...
15
4563
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
8
2998
by: David Thielen | last post by:
Hi; In our setup program how do I determine if I need to run "aspnet_regiis –i" and if so, is there an API I can calll rather than finding that program on the user's disk and calling it? --...
0
7021
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7207
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7242
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5503
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4928
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3114
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3112
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1434
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
686
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.