And I want to combine them all, triggered from the login script:Something like this:
Login.kix
content:
; Check if Outlook 2000 is already installed on the machine
$ReturnCode = ExistKey("HKEY_LOCAL_MACHINE\Software\Company\SoftDist\Outlook2000")
If $ReturnCode
$Selection = MessageBox("It turns out Outlook 2000 has not been installed on your pc yet. Press 'OK' if you like to install it. This will take approximately 10 minutes.", "Outlook 2000 Installation", 36)
If $Selection = 6
$zkey = ReadProfileString(@LDrive + "\test.ini","mailid","%username%")
$installsource = "\\server\Outlook2000$"
USE Z: /delete
USE Z: $installsource
$Scriptspath = "Z:"
$install = $Scriptspath + '\setupprm.exe TRANSFORMS="' + $Scriptspath + '\Ing\Mst\OutlookPremium.mst"' + $Directory + ' /qn'
Shell $install
; RunOnce keys voor instellen van user's specifieke instellingen
; WRITEVALUE ( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "Cleanup","\\a0930014\outlook2000$\kix32 \\a0930014\outlook2000$\cleanup.kix", "REG_SZ" )
; WRITEVALUE ( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "OutlookSettings","\\a0930014\outlook2000$\kix32 \\a0930014\outlook2000$\outlookSettings.kix", "REG_SZ" )
; Code to write Company-Version to the registry. Version is kept in the file 'Version.ini'
; in the root of the CD or installation share.
$Version = ReadProfileString ($Scriptspath + "\Version.ini", "Outlook2000", "Version")
$x = AddKey ("HKEY_LOCAL_MACHINE\Software\Company")
$x = AddKey ("HKEY_LOCAL_MACHINE\Software\Company\SoftDist")
$x = AddKey ("HKEY_LOCAL_MACHINE\Software\Company\SoftDist\Outlook2000")
$x = WriteValue("HKEY_LOCAL_MACHINE\Software\Company\SoftDist\Outlook2000", "Version", $Version, "REG_SZ")
Get $x
WRITEVALUE ( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "Cleanup"," run \\server\outlook2000$\Cleanup.bat", "REG_SZ" )
WRITEVALUE ( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "OutlookSettings"," run \\server\outlook2000$\OutlookSettings.bat", "REG_SZ" )
Endif
Else
goto end
Endif
:end