This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Copy ocx files without registering them
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2011
08:23 PM
Copy ocx files without registering them
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?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 07, 2011
12:45 AM
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
johnnyg wrote:
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.
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
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 09, 2011
12:50 PM
Alex1969 wrote:
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2011
04:50 AM
johnnyg wrote:
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2011
11:12 AM
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 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
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2011
11:46 AM
Alex1969 wrote:
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.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2011
11:47 AM
Johannes John wrote:
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.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)