> Microsoft will be unleashing another 5-10 updates tomorrow.  I would
> like to get those integrated this week for a release this weekend.
> So, if you have been sitting on patches, now would be a good time to
> clean them up and submit.
I'd like to submit some changes to the Microsoft Office install scripts.
It's kind of a pain that you can't enter the Pidkey into the install files 
since they'll be overwritten each time you update from the CVS. So I thought it 
would be a nice idee to have the scripts read the Pidkey from another file just 
as VS6.bat is doing it.

Take a look at vs6.bat
--------- vs6.bat ---------
:: NOTE: You must create %Z%\site\vs6_key.bat to set the vs6_key
:: variable to your license key
call %Z%\site\vs6_key.bat
if %vs6_key%.==. goto nokey
todo.pl "%Z%\packages\vs6\acmboot.exe /qn1 /g 
%SystemDrive%\netinst\logs\vs6.txt /k %vs6_key%" .reboot
if errorlevel 1 exit 1
exit 0

:nokey
@echo *** Unable to get VS6 license key
@echo ***  (did you forget to create %Z%\site\vs6_key.bat?)
exit 2
---------------------------

Just replace "%Z%\site\vs6_key.bat" with "%Z%\site\keys.bat" and apply the 
following changes to the following files:

------- ofc2003.bat -------
:: NOTE: You must create %Z%\site\keys.bat to set the ofc2003
:: variable to your license key (without hyphens).
call %Z%\site\keys.bat
if %ofc2003%.==. goto nokey
todo.pl ".reboot-on 194 %Z%\packages\office2003\setup.exe /qb /l* 
%SystemDrive%\netinst\logs\office2003.txt ADDLOCAL=ALL NOUSERNAME=1 
PIDKEY=%ofc2003%"
if errorlevel 1 exit 1
exit 0

:nokey
@echo *** Unable to get Office 2003 license key
@echo ***  (did you forget to create %Z%\site\keys.bat?)
exit 2
---------------------------

------- officexp.bat -------
:: NOTE: You must create %Z%\site\keys.bat to set the OfficeXP
:: variable to your license key (without hyphens).
call %Z%\site\keys.bat
if %OfficeXP%.==. goto nokey
if exist "%Z%\packages\officexp\setuppls.exe" goto setuppls
if exist "%Z%\packages\officexp\setup.exe" goto setup
:setuppls
todo.pl ".reboot-on 194 %Z%\packages\officexp\setuppls.exe /qb /l* 
%SystemDrive%\netinst\logs\officexp.txt ADDLOCAL=ALL NOUSERNAME=1 
PIDKEY=%OfficeXP%"
if errorlevel 1 exit 1
exit 0
:setup
todo.pl ".reboot-on 194 %Z%\packages\officexp\setup.exe /qb /l* 
%SystemDrive%\netinst\logs\officexp.txt ADDLOCAL=ALL NOUSERNAME=1 
PIDKEY=%OfficeXP%"
if errorlevel 1 exit 1
exit 0

:nokey
@echo *** Unable to get Office XP license key
@echo ***  (did you forget to create %Z%\site\keys.bat?)
exit 2
-----------------------------

For officeXP.bat I also added some lines to check what the name of the Setup 
file is. Maybe someone can script it a little nicer in case there are more than 
Setup.exe and Setuppls.exe.

Guess that's it for now.

-
jens


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to