/build/static/layout/Breadcrumb_cap_w.png

Install based on OS

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

Answers (4)

Posted by: anonymous_9363 12 years ago
Red Belt
1
Check out the 'VersionNT' property on MSDN.
Posted by: Innes 12 years ago
Yellow Belt
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 )
Posted by: anonymous_9363 12 years ago
Red Belt
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.
Posted by: hari4243 12 years ago
Purple Belt
0
hey use that VersionNT=600 in the LaunchCondition property...

it'll work surely..
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ