This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
userspace:msoffice2010pro [2013/01/15 13:43] bobzbobz created |
userspace:msoffice2010pro [2013/01/15 14:06] bobzbobz |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Microsoft Office 2010 Professional Plus ====== | ====== Microsoft Office 2010 Professional Plus ====== | ||
+ | //Scripts and guide by Soren Birk// | ||
+ | I created this package with Office 32-Bit, but it is ment for both 32/ | ||
+ | |||
+ | **Tested with**: | ||
+ | * OPSI 4.0.2.4 | ||
+ | * Winst 4.11.3.3 | ||
+ | * Windows 7, 32 and 64-Bit | ||
+ | |||
+ | **Instructions: | ||
+ | * Creating the setup: | ||
+ | * Extract the Office 2010 Prof Plus DVD to CLIENT_DATA\Office2010, | ||
+ | * Use Microsoft Office Customization Tool to create a config that meets the needs of your company. | ||
+ | * Take a look at this link for some inspiration: | ||
+ | * When you have created the .MSP-file, copy it to the " | ||
+ | * Creating the uninstconfig.xml: | ||
+ | * Go to the ProPlus.WW-subfolder of the Office2010-folder, | ||
+ | * Edit the .xml-file with the code supplied here. | ||
+ | |||
+ | **Tree:** | ||
+ | < | ||
+ | CLIENT_DATA | ||
+ | ├ setup32.ins | ||
+ | ├ uninstall32.ins | ||
+ | ├ delsub32.ins | ||
+ | ├ msoffice2010prologo.png | ||
+ | └ Office2010 | ||
+ | ├ Updates | ||
+ | │ └ office2010pro.MSP | ||
+ | └ ProPlus.WW | ||
+ | └ uninstconfig.xml | ||
+ | </ | ||
+ | |||
+ | ==== Setup32.ins ==== | ||
+ | <code winst> | ||
+ | ; Author Soren Birk | ||
+ | |||
+ | [Actions] | ||
+ | requiredWinstVersion >= " | ||
+ | |||
+ | DefVar $UninstallProgram$ | ||
+ | DefVar $LogDir$ | ||
+ | DefVar $ProductId$ | ||
+ | DefVar $MinimumSpace$ | ||
+ | DefVar $InstallDir$ | ||
+ | DefVar $ExitCode$ | ||
+ | DefVar $LicenseRequired$ | ||
+ | DefVar $LicenseKey$ | ||
+ | DefVar $LicensePool$ | ||
+ | DefVar $UninstCmd$ | ||
+ | |||
+ | Set $LogDir$ = " | ||
+ | |||
+ | ; ---------------------------------------------------------------- | ||
+ | ; - Please edit the following values | ||
+ | ; ---------------------------------------------------------------- | ||
+ | Set $ProductId$ | ||
+ | Set $MinimumSpace$ | ||
+ | Set $InstallDir$ | ||
+ | ; ---------------------------------------------------------------- | ||
+ | |||
+ | if not(HasMinimumSpace (" | ||
+ | LogError "Not enough space on %SystemDrive%, | ||
+ | isFatalError "Not enough space" | ||
+ | else | ||
+ | comment " | ||
+ | ShowBitmap " | ||
+ | |||
+ | if FileExists(" | ||
+ | comment "Start uninstall sub section" | ||
+ | Sub " | ||
+ | endif | ||
+ | |||
+ | Message " | ||
+ | |||
+ | comment "Start setup program" | ||
+ | ChangeDirectory " | ||
+ | Winbatch_install | ||
+ | Sub_check_exitcode | ||
+ | |||
+ | endif | ||
+ | |||
+ | [Winbatch_install] | ||
+ | " | ||
+ | |||
+ | |||
+ | [Sub_check_exitcode] | ||
+ | comment "Test for installation success via exit code" | ||
+ | set $ExitCode$ = getLastExitCode | ||
+ | ; informations to exit codes see | ||
+ | ; http:// | ||
+ | ; http:// | ||
+ | if ($ExitCode$ = " | ||
+ | comment "Looks good: setup program gives exitcode zero" | ||
+ | else | ||
+ | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
+ | if ($ExitCode$ = " | ||
+ | comment " | ||
+ | comment " | ||
+ | else | ||
+ | if ($ExitCode$ = " | ||
+ | comment "looks good: setup program gives exitcode 1641" | ||
+ | comment " | ||
+ | else | ||
+ | if ($ExitCode$ = " | ||
+ | comment "looks good: setup program gives exitcode 3010" | ||
+ | comment " | ||
+ | else | ||
+ | logError " | ||
+ | isFatalError | ||
+ | endif | ||
+ | endif | ||
+ | endif | ||
+ | endif | ||
+ | </ | ||
+ | |||
+ | ==== Uninstall32.ins ==== | ||
+ | <code winst> | ||
+ | ; Author Soren birk | ||
+ | |||
+ | [Actions] | ||
+ | requiredWinstVersion >= " | ||
+ | |||
+ | DefVar $UninstallProgram$ | ||
+ | DefVar $LogDir$ | ||
+ | DefVar $ExitCode$ | ||
+ | DefVar $ProductId$ | ||
+ | DefVar $InstallDir$ | ||
+ | DefVar $LicenseRequired$ | ||
+ | DefVar $LicensePool$ | ||
+ | DefVar $UninstCmd$ | ||
+ | |||
+ | Set $LogDir$ = " | ||
+ | |||
+ | ; ---------------------------------------------------------------- | ||
+ | ; - Please edit the following values | ||
+ | ; ---------------------------------------------------------------- | ||
+ | Set $ProductId$ | ||
+ | Set $InstallDir$ | ||
+ | ; ---------------------------------------------------------------- | ||
+ | |||
+ | comment " | ||
+ | ShowBitmap " | ||
+ | |||
+ | Message " | ||
+ | |||
+ | if FileExists(" | ||
+ | comment "Start uninstall sub section" | ||
+ | Sub " | ||
+ | endif | ||
+ | </ | ||
+ | |||
+ | ==== Delsub32.ins ==== | ||
+ | <code winst> | ||
+ | ; Author Soren Birk | ||
+ | |||
+ | Set $UninstallProgram$ = " | ||
+ | Set $UninstCmd$ = "/ | ||
+ | |||
+ | Message " | ||
+ | |||
+ | if FileExists(" | ||
+ | comment "The program seems to be installed, starting the uninstallation." | ||
+ | Winbatch_uninstall | ||
+ | sub_check_exitcode | ||
+ | endif | ||
+ | |||
+ | [Winbatch_uninstall] | ||
+ | " | ||
+ | |||
+ | |||
+ | [Sub_check_exitcode] | ||
+ | comment "Test for installation success via exit code" | ||
+ | set $ExitCode$ = getLastExitCode | ||
+ | ; informations to exit codes see | ||
+ | ; http:// | ||
+ | ; http:// | ||
+ | if ($ExitCode$ = " | ||
+ | comment "Looks good: setup program gives exitcode zero" | ||
+ | else | ||
+ | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
+ | if ($ExitCode$ = " | ||
+ | comment " | ||
+ | comment " | ||
+ | else | ||
+ | if ($ExitCode$ = " | ||
+ | comment "looks good: setup program gives exitcode 1641" | ||
+ | comment " | ||
+ | else | ||
+ | if ($ExitCode$ = " | ||
+ | comment "looks good: setup program gives exitcode 3010" | ||
+ | comment " | ||
+ | else | ||
+ | logError " | ||
+ | isFatalError | ||
+ | endif | ||
+ | endif | ||
+ | endif | ||
+ | endif | ||
+ | </ | ||
+ | |||
+ | ==== uninstconfig.xml ==== | ||
+ | <code xml> | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | <!-- <Logging Type=" | ||
+ | |||
+ | <!-- < | ||
+ | |||
+ | <!-- < | ||
+ | |||
+ | <!-- < | ||
+ | |||
+ | <!-- <LIS CACHEACTION=" | ||
+ | |||
+ | <!-- <LIS SOURCELIST=" | ||
+ | |||
+ | <!-- < | ||
+ | |||
+ | <!-- < | ||
+ | |||
+ | < | ||
+ | |||
+ | <!-- <Command Path=" | ||
+ | |||
+ | </ | ||
+ | </ |