Searching for a hex/decimal registry value - 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!

mpdv
Posts: 17
Joined: Mon Feb 05, 2007 6:39 pm

Searching for a hex/decimal registry value

Hi,

I have a decimal registry value created by another application. I'm trying to create a msi package which checks the number of this value and install the product or not.

Therefor I have added a new search for a registry value and added a new additional launch condition: SERVICE_PACK_VER >= 8

But the check fails (the value exists!). If I delete the decimal value and added a new string value with the same name, the installer works perfect... Is there a problem with decimal values?

ps: If I run a test-search in AI, the resolved value has the format "#8", the resolved string value "8".
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

The result of a search is always a string value, therefore you must use that result (property) in the form in which is returned (for example for DWORD the value has a "#" in front of it).
http://msdn2.microsoft.com/en-us/library/aa371171.aspx

To accomplish what you need you must modify your condition to look like this: SERVICE_PACK_VER >= "#8"


Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”