TechSupp Posted October 6, 2014 Posted October 6, 2014 I'm trying to get .net4 installed with a cmd file using the following line: start /wait "%SCRIPTDIR%\Sketchup\NDP452-KB2901907-x86-x64-AllOS-ENU.exe" /q /norestart All the info on the web says it should work but when I try it tells me the /q is incorrect tried it in a cmd screen with NDP452-KB2901907-x86-x64-AllOS-ENU.exe /q /norestart and it works? Anyone spot what I have wrong? (have start /wait because I have another couple of files to install afterwards)
themightymrp Posted October 6, 2014 Posted October 6, 2014 Change your quotes to: start /wait "%SCRIPTDIR%\Sketchup\NDP452-KB2901907-x86-x64-AllOS-ENU.exe /q /norestart" 1
TechSupp Posted October 6, 2014 Author Posted October 6, 2014 (edited) Just tried that and it throws up two cmd boxes one for the cmd file and one for the .net file with a flashing prompt showing the cmd file location directory, and nothing else seems to be happening? just sits there. Tried without the /q to see if it was running and just got same again. Edit: Just tried without any quotes at all and worked fine! Ah well, Live and Learn. Edited October 6, 2014 by TechSupp Update
Arthur Posted October 6, 2014 Posted October 6, 2014 This is probably what you need... @echo off setlocal enabledelayedexpansion set SCRIPTDIR=%~dp0 set SCRIPTDIR=%SCRIPTDIR:~0,-1% start "" /wait "%SCRIPTDIR%\NDP452-KB2901907-x86-x64-AllOS-ENU.exe" /q /norestart 1
TechSupp Posted October 6, 2014 Author Posted October 6, 2014 Thanks, I'll alter my script and try it with that mod.
free780 Posted October 7, 2014 Posted October 7, 2014 Why do you need it in a script? If its for MDT /quiet does not work you have to use /passive .
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