Step 2:cleanup.bat
content:
kix32.exe %0\..\Cleanup.kix
cleanup.kix
content:
SetConsole("HIDE")
; Determine driveletter and path of the installationsource
$Scriptspath = @CURDIR
$RmNetmeeting = ReadProfileString("$Scriptspath\OutlookInstall.ini", "Netmeeting", "Remove")
; Remove Netmeeting (depends on the setting)
if $RMNetmeeting = "yes"
cd "$Scriptspath\ing\Netmeeting"
$RmNetmtg = "kix32.exe RmNetmtg.kix"
Shell $RmNetmtg
EndIf
;Remove Welcome message
cd "$Scriptspath\ing\RmWelcome"
$RmWlcm = "kix32.exe RmWelcome.kix"
Shell $RmWlcm
; Copy Outlookbar info to the correct directory.
$Installdir = ReadProfileString("$Scriptspath\OutlookInstall.ini", "InstallDirectory", "dir")
If LEN($Installdir) > 0
$InstallDrive = Substr($Installdir, 1, 3)
Else
$InstallDrive = "C:\program files\Microsoft Office\"
EndIf
$cmd1 = $Scriptspath + "ing\Extra\Outlbar.inf"
$cmd2 = $InstallDrive + "Office\1033\outlbar.inf"
Copy $cmd1 $cmd2
; Add four registry keys that make up the machinesettings of the Outlook Policy
$command = "regedit /s $Scriptspath\ing\Extra\machinesettings.reg"
Shell $command