MSFN Forum: Windows Installer switches for target dir - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

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

Windows Installer switches for target dir And other installers too. Rate Topic: -----

#1 User is offline   REDONDOS 

  • Group: Members
  • Posts: 9
  • Joined: 11-June 04

  Posted 11 June 2004 - 02:28 AM

Well, that's the question. I'd like to install -for example- Nero Burning Rom into:
"C:\Program Files\CD Burning\Ahead\Nero"
or ACDSee into:
"C:\Program Files\Multimedia\ACD Systems"

How can I accomplish this task?

I've searched through the forum but found nothing but switches for the automation process, there is no information regarding changing the default path for the installation.

I guess that creating a .iss file for InstallShield installations would respect the folder I chose at the time of the .iss creation, but what about Windows Installer, NSIS, WISE and Inno?

Thanks in advance. :)


#2 User is offline   Joe User 99 

  • Member
  • PipPip
  • Group: Members
  • Posts: 168
  • Joined: 24-September 03

Posted 11 June 2004 - 05:54 AM

For windows installer, it's

<sourcepath>\product.msi INSTALLDIR=<Path>

remember to use quotes for those paths with spaces.

#3 User is offline   pastl 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 26-May 04

Posted 11 June 2004 - 09:41 AM

MSI:

start /wait msiexec /i %systemdrive%\install\apps\ms\bootvis.msi /qb INSTALLDIR=D:\Prgramme\MSN

or:

start /wait %systemdrive%\install\apps\ms\bootvis.msi /qb INSTALLDIR=D:\Prgramme\MSN


----------------------------------------------------------------------------------------------

Inno:

start /wait %systemdrive%\install\apps\hase\setup.exe /SILENT /DIR="D:\Programme\Hase"

or:

start /wait %systemdrive%\install\apps\hase\setup.exe /VERYSILENT /DIR="D:\Programme\Hase"

----------------------------------------------------------------------------------------------

NSIS:

start /wait %systemdrive%\install\apps\hase\setup.exe /S /D=D:\Programme2\Hase

----------------------------------------------------------------------------------------------

Wise:

start /wait %systemdrive%\install\apps\hase\setup.exe /S /X D:\Programme2\Hase


pastl

#4 User is offline   HotRod 

  • Group: Members
  • Posts: 4
  • Joined: 08-June 04

Posted 11 June 2004 - 07:19 PM

Very usefull information. Thanks.

My question is how to install to %systemDrive% ? Right now my line is

REG ADD %KEY%\001 /V 1 /D "%CDROM%\PowerTools\jv16pt_setup.exe /VERYSILENT /SP- /DIR=c:\UTILITIES\PowerTools" /f

I would like

REG ADD %KEY%\001 /V 1 /D "%CDROM%\PowerTools\jv16pt_setup.exe /VERYSILENT /SP- /DIR=%systemdrive%:\UTILITIES\PowerTools" /f

What am I forgetting?

This is all new to me, and a little mind boggling.

Thanks again

#5 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 11 June 2004 - 10:58 PM

the quotes for the path

REG ADD %KEY%\001 /V 1 /D "%CDROM%\PowerTools\jv16pt_setup.exe /VERYSILENT /SP- /DIR=\"%systemdrive%:\UTILITIES\PowerTools\"" /f

\" is just because you're iusing REG, and without the \ it wouldn't read the line correctly with the embedded quotes.

#6 User is offline   HotRod 

  • Group: Members
  • Posts: 4
  • Joined: 08-June 04

Posted 12 June 2004 - 12:22 AM

Thank You

#7 User is offline   Jjazz 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 29-May 04

Posted 12 June 2004 - 04:26 AM

@HotRod

Hem u add a unwanted ":" :)

@+

Jj

#8 User is offline   Jjazz 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 29-May 04

Posted 12 June 2004 - 04:27 AM

and me, i forgot a "n" in my post lol

Jj

#9 User is offline   REDONDOS 

  • Group: Members
  • Posts: 9
  • Joined: 11-June 04

Posted 13 June 2004 - 11:17 PM

Thanks a lot, Joe User 99 & pastl.

#10 User is offline   wamatt 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 21-June 04

Posted 22 June 2004 - 05:12 PM

But what if we are passing them onto MSI? The quotation marks seem to mess it up.

start /wait AdbeRdr60_enu_basic.exe -p"-s /v\"/qn INSTALLDIR="c:\Progs\Media\Adobe\Acrobat 6.0"""

Doesnt work. Maybe I should extract the MSI? know how to do that?

#11 User is offline   REDONDOS 

  • Group: Members
  • Posts: 9
  • Joined: 11-June 04

Posted 25 June 2004 - 04:24 AM

wamatt:
Sorry for not replying earlier.
The trick is that if you need to pass any switches to msiexec, you have to "escape" them. That means use backslashes.

For example, for the line you needed:
start /wait AdbeRdr60_enu_basic.exe -p"-s /v\"/qn INSTALLDIR=\"c:\Progs\Media\Adobe\Acrobat 6.0\"\""

See that I escaped every set of double quotes except the first and the last ones?

And if you need that inside your RunOnceEx.cmd file:
REG ADD %KEY%\001 /VE /D "Adobe Acrobat Reader 6" /f
REG ADD %KEY%\001 /V 1 /D "start /wait AdbeRdr60_enu_basic.exe -p\"-s /v\"/qn INSTALLDIR=\"c:\Progs\Media\Adobe\Acrobat 6.0\"\"\""

That is, of course, escape another set of double quotes since you need to enclose the line you need to install the program between "s.

Another example would be what I actually use and works for Diskeeper 8:
REG ADD %KEY%\002 /VE /D "Diskeeper 8" /f
REG ADD %KEY%\002 /V 1 /D "%SYSTEMDRIVE%\Applications\diskeeper\setup.exe /s /v\"/qn INSTALLDIR=\\\"%PROGRAMFILES%\System\Hard Drive Tools\Diskeeper\\\"\"" /f


pastl (or anyone willing to help, actually):
Your tips were very useful, thanks a lot for them. The only problem I am having is that none of the installation programs made with Wise installer seem to like the /X switch.

For example, Opera 7.51 just won't install if I use /X. Instead, the installer extracts the installation files to the directory of my choice but never actually installs the software.

In fact, after reading Wise KB Article #564 I found out the following:
/X pathname -- extracts files into pathname

So I guess that Wise just doesn't have a switch for installing to an alternative directory, and that's why I just repacked the applications that use it and well, it seems that they work.


Anyway, if anybody of you does know how to make Wise Installer install an application to a directory other than the default, please post your comments.

#12 User is offline   wamatt 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 21-June 04

Posted 25 June 2004 - 04:36 AM

Thanks REDONOS - however it doesn work :)

C:\Temp>start /wait AdbeRdr60_enu_basic.exe -p"-s /v\"/qn INSTALLDIR=\"c:\Progs\Media\Adobe\Acrobat 6.0\"\""

Justs sits there for a while then returns to the prompt - no error or anything, but its just not installed.

If I take out the \" and the space it installs fine.

Share this topic:


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

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



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