Extended Registy Search Problems - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Extended Registy Search Problems

We have both 64-bit and 32-bit versions of the same program. These are treated as completely separate products and some of our customers run the 32-bit version on a 64-bit box while others run the 64-bit version. I added some searches and launch conditions to prevent the 64-bit installer running if the 32-bit version was already installed and vice-verse. Because all our installations are always written as major upgrades, the check was to see whether the relevant compressed guid was present as a registry key under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes. This seems to work fine on Server 2008 64-bit but fails on server 2003 64-bit. For server 2003 the installer is only searching the 32-bit registry and is therefore not finding the key.
I have tried modifying my search to use HKEY_CLASSES_ROOT\Installer\UpgradeCodes instead but Server 2003 appears to be searching HKEY_USERS\Installer\UpgradeCodes instead!

Is this a problem with Advanced Installer or is it an issue with the versions of Windows Installer?

Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Extended Registy Search Problems

Hi Phil,

You can try to add another similar search with "Search the 64-bit portion of the registry" option enabled.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Extended Registy Search Problems

Phil
mihai.petcu wrote:You can try to add another similar search with "Search the 64-bit portion of the registry" option enabled.
As far as I am aware, this option is not available for an Extended search.
I have solved my immediate problem by using the Extended Search for Product Version (identify by upgrade code) instead, however I would still be interested to know what the cause of my original problem was.

Regards,

Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Extended Registy Search Problems

Hi Phil,
I have tried modifying my search to use HKEY_CLASSES_ROOT\Installer\UpgradeCodes instead but Server 2003 appears to be searching HKEY_USERS\Installer\UpgradeCodes instead!
Actually, the correct search location for the Upgrade Code of an installed registered application is the one described in the following thread.
For server 2003 the installer is only searching the 32-bit registry and is therefore not finding the key.
Usually, if a search is performed on a x64 machine, the Wow6432Node registry entry must be taken in consideration:
http://www.advancedinstaller.com/user-g ... -node.html
So if you could have both x86 and x64 versions of your application possibly installed on a x64 machine, a best practice is to add a regular search( for x64 version ) and one pointing to Wow6432Node( for x86 version ). This is what the "Search the 64-bit portion of the registry" option does and the reason I recommended it.

Indeed as you mentioned yourself, there could have been a problem on that particular x64 machine. You can easily verify this by testing the package on other similar Windows Server 2003 clean machines.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Extended Registy Search Problems

Hi Mihai,
If I do a normal (i.e. non-extended) registry search then I have to specify a value. The problem is that there are no values I can sensibly use - the only value is the compressed guid of the product key, which changes with each release. This is why I attempted to do an extended search for a key where unfortunately the option to "Search the 64-bit portion of the registry" is not available.

Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Extended Registy Search Problems

Hi Phil,
the only value is the compressed guid of the product key, which changes with each release
I thought you meant the Upgrade Code. If it changes with each release you must be referring to the Product Code:
http://www.advancedinstaller.com/user-g ... rsion.html

Indeed both cases( by Product Code or Upgrade Code ) can be detected with extended searches.

I am not sure if you are using the same Upgrade Code for both x86 and x64 installer versions of your application. If the Upgrade Codes are different, you can easily add two extended searches in each project version(x64 and x32):
ExtSearch.jpg
ExtSearch.jpg (12.43 KiB) Viewed 4465 times
As I mentioned in my last post, if you already tried this and doesn't work you can test on other similar machines.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”