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!!
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
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!!
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
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!!
Originally Posted by dglienna
How are you getting that to run automatically?
...
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.