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.
23 8076
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
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
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
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
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
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
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.
Ok.... Just note you should post all of the relevant information, You did not post exactly what the error was.
in the setup you need to copy all the referenced dll and ocx file . Thats why a setup is required.
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.
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
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.
Hi Ven
Well, you need to have to ask for permission for that : )
Rey Sean
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)
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)
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.
... 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.
Hi venkatanarasimhaa,
Have you google your question?
Happy New Year..
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
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.
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) : )
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).
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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?
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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?
--...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |