Here's my current script...
@echo off
start /wait "xplorer2_setup 1.7.0.3.exe" /silent
regedit /s xplorer2.reg
start /wait "x2docs 1.7.0.3-1.exe"
exit
I have already tried using the "/S" switch but it doesn't work
How to setup Silent Install?
Moderators: fgagnon, nikos, Site Mods
probably you have to put /s inside the quotation marks because "start" is using it itself (?)NSIS installers recognize /S for silent installation, /NCRC to suppress the CRC (verification) step, and /D=dir to specify the "output directory", which is where the program will be installed. These options are case-sensitive, so be sure to type them in upper case.
Ok, I have a new problem...
@echo off
"xplorer2_setup 1.7.0.3.exe" /S
if exist "%ALLUSERSPROFILE%\Desktop\xplorer2.lnk" move "%ALLUSERSPROFILE%\Desktop\xplorer2.lnk" "%APPDATA%\Microsoft\Internet Explorer\Quick Launch"
regedit /s xplorer2.reg
taskkill /FI "WINDOWTITLE eq xplorer2*"
"x2docs 1.7.0.3-1.exe"
exit
I can't get TaskKill to kill the window xplorer2 opens after installing!
@echo off
"xplorer2_setup 1.7.0.3.exe" /S
if exist "%ALLUSERSPROFILE%\Desktop\xplorer2.lnk" move "%ALLUSERSPROFILE%\Desktop\xplorer2.lnk" "%APPDATA%\Microsoft\Internet Explorer\Quick Launch"
regedit /s xplorer2.reg
taskkill /FI "WINDOWTITLE eq xplorer2*"
"x2docs 1.7.0.3-1.exe"
exit
I can't get TaskKill to kill the window xplorer2 opens after installing!
That's right Nikos!nikos wrote:[...]probably you have to put /s inside the quotation marks because "start" is using it itself (?)
Not neccessary with the tip from Nikos. If you want the first command to finsih before the second starts and so on, you were spot on using 'start /wait', but as Nikos points out, you have to put the command line parameters for the command you want to start inside the double quotes.ckit wrote:Thank you, I had to kill all "start /wait" crap to get it to work
Last edited by JRz on 2007 Jun 28, 14:33, edited 1 time in total.
Dumb questions are the ones that are never asked
It's safer to use the imagename I suspect. If you are using the unicode version (which you are of course), that would be "xplorer2_UC.exe"ckit wrote:Ok, I have a new problem...
@echo off
"xplorer2_setup 1.7.0.3.exe" /S
if exist "%ALLUSERSPROFILE%\Desktop\xplorer2.lnk" move "%ALLUSERSPROFILE%\Desktop\xplorer2.lnk" "%APPDATA%\Microsoft\Internet Explorer\Quick Launch"
regedit /s xplorer2.reg
taskkill /FI "WINDOWTITLE eq xplorer2*"
"x2docs 1.7.0.3-1.exe"
exit
I can't get TaskKill to kill the window xplorer2 opens after installing!
So the command would be:
Code: Select all
taskkill /IM xplorer2_UC.exe
HTH
Dumb questions are the ones that are never asked