MSFN Forum: How to specify switches in WIHU? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to specify switches in WIHU? Rate Topic: -----

#1 User is offline   islander_810 

  • Compulsive Tweaker
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 06-January 07

Posted 24 December 2007 - 04:19 AM

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'
 
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
 
command.1 = "\"%WIHU%\Install\Utilities\nppinstaller4.5.exe\" /S" 

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

I can't perform silent installs. Can someone pls help me?

This post has been edited by islander_810: 24 December 2007 - 04:21 AM



#2 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 24 December 2007 - 06:05 AM

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).

#3 User is offline   islander_810 

  • Compulsive Tweaker
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 06-January 07

Posted 24 December 2007 - 11:50 AM

Works like a charm now, :thumbup Thx
I didn't think to remove the quotes after removing the spaces. :blushing:

I read your XP Mod post btw, good job :)

#4 User is offline   Tefole 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 04-September 04

Posted 06 February 2008 - 05:37 PM

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

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.

#5 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 07 May 2008 - 10:45 AM

I think you can but have to escape some so that your example looks like :
command.0.1="\"%programfiles%\myprogram\Myprogram.exe\" \"x:\My Programs\my files.xyz\""

This post has been edited by Camarade_Tux: 07 May 2008 - 10:46 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy