AppSearch and Registry Location Properties - 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!

jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

AppSearch and Registry Location Properties

I am new to MSI - having used InstallShield 7.1 for a long time. I have several old products that may be installed and I want to inform the user to uninstall the old versions before the upgrade with the MSI installer.

The problem is that I want to detect only the key - not anything below it (such as DisplayName). In other words, just (for example)

SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2B4A8B8B-5F5B-11D5-8B3C-00105A9846E9}

This is because we have users who frequently "mess" with the registry in attempts to manually remove products.

However, when I remove the name from this panel (e.g. DisplayName), I expected that maybe it would just find the "default". This seems not to be true. It seems that the property is always created even when the subkey is invalid. Am I attempting the impossible?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please tell me why you need to detect that specified registry key because the post below explain exactly the steps you must follow to accomplish your request. If you follow those steps then your new package will upgrade the old package automatically. You don't need a new mechanism to detect it.

http://www.advancedinstaller.com/forums ... php?t=1136

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

Previous post not applicable - no MSI database!

Here's why. From your reference:

"Now you have to find out the Upgrade Code of the package that is created with InstallShield. You could get it by opening the MSI with ORCA or another MSI editor. Look in the "Property" table for the "Upgrade Code" property. "

But, as I pointed out, the previous installation (created with InstallShield 7.1) does NOT have an MSI database. So the instruction above is without meaning to me.

The question, regardless of the reason, is still "How do I specify the default for the subkey, since it doesn't have a name? " Usually, you can do this with a blank or empty string. So, if that is true, what is the syntax for an empty string. Nothing seems to work for me.
jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

I solved my problem with Run & Log

I finally caught on to the Run & Log choice on the IDE, which enabled me to see exactly what was being returned. From that point, it was easy to understand what to do.

I suggest that there be an Expert and Novice mode and that Run & Log be the default for Novice mode. For people like me!

Return to “Common Problems”