/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Community Chosen Answer


Answers

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.
Answer this question or Comment on this question for clarity

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