How to setup Silent Install?

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
ckit
Silver Member
Silver Member
Posts: 269
Joined: 2004 Jun 10, 12:24

How to setup Silent Install?

Post by ckit »

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 :(
User avatar
nikos
Site Admin
Site Admin
Posts: 15800
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

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.
probably you have to put /s inside the quotation marks because "start" is using it itself (?)
ckit
Silver Member
Silver Member
Posts: 269
Joined: 2004 Jun 10, 12:24

Post by ckit »

Thank you, I had to kill all "start /wait" crap to get it to work :)

@echo off
"xplorer2_setup 1.7.0.3.exe" /S
regedit /s xplorer2.reg
"x2docs 1.7.0.3-1.exe"
exit
ckit
Silver Member
Silver Member
Posts: 269
Joined: 2004 Jun 10, 12:24

Post by ckit »

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!
User avatar
nikos
Site Admin
Site Admin
Posts: 15800
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

i don't know these tools, but the window title is xplorer² not xplorer2
ckit
Silver Member
Silver Member
Posts: 269
Joined: 2004 Jun 10, 12:24

Post by ckit »

Yes but that's for the app itself not the folder that the installer opens after installing.

TaskKill comes with Win2000 and higher.
User avatar
JRz
Gold Member
Gold Member
Posts: 560
Joined: 2003 Jun 10, 23:19
Location: NL

Post by JRz »

nikos wrote:[...]probably you have to put /s inside the quotation marks because "start" is using it itself (?)
That's right Nikos!
ckit wrote:Thank you, I had to kill all "start /wait" crap to get it to work
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.
Last edited by JRz on 2007 Jun 28, 14:33, edited 1 time in total.
Dumb questions are the ones that are never asked :turn:
User avatar
JRz
Gold Member
Gold Member
Posts: 560
Joined: 2003 Jun 10, 23:19
Location: NL

Post by JRz »

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!
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"
So the command would be:

Code: Select all

taskkill /IM xplorer2_UC.exe
This will work even when you decide to put the name 'xplorer²' at the end of the window title using an advanced option of X². When you would do that, it obviously would break your script if it relied on the window tiltle starting with 'xplorer²' :)
HTH
Dumb questions are the ones that are never asked :turn:
Post Reply