Jump to content

Install Path in setup.iss


neo_3333

Recommended Posts


I was just wondering if anyone know whether enviroment variables (such as %systemdrive% or %programfiles%) can be used in the install path of installshield installs, setup.iss ?

Yes, you can.

Use redirection > or >> as I did in my batch of Winamp.

However, here's a practical example by edmoncu:

http://www.msfn.org/board/index.php?showto...ndpost&p=132800

Link to comment
Share on other sites

  • 2 weeks later...

got it working in two appz:

ECHO Installing Tweaki...for Power Users

ECHO Please Wait...

start /wait %systemdrive%\Install\Applications\Tweaki\setup.exe /s /f1"%systemdrive%\Install\Applications\Tweaki\setup.iss"

ECHO Installing Bigfix 1.7

ECHO Please Wait...

start /wait %systemdrive%\install\Applications\Bigfix\setup.exe /s /f1"%systemdrive%\install\Applications\Bigfix\setup.iss"

(earlier i tried copying setup.iss to c:\ but with multiple softwares using the same switch, it started getting messy. instead, i tried this and it worked!)

Link to comment
Share on other sites

yes, the setup.iss file MUST be in the same directory as the program.exe as 2 minimize problems..

also

ECHO Installing Tweaki...for Power Users

should be TweakUI

regards :)

Link to comment
Share on other sites

I think neo_3333 meant to use enviroment variables in lines like this one:

szDir=C:\Program Files\BreakPoint Software\Hex Workshop 4.2

He didn't mean to use them on command line.

Link to comment
Share on other sites

  • 3 weeks later...
I was just wondering if anyone know whether enviroment variables (such as %systemdrive% or %programfiles%) can be used in the install path of installshield installs, setup.iss ?

Yes, you can.

Use redirection > or >> as I did in my batch of Winamp.

However, here's a practical example by edmoncu:

http://www.msfn.org/board/index.php?showto...ndpost&p=132800

[installShield Silent]

Version=v6.00.000

File=Response File

[File Transfer]

OverwrittenReadOnly=NoToAll

[Application]

Name=F-Prot for Windows

Version=3.15

Company=FRISK Software International

Lang=0009

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-DlgOrder]

Dlg0={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdWelcome-0

Count=9

Dlg1={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdLicense-0

Dlg2={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdAskDestPath-0

Dlg3={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SetupType-0

Dlg4={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdComponentTree-0

Dlg5={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdSelectFolder-0

Dlg6={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdStartCopy-0

Dlg7={9FD12630-1991-46F5-8479-92DE1EAE87DA}-MessageBox-0

Dlg8={9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdFinishReboot-0

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdWelcome-0]

Result=1

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdLicense-0]

Result=1

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdAskDestPath-0]

szDir=%ProgramFiles%\FSI\F-Prot

Result=1

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SetupType-0]

Result=303

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdComponentTree-0]

szDir=%ProgramFiles%\FSI\F-Prot

FPWIN-type=string

FPWIN-count=1

FPWIN-0=FPWIN\FPWINco

FUPDATE-type=string

FUPDATE-count=1

FUPDATE-0=FUPDATE\FPUPDATERco

FSTOPNT-type=string

FSTOPNT-count=1

FSTOPNT-0=FSTOPNT\FSTOPNTco

FDefs-type=string

FDefs-count=1

FDefs-0=FDefs\FDEFSco

MFC-type=string

MFC-count=1

MFC-0=MFC\New MFC 6.2 Runtime 1

FNTCMD-type=string

FNTCMD-count=1

FNTCMD-0=FNTCMD\FNTCMDco

Component-type=string

Component-count=7

Component-0=FPWIN

Component-1=FUPDATE

Component-2=FSTOPNT

Component-3=FDefs

Component-4=MFC

Component-5=FNTCMD

Component-6=FTrialDLL

Result=1

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdSelectFolder-0]

szFolder=F-Prot Antivirus

Result=1

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdStartCopy-0]

Result=1

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-MessageBox-0]

Result=1

[{9FD12630-1991-46F5-8479-92DE1EAE87DA}-SdFinishReboot-0]

Result=1

BootOption=0

[{0649E9C3-4D5D-4E1D-B09E-8DF81DDD5C72}-DlgOrder]

Count=0

[{90564294-B4A2-407A-A54A-2E8ACB3F4899}-DlgOrder]

Count=0

[{F838C6E3-BEE1-4982-90E3-3AD8A04F1E8B}-DlgOrder]

Count=0

[{C4B35827-1E29-4429-8DC5-22A99E9C357E}-DlgOrder]

Count=0

[{B977D4C3-CCBF-4005-8B9B-2E07925651D6}-DlgOrder]

Count=0

[{3DE0A0D8-B080-4B45-96BB-AF022552D1DF}-DlgOrder]

Count=0

[{195CFDB2-161F-463C-952B-5462BE0C943E}-DlgOrder]

Count=0

[{31E42EBF-A265-4F87-ABA3-09B904D6C0EF}-DlgOrder]

Count=0

[{14A71AB0-215D-44CB-AE46-C0AD0DEC46FC}-DlgOrder]

Count=0

=====================================================

I have tried in several ways, does not work... It explains to me with simple words as I must make? Thanks

Link to comment
Share on other sites

There is a method documented here (unfortunately in French) :

W2K SP3 Bootable CD +IE6 +WMP9 +DX9 +Hotfixes + applications

The method described use a tool from the ressource kit : sed.exe

Example is for Adobe Reader 5

1/ replace the hardcoded letter in setup.iss by %systemdrive%

2/ save the file as setup.txt in the installation folder (where resides setup.exe) and delete setup.iss

3/ create a new file parse.bat

type %systemdrive%\winapps\acrobat\setup.txt|%windir%\sed.exe

's/\%%systemdrive\%%/%systemdrive%/g'>%systemdrive%\winapps\acrobat\setup.iss

4/ save in $OEM$

5/ add the command to your cmdlines.txt

[Commands]
".\parse.bat"

Hope it may help you and ask more if you don't understand french and would like more help. Will try to translate more...

download outils.zip on the link to get tool and examples

Les scripts et exécutables nécessaires dans cet article sont disponibles dans le fichier outils.zip
Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...