Help - Search - Members - Calendar
Full Version: How to specify switches in WIHU?
MSFN Forums > Member Contributed Projects > Other Member Contributed Projects > Windows Installation Helper Utility

   
Google Internet Forums Unattended CD/DVD Guide
islander_810
Hi, i want to perform silent install of applications in WIHU. I've done it in RunOnceEx and WPI too and i know the required switches.
However, with WIHU, i'm facing a prob which says file not found.

For eg, to install Notepad++, i use these lines in 'install.ini'
CODE
description.1 = Notepad++
command.1 = "%WIHU%\Install\Utilities\nppinstaller4.5.exe\" /S

and i get an error saying file not found. Even changing it to
CODE
command.1 = "\"%WIHU%\Install\Utilities\nppinstaller4.5.exe\" /S"

doesn't work. However, upon removing /S it works.
CODE
command.1 = "%WIHU%\Install\Utilities\nppinstaller4.5.exe"

I can't perform silent installs. Can someone pls help me?
Camarade_Tux
If your example is real, you have a backware slash before the ending quote, right after the file extension.
Also, you don't need the quotes. Here is an excerpt of my install.ini
QUOTE
description.1=UniExtract
command.1=%WIHU%\AHK\AHK.exe %WIHU%\AHK\misc.txt 7z x %WIHU%\Apps\Compression\UniExtract.7z -o"%UniExtract%"
selected.1=1


The quotes around %UniExtract% are needed because it can contain spaces and 7zip would have a problem (I use an ahk script to hide 7zip's command window).
islander_810
Works like a charm now, thumbup.gif Thx
I didn't think to remove the quotes after removing the spaces. blushing.gif

I read your XP Mod post btw, good job smile.gif
Tefole
btw: i discovered, that its not possible to use more than one quote for each command line.
e.g.

c:\program files\myprogram\myprogram.exe
x:\My Programs\my files.xyz

CODE
command.0.1="%programfiles%\myprogram\Myprogram.exe" "x:\My Programs\my files.xyz"

will not work, in the upper exampe you need quotes, because the path/filenames contains spaces.
The solution i found, its to not user more than one quote pair.
Camarade_Tux
I think you can but have to escape some so that your example looks like :
CODE
command.0.1="\"%programfiles%\myprogram\Myprogram.exe\" \"x:\My Programs\my files.xyz\""
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.