Hello all,
I am a beginner of IS. I was going to modify an existing .ism file to add a test condition before the real installation. The condition should be like this: if a registry key which created by a previous version exists, than quit the installation. The only entry I could found to create such a condition by using create a custom software condition “installation requirement” in “project assistant” page. Every thing seemed ok during setting this condition and then after a system search and a condition have been created. The problem is the warning never came out although such a registry key really exists in the system. I have tried to modify this condition in “General information” of “installation designer” page by removing “Not” from the beginning of this expression. Then this warning always came out despite of all registry key status changing. Any buddy knows what was wrong?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
A registry key condition does not work.
Started by
didiwang
, Jan 20 2009 03:56
4 replies to this topic
Posted 22 January 2009 - 08:33
This problem has been solved by giving a comcrete value to this registry value in regeditor.
like:
registry root: HKEY_LOCAL_MACHINE
registry key: SOFTWARE\COMPANY_NAME\PRODUCT_NAME\CurrentVersion
registry Value: DisplayVersion
and donot leave the value of DisplayVersion blank in regeditor.
like:
registry root: HKEY_LOCAL_MACHINE
registry key: SOFTWARE\COMPANY_NAME\PRODUCT_NAME\CurrentVersion
registry Value: DisplayVersion
and donot leave the value of DisplayVersion blank in regeditor.
Posted 22 January 2009 - 16:58
Yes, Windows Installer can't check for the existance of a key. It can only read a value and see if it's NULL (if the key or value didn't exist or was an empty string).
Stefan Krüger
InstallSite.org twitter facebook