Jump to content

Recommended Posts

Posted

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)

Posted (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 by TechSupp
Update
Posted

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

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...