On Tue, 3 Aug 2004, Steffen Kaiser wrote:
Hello,
the hard way I learnt that the "/i" switch must preceed the .MSI file on the command line; at least for the WinInstaller of WinXP1a.
This is also wrong in the CVS version of perl.bat.
The error message is in German "Ung�ltige Befehlsparameter" (invalid command line option).
Bye,
the "halt" loop is using a wrong label (the colon must preceed "halt").
The patch below uses "pause" instead of echo in order to not consume CPU (well, why not?) and when you press any key, the situation is re-checked, mayhap the share was re-built.
The msiexec line contains my favorit settings. :-)
--- /mnt/mirror/install/linux/unattend/cvs/unattended/install/scripts/perl.bat Thu Jul 29 20:07:19 2004
+++ perl.bat Tue Aug 3 09:56:28 2004
@@ -15,7 +15,7 @@
set perl_msi=%Z%\packages\ActivePerl-5.8.4.810-MSWin32-x86.msi
+:halt if exist %perl_msi% goto have_perl -echo %perl_msi% not found; halting. -halt: +pause %perl_msi% not found; halting. goto halt
@@ -28,4 +28,4 @@
:: URL|ALL|http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.4.810-MSWin32-x86.msi|packages/activeperl-5.8.4.810-mswin32-x86.msi
-start /wait msiexec /qb /l* %SystemDrive%\netinst\logs\perl.txt %perl_msi% /i PERL_PATH=Yes PERL_EXT=Yes
+start /wait msiexec /qb /l* %SystemDrive%\netinst\logs\perl.txt %perl_msi% /i TARGETDIR=C:\Perl ADDLOCAL="PERL_FEATURE,PPM,PERLSE,EXAMPLES" PERL_PATH=Yes PERL_EXT=Yes
@if errorlevel 1 exit 1
-- Steffen Kaiser
