dinosaur-jr Posted August 6, 2004 Posted August 6, 2004 !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 offIF 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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\000 /VE /D "Preparing Installation..." /fREG ADD %KEY%\000 /V 1 /D "%CDROM%\Software\prepare.cmd" /fREG ADD %KEY%\001 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\install\WMP10\MPSetupXP.exe /Q:A /R:N" /fREG ADD %KEY%\002 /VE /D "MSI FX5200 TDR128 Video" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\Software\Drivers\002_graphics\Setup.exe -s -f2c:\install.log" /fREG 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
Aaron Posted August 6, 2004 Posted August 6, 2004 Thanks for the heads up. Will add this to the Installshield page
MCT Posted August 6, 2004 Posted August 6, 2004 awesome i was just gonna search the forum for this particular thing
yoyo92 Posted April 18, 2005 Posted April 18, 2005 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"
fillalph Posted November 19, 2005 Posted November 19, 2005 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[
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now