Jump to content

Recommended Posts

Posted

!Very Important!

Please remember to include the -f2<path_to_log_file> switch when running an installshield setup from CD-Rom. This was not mentioned on the Unattended Site and i hope this will help others out there.

Note: A silent installation cannot be run directly from a CD-ROM, as the installation program tries to write the result log file in the same directory where the response file (setup-client.iss) is located. This will naturally fail on the read-only directory on the CD-ROM media. Instead either copy the response file to a local directory, or use the -f2 command line option to specify another location for the generated log file.

See the following example:

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

cmdow @ /HID

@echo off

IF EXIST U:\CD.txt set CDROM=U:

IF EXIST V:\CD.txt set CDROM=V:

IF EXIST W:\CD.txt set CDROM=W:

IF EXIST X:\CD.txt set CDROM=X:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\000 /V 1 /D "%CDROM%\Software\prepare.cmd" /f

REG ADD %KEY%\001 /VE /D "Windows Media Player 10" /f

REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\install\WMP10\MPSetupXP.exe /Q:A /R:N" /f

REG ADD %KEY%\002 /VE /D "MSI FX5200 TDR128 Video" /f

REG ADD %KEY%\002 /V 1 /D "%CDROM%\Software\Drivers\002_graphics\Setup.exe -s -f2c:\install.log" /f

REG ADD %KEY%\002 /V 2 /D "%CDROM%\Software\Apps\MSI_Live_Update\Setup.exe -s -f2c:\install.log" /f

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

So what it does is the following: -f2 tells installshield to write the logfile in a different location, so in the above example it writes the logfile to "C:\install.log".

Hope it helps.

L8R G8Rz

post-70-1091750635_thumb.gif


  • 8 months later...
Posted

yes !!!!!

you have the answer of my problem: the installshield try to make a setup.log on the cd,so it can't!!

like you say,we have to use the f2 switch...

this is my command

%cdrom%\app\software.exe -s -f1"%cdrom%\app\software.iss" -f2"%systemdrive%\install.log"

and after:

DEL "%systemdrive%\Install.log"

:thumbup

  • 7 months later...
Posted
Well, I am a little bit late on this topic, but here goes. (note: code below is from an INF file)

[code]HKLM,"%RunOnceEx%\0105",,,"APC PowerChute 1.03.1"
HKLM,"%RunOnceEx%\0105",1,,"%01%\installs\desktop\apc\setup.exe -s -f1"""%01%\installs\desktop\apc\setup.iss""" -f2"""%systemdrive%\apc.log""""

HKLM,"%RunOnceEx%\0115",,,"Canon Toolbox 4.1.3"
HKLM,"%RunOnceEx%\0115",1,,"%01%\installs\desktop\canon\Disk1\setup.exe -s -f1"""%01%\installs\desktop\canon\Disk1\setup.iss""" -f2"""%systemdrive%\canon.log""""

HKLM,"%RunOnceEx%\0130",,,"Mathematica 5.2"
HKLM,"%RunOnceEx%\0130",1,,"%01%\installs\desktop\mathematica\setup.exe -s -f1"""%01%\installs\desktop\mathematica\setup.iss""" -f2"""%systemdrive%\mathematica.log"""""

HKLM,"%RunOnceEx%\0165",,,"SoundMax 5.12.01.3630"
HKLM,"%RunOnceEx%\0165",1,,"%01%\installs\desktop\soundmax\setup.exe -s -f1"""%01%\installs\desktop\soundmax\setup.iss""" -f2"""%systemdrive%\soundmax.log"""""[/code]

Those guys don't install for me. The funny thing is, SoundMax did before (without f2) but now it doesn't with the f2 command. Since it is an INF file, could it just be my syntax?

]Bonkers[

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