A new Flexera Community experience is coming on November 18th, click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Install condition with check registry key

Hello,

I'm packaging with AdminStudio 8 and try to set a intallation condition with registry check on :

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"CSDVersion"="Service Pack 2"

I create a system search variable to store CSDVersion value to SRVPACK variable. That's work greats.
I try to create the condition in Install conditions with the following condition :
SRVPACK NOT="Service Pack 2"
But it doesn't work, how can I set the operator condition to check if "CSDVersion" is different to "Service Pack 2" for stop installation of my package ?

great thanks to everyone who help me :cool:
(3) Replies
The authoritative article to consult on this is here:

Conditional Statement Syntax:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/conditional_statement_syntax.asp

There's much more than just this question, that I'm sure will be helpful. In short:

NOT SRVPACK~="Service Pack 2"
It is easier to use built-in properties. Please refer to Operating System Properties and Operating System Property Values
Thx to you all guys :cool:

SRVPACK NOT="Service Pack 2" work fine and TsungH links will be helpful

cya