Small Question: If i use a zip file setup does it register the ocx files!!
hi...
I made a zip file then connverte it to exe and i put in it only ocx files and told him to extract them to the windoes/system/
does it registered the ocx automaticilly or there is a option to tell him to do that?
Re: Small Question: If i use a zip file setup does it register the ocx files!!
Small Answer: no, it doesn't.
Add a comment.
Re: Small Question: If i use a zip file setup does it register the ocx files!!
Quote:
Originally Posted by penagate
Small Answer: no, it doesn't.
Add a comment.
What do you mean "Add a comment."
And does any body have a setup program that register the ocx but without Next>Next>Next>Next> Just with one click next and extract them :confused:
Re: Small Question: If i use a zip file setup does it register the ocx files!!
Sorry wasn't very clear. I meant add a comment to the zip file. But as it turns out (just checked) you can't do that to EXE zips.
As for the setup prog, it is a fairly easy thing to do yourself. Just place all of the ocx files into the zip and name the installer setup.exe or install.exe. IIRC you can then make it into a self-extracting EXE zip and your own setup prog will run automatically when the EXE is run.
You just need the following code:
VB Code:
Shell "regsvr32 /s " & OCXName
for each OCX file that the zip contains.
If you want to, tell me the names of the ocx files and I will make you a quick project that you can compile.
Re: Small Question: If i use a zip file setup does it register the ocx files!!
Quote:
Originally Posted by penagate
Sorry wasn't very clear. I meant add a comment to the zip file. But as it turns out (just checked) you can't do that to EXE zips.
As for the setup prog, it is a fairly easy thing to do yourself. Just place all of the ocx files into the zip and name the installer
setup.exe or
install.exe. IIRC you can then make it into a self-extracting EXE zip and your own setup prog will run automatically when the EXE is run.
You just need the following code:
VB Code:
Shell "regsvr32 /s " & OCXName
for each OCX file that the zip contains.
If you want to, tell me the names of the ocx files and I will make you a quick project that you can compile.
So..What i understand from you is that the exe zip file just extract the ocx to the system directory and don't registered them but i can put this code "Shell "regsvr32 /s " & OCXName" in my project to registered the ocx after extracting..IF so can't i made simply a resource file contain ocx files and extract them to the c:/windows/system ??
and does this code "regsvr32 /s " & OCXName" register the ocx and then tell me in a message box that the ocx are registered succefully or registered them in Hide :confused:
You propebly didn't understand a word cause i'm not that good with english..
But if you want to make for me a program that extact OCX files only and registered them then that will be great :)
Re: Small Question: If i use a zip file setup does it register the ocx files!!
Quote:
You propebly didn't understand a word cause i'm not that good with english..
Ummm.... :D
The /s switch means that no message boxes will be displayed. That's best for when there are a few files to register.
Tell me what the names of the OCX files are, and I will make a sample project for you. Tommorow! It's late where I am. :D
Re: Small Question: If i use a zip file setup does it register the ocx files!!
Quote:
Originally Posted by penagate
Ummm.... :D
The /s switch means that no message boxes will be displayed. That's best for when there are a few files to register.
Tell me what the names of the OCX files are, and I will make a sample project for you. Tommorow! It's late where I am. :D
thx man..
You can do in whatever ocxfiles that you want..And i'll replace them when i get the code from you :)
1 Attachment(s)
Re: Small Question: If i use a zip file setup does it register the ocx files!!
OK here it is.
Small example project, one form only, to show you (and other ppl)
- how to use the regsvr32 util from VB to register dependencies
- just for fun, how to use the browse for folder API.
If you need anything more just ask :D
Re: Small Question: If i use a zip file setup does it register the ocx files!!
How are you getting that to run automatically?
Re: Small Question: If i use a zip file setup does it register the ocx files!!
Quote:
Originally Posted by dglienna
How are you getting that to run automatically?
...
Quote:
Originally Posted by penagate
Just place all of the ocx files into the zip and name the installer setup.exe or install.exe. IIRC you can then make it into a self-extracting EXE zip and your own setup prog will run automatically when the EXE is run.
When the user runs the exe, Winzip detects that it is the installer app and automatically extracts all of the other files to a temporary folder. Then when you click Install in the app it will copy the dlls/ocxs from the temporary folder into the folder of choice, and register them.