ich baue mir gerade ein Winstscript für Teamviewer.
Das script läuft auch soweit durch und macht alles, was es tun soll, nur flaggt es das Paket auf dem Server nicht als installiert und fängt so nach jedem neustart wieder von vorne an.
Hier mein Script:
Code: Alles auswählen
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $Productid$
isFatalError
; Stop process and set installation status to failed
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $Productid$ + ".png" $Productid$
Message "Install " + $Productid$ + " ..."
comment "Start setup program"
Winbatch_install
comment "Patch Registry"
Registry_install
ExitWindows /ImmediateReboot
endif
[Winbatch_install]
msiexec /i "%ScriptPath%\TeamViewer_Host.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress
[Registry_install]
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\TeamViewer\Version5.1]
set "IsHostModule" = REG_DWORD:00000001
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\TeamViewer\Version5.1\AccessControl]
set "AC_Server_Custom_AllowPartnerViewDesktop" = REG_DWORD:00000001
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\TeamViewer\Version5.1\DefaultSettings]
set "Autostart_GUI" = REG_DWORD:00000001
Hat jemand eine Ahnung warum das so ist?
MfG
Soehnke