简体   繁体   中英

Running Setup File from Bat File in Silent Mode

I have a setup file (MSI) that can be run and install properly on a win 7 64bit system. My client wants a silent install. For this, I created a bat file (see below) and passed /qn parameter which works on a Windows XP system but gives INVALID SWITCH error on Win7 64 bit. Is there any solution to this?

start C:\Setup1\Debug\Setup1.msi /qn
pause
REN "C:\WINDOWS\system32\FHPropertyVideoScreenSaver.exe" "FHPropertyVideoScreenSaver.scr"

If you type msiexec /? at a cmd prompt you can see the switch you need is

/quiet - Quiet mode, no user interaction

or you can use

/q with other options to specify how much interaction there is.

The switch is correct for Windows 7 too, maybe you have a permissions problems. Check this thread: msi file isn't installed silently using /qn

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM