Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
islander_810

How to specify switches in WIHU?

5 posts in this topic

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?

Edited by islander_810
0

Share this post


Link to post
Share on other sites

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

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

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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\""

Edited by Camarade_Tux
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.