rwrife
Posts: 1
Joined: Wed Sep 28, 2005 1:13 pm

How do I check for installed .net prereq assembly??

I'm trying to see if the user has installed the Web Services Extensions v2.0....checking the file system is not practical since they could have, in theory, installed it anywhere on the system. I do know that it gets registered into the system has HKEY_USERS/Software/Microsoft/Installer/Assemblies/C:|Installl Folder|Microsoft.Web.Services2.dll ....the problem is is that you have to check *part* of the Key (ie ignore the path and just look for microsoft.web.services2.dll), not the value, to see if it's installed. Another problem is that is sometimes is found under HKEY_USERS, CURRENT_USER and LOCAL_MACHINE depending on the user's permissions and how they installed. Anybody know how I might be able to go about the detection of the assembly?? I wrote my own bootstrap installer and I have a "detect installed assemblies" option that scans the three locations in the registry then does another check to see if the file path in the registry key exist....anything like that in AI?
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

In order to see if Web Services Extensions 2.0 is present on the user computer you can use a custom action.

This custom action can be set to execute a DLL that does all the necessary checks and then can set some properties. You can then use those properties as suitable.

More information about custom actions at:
http://www.advancedinstaller.com/user-g ... rties.html

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”