miked
Posts: 18
Joined: Mon Jun 05, 2006 6:50 pm
Location: Maine, USA
Contact: Website

Installing Microsoft OCX in APPDIR

Our application uses the MS Treeview control in "mscomctl.ocx". I've been installing the file into a directory in our application folder and auto-registering it. Everything works fine, but we just noticed that when uninstalling the application, the MS Treeview no longer works. It should be registered and stay registered in the Windows System directory.

I would like to keep our installed version separate from the standard MS one in the Windows System directory to be sure the client is running with a supported version of the control. Is it possible to keep these two registries separate? I don't want uninstalling our application to break our users' PCs.

Thanks! (AI 4.8.1 Professional)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Is it possible to keep these two registries separate?
I don't think that this can be done since the exported registries are extracted in the same location. What you can do is to add the file in the System folder and mark its associated component (in "Organization" page) as permanent (will not be removed on uninstall).

http://www.advancedinstaller.com/user-g ... rties.html

Hope this helps.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
miked
Posts: 18
Joined: Mon Jun 05, 2006 6:50 pm
Location: Maine, USA
Contact: Website

My concern with this approach is that we overwrite the version of the file on a customer's PC with one that is different. The end result being that the installation of our application has changed the customer's PC configuration.

Is there a way to compare the versions of the files?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Is there a way to compare the versions of the files?
This is automatically done by Windows Installer. If the file already exist then WI compare the files by version. For more details please see:
http://msdn2.microsoft.com/en-us/library/aa368599.aspx

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”