PDA

View Full Version : Install condition with check registry key



vachefolle
04-18-2007, 08:57 AM
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:

Cary R
04-19-2007, 02:36 PM
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"

TsungH
04-19-2007, 07:46 PM
It is easier to use built-in properties. Please refer to Operating System Properties (http://msdn2.microsoft.com/en-us/library/aa370554.aspx) and Operating System Property Values (http://msdn2.microsoft.com/en-us/library/aa370556.aspx)

vachefolle
04-20-2007, 10:16 AM
Thx to you all guys :cool:

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

cya