Hi

I am currently trying to package some software that will be run on windows XP and 7 however each OS requires different settings in the package, is there any IF statements I could use so that when running the package it could determine what OS its currently being installed on and run the correct settings required?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1
Check out the 'VersionNT' property on MSDN.
Answered 06/08/2011 by: VBScab
Red Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
thanks,

I came up with this but it doesnt not seem to work?

IF %VersionNT% == 601 ( ICACLS C:\FitPro /GRANT Users:(OI)(CI)f )
Answered 06/08/2011 by: Innes
Yellow Belt

Please log in to comment
0
It looks like you're trying to test the condition in DOS/Command prompt? You can't do that, as the WI engine doesn't pass its properties to DOS. You need to create a Custom Action and use the VersionNT property to condition its execution.

If it were me, I'd be building a VBScript which uses Microsoft's rather good DACLS class to do the permissioning. That way, I get proper control and error-trapping.
Answered 06/08/2011 by: VBScab
Red Belt

Please log in to comment
0
hey use that VersionNT=600 in the LaunchCondition property...

it'll work surely..
Answered 06/21/2011 by: hari4243
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity