illusions Posted August 18, 2011 Share Posted August 18, 2011 Hi I am a newbee in WPII know WPI has make directory function. Is there a way for WPI to do the following batch.cmd command ?if not exist "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil" mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil"===================================Also in situation How can i do that using getOSver() function=="XP" install 32bit version of the program getOSver() function=="win7" install 64bit version of the program Please advice and thank you. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 19, 2011 Share Posted August 19, 2011 Conditions = get OSver=="XP"&{x86} "%wpipath%\Install\mseinstall.exe" /s /runwgacheck /oJust like so... Link to comment Share on other sites More sharing options...
illusions Posted August 19, 2011 Author Share Posted August 19, 2011 Thank you Kel for the info.As for dos command if not exist "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil" mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil"instead of using batch.cmdA user in this forum suggest this solution and it work well in WPI thanks.{JSCRIPT}=if (!FolderExists("%ProgramFiles(x86)%\misc\")) RunCmd('cmd /c mkdir "%ProgramFiles(x86)%\misc\"',false,true) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now