PDA

View Full Version : Copy ocx files without registering them



johnnyg
11-04-2011, 08:23 PM
I'd like to create an installer for an app that includes several ocx files in the application path that I do not want registered. The app will load these files using reg-free com with a manifest file. I do not see any options to mark a file as "do not register". Is there any way to do this?

Alex1969
11-07-2011, 01:45 AM
Hello johnnyg,



I'd like to create an installer for an app that includes several ocx files in the application path that I do not want registered.
<snip>
I do not see any options to mark a file as "do not register". Is there any way to do this?


Is this really necessary? AFAIK there is no automatically point in the installation for register the installed (to the target directory copied...) ocx components.

Please tell me if I'm wrong and correct my statement.

MfG Alex

johnnyg
11-09-2011, 01:50 PM
Hello johnnyg,



Is this really necessary? AFAIK there is no automatically point in the installation for register the installed (to the target directory copied...) ocx components.

Please tell me if I'm wrong and correct my statement.

MfG Alex

I'm not sure I fully understand what you are saying. I need to install ocx files without interfering with existing installations on the machine that have older versions of the same ocx files registered. The way to do this is to use reg-free com which requires copying but not registering the ocx files. I have done several tests and Installshield always registers OCX files automatcially. Click-once deployment looked promising except it requires a .net based executable, mine is not .net based.

Alex1969
11-10-2011, 05:50 AM
I'm not sure I fully understand what you are saying. I need to install ocx files without interfering with existing installations on the machine that have older versions of the same ocx files registered. The way to do this is to use reg-free com which requires copying but not registering the ocx files. I have done several tests and Installshield always registers OCX files automatcially. Click-once deployment looked promising except it requires a .net based executable, mine is not .net based.

Ok.
But you could also unregister the ocx files after installation.
Please have a look at the usage of "regsvr32.exe"

HTH Alex

Johannes John
11-10-2011, 12:12 PM
Hello johnnyg,

I know four posibilties to register files.

1) In the component view set the option "COM Extract at Build" to YES
2) In the file view of the component at the file itself in the Properties view: select "Self Register"
3) Extract the selfregistering values with the tool RegSpyUI.exe and give the filename (customized pathes) in the component view to "REG File To Merge at Build"
4) Make CustomActions, where the file is registered with "regsvr32.exe" and a CA with "regsvr32.exe /u"

If you don't want the installed files to be registered, do the reverse:
1) select NO
2) unselect
3) leave empty
4) don't create the CAs

I hope, that this meats your problem.
Regards
Johannes

johnnyg
11-10-2011, 12:46 PM
Ok.
But you could also unregister the ocx files after installation.
Please have a look at the usage of "regsvr32.exe"

HTH Alex

That leaves the other installations broke unless I go reregister the original files again. Possible, but not fun. I'd rather install as a zip file then unzip it manually.

johnnyg
11-10-2011, 12:47 PM
Hello johnnyg,

I know four posibilties to register files.

1) In the component view set the option "COM Extract at Build" to YES
2) In the file view of the component at the file itself in the Properties view: select "Self Register"
3) Extract the selfregistering values with the tool RegSpyUI.exe and give the filename (customized pathes) in the component view to "REG File To Merge at Build"
4) Make CustomActions, where the file is registered with "regsvr32.exe" and a CA with "regsvr32.exe /u"

If you don't want the installed files to be registered, do the reverse:
1) select NO
2) unselect
3) leave empty
4) don't create the CAs

I hope, that this meats your problem.
Regards
Johannes

I will give this a try and report back.
Thank you,
John

It works!!! Since I was not doing 2 throug 4, all I had to do was unselection "COM Extract at Build" and the OCX files were copied but not registered.
Thank you Johannes, you are my hero.