Click here to Skip to main content
15,868,005 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hi,
My problem is I have to install VB6 on client's computers if I want to run my VB6 applications. Actually the version of VB6 I have, can not make setup file. So I just make a link to the exe file manually.
Is there any way that I donot have to install VB6, could just copy a few files and the application could run?

Thanks
Posted
Comments
Himachandra 3-Feb-12 0:33am    
+5

hi.,

your client PC must have registered with your COM components used in your application. Make setup of your Project, this will automatically register your components automatically.

to register your components manually use REGSVR32,
other wise
make Setup[^] of your application.

Thanks
 
Share this answer
 
Comments
Furqan Sehgal 30-Dec-11 5:18am    
The copy of VB6 I have crashes while making setup. I have tried it over the years but it does the same.
How to register manually?
Thanks
Rajesh Anuhya 30-Dec-11 5:23am    
Interesting.., Why your VB6 is crashing because of your application.
BTW .. see my answer for manual registration.
"The copy of VB6 I have crashes while making setup.."

Dude, try this after crash you must install that FREE programs: CCleaner or RegCleaner and you will happy forever.

And for the .ocx and .dll you could only copy into C:\windows\system32 and maybe you won't need use Regsrv32
 
Share this answer
 
v2
Comments
Himachandra 3-Feb-12 0:33am    
+4
Quote:
How to register manually?
Thanks


type the below command in Start->RUN in client pc
REGSVR32 <your component path><br />
EX: REGSVR32 "c:\myobj.ocx"<br />

Thanks
 
Share this answer
 
v2
Comments
Furqan Sehgal 30-Dec-11 11:04am    
Please also explain about the component.... Are you talking about the dlls?
Rajesh Anuhya 30-Dec-11 11:05am    
both (ocx & dll)
Hi kfsehgal,
No need of register ur .ocx and .dll files. Just copy the dependency(According to ur application .,ie., If u use comport in ur Application means u need to copy the MSCOMM32.OCX file into Clients directory) .ocx and .dll files from C:/WINDOWS/system32 , and paste this .ocx and .dll files into ur clients C:/WINDOWS/system32.. . . .

I think this may help u .........
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900