Putty-Paket
Verfasst: 17 Okt 2014, 09:26
Hallo zusammen,
ich bin gerade dabei ein paar Pakete zu bauen. In dem Paket möchte ich die .exe sowie die .Ink kopieren. Danach sollen 3 Registryeinträge folgen.
Aber irgendwas mache ich falsch. Ich habe schon in der Winstdoc nachgeschaut, mir einige Templates angeguckt, dennoch werden die Sachen nicht kopiert bzw. die Registryeinträge nicht importiert.
Ich weiß nicht, welcher Versuch das von mir ist, aber hier ist mal das aktuelle Skript:
Hier ist die Logdatei:
ich bin gerade dabei ein paar Pakete zu bauen. In dem Paket möchte ich die .exe sowie die .Ink kopieren. Danach sollen 3 Registryeinträge folgen.
Aber irgendwas mache ich falsch. Ich habe schon in der Winstdoc nachgeschaut, mir einige Templates angeguckt, dennoch werden die Sachen nicht kopiert bzw. die Registryeinträge nicht importiert.
Ich weiß nicht, welcher Versuch das von mir ist, aber hier ist mal das aktuelle Skript:
Code: Alles auswählen
[Initial]
SetLogLevel = 9;
ExitOnError = False;
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $ProductID$
DefVar $Pfadexe$
DefVar $Pfadcopy_exe$
Set $Pfadexe$ = "C:\"
Set $Pfadcopy_exe$ = "%UserProfileDir%\Desktop"
ShowBitmap "%ScriptPath%\putty.png" $ProductID$
Message "Installiert " + $ProductID$ + " ..."
Winbatch_copyexe
Winbatch_copyink
Winbatch_registry
[Winbatch_copyexe]
copy "%ScriptPath%\putty.exe" "$Pfadexe$"
[Winbatch_copyink]
copy "%ScriptPath%\easysped.Ink" "$Pfadcopy_exe$"
[Winbatch_registry]
registry "%scriptpath%\putty.reg" /regedit
Code: Alles auswählen
[1] [Okt 17 09:18:20:953] [putty] ============ Version 4.11.3.11 WIN32 script "p:\putty\setup.ins"
[1] [Okt 17 09:18:20:953] [putty] start: 2014-10-17 09:18:20
[1] [Okt 17 09:18:20:953] [putty] installing product: putty_1.0-1
[1] [Okt 17 09:18:20:954] [putty] on client named "testinstall.testdomain.de"
[1] [Okt 17 09:18:20:954] [putty] loggedin user ""
[1] [Okt 17 09:18:20:955] [putty] winst running as "SYSTEM"
[1] [Okt 17 09:18:20:955] [putty] winst running with admin privileges
[1] [Okt 17 09:18:20:955] [putty] winst running in standard script mode
[1] [Okt 17 09:18:20:955] [putty] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Okt 17 09:18:20:955] [putty] system infos:
[1] [Okt 17 09:18:20:971] [putty] D0-27-88-65-21-48 - PC hardware address
[1] [Okt 17 09:18:20:971] [putty] TESTINSTALL.testdomain.de - IP name
[1] [Okt 17 09:18:20:971] [putty] 172.15.1.2 - IP address
[1] [Okt 17 09:18:20:971] [putty] DEU - System default locale
[1] [Okt 17 09:18:20:971] [putty] MS Windowds 6.1 64 Bit
[1] [Okt 17 09:18:20:971] [putty] opsi service version : 4
[1] [Okt 17 09:18:20:971] [putty]
[6] [Okt 17 09:18:20:975] [putty] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [Okt 17 09:18:20:975] [putty] Key closed
[6] [Okt 17 09:18:21:213] [putty] Integer conversion error, LogLevel could not be set, it is 6
[5] [Okt 17 09:18:21:213] [putty] ExitOnError was True is set to false
[6] [Okt 17 09:18:21:215] [putty] opsi-winst has version 4.11.3.11, required is : >= 4.10.8.6
[5] [Okt 17 09:18:21:215] [putty]
[5] [Okt 17 09:18:21:216] [putty] Set $ProductID$ = "EasySped"
[6] [Okt 17 09:18:21:230] [putty] The value of the variable "$ProductID$" is now: "EasySped"
[5] [Okt 17 09:18:21:230] [putty]
[5] [Okt 17 09:18:21:230] [putty] Set $Pfadexe$ = "C:\"
[6] [Okt 17 09:18:21:230] [putty] The value of the variable "$Pfadexe$" is now: "C:\"
[5] [Okt 17 09:18:21:230] [putty]
[5] [Okt 17 09:18:21:230] [putty] Set $Pfadcopy_exe$ = "%UserProfileDir%\Desktop"
[6] [Okt 17 09:18:21:230] [putty] The value of the variable "$Pfadcopy_exe$" is now: "%UserProfileDir%\Desktop"
[5] [Okt 17 09:18:21:271] [putty] message Installiert EasySped ...
[5] [Okt 17 09:18:21:281] [putty]
[5] [Okt 17 09:18:21:281] [putty] Execution of Winbatch_copyexe
[6] [Okt 17 09:18:21:281] [putty] Call "copy "P:\putty\putty.exe" "C:\""
[6] [Okt 17 09:18:21:281] [putty] Waiting until the called process is finished
[6] [Okt 17 09:18:21:289] [putty] Start process as invoker: SYSTEM
[3] [Okt 17 09:18:21:290] [putty] Exception in StartProcess_cp: Failed to execute copy "P:\putty\putty.exe" "C:\" : 2
[6] [Okt 17 09:18:21:290] [putty]
[5] [Okt 17 09:18:21:291] [putty]
[5] [Okt 17 09:18:21:291] [putty] Execution of Winbatch_copyink
[6] [Okt 17 09:18:21:291] [putty] Call "copy "P:\putty\easysped.Ink" "%UserProfileDir%\Desktop""
[6] [Okt 17 09:18:21:291] [putty] Waiting until the called process is finished
[6] [Okt 17 09:18:21:291] [putty] Start process as invoker: SYSTEM
[3] [Okt 17 09:18:21:292] [putty] Exception in StartProcess_cp: Failed to execute copy "P:\putty\easysped.Ink" "%UserProfileDir%\Desktop" : 2
[6] [Okt 17 09:18:21:292] [putty]
[5] [Okt 17 09:18:21:293] [putty]
[5] [Okt 17 09:18:21:293] [putty] Execution of Winbatch_registry
[6] [Okt 17 09:18:21:293] [putty] Call "registry "P:\putty\loxx.reg" /regedit"
[6] [Okt 17 09:18:21:293] [putty] Waiting until the called process is finished
[6] [Okt 17 09:18:21:293] [putty] Start process as invoker: SYSTEM
[3] [Okt 17 09:18:21:294] [putty] Exception in StartProcess_cp: Failed to execute registry "P:\putty\loxx.reg" /regedit : 2
[6] [Okt 17 09:18:21:295] [putty]
[6] [Okt 17 09:18:21:295] [putty] Call "registry "P:\putty\putty.reg" /regedit"
[6] [Okt 17 09:18:21:295] [putty] Waiting until the called process is finished
[6] [Okt 17 09:18:21:295] [putty] Start process as invoker: SYSTEM
[3] [Okt 17 09:18:21:296] [putty] Exception in StartProcess_cp: Failed to execute registry "P:\putty\putty.reg" /regedit : 2
[6] [Okt 17 09:18:21:296] [putty]
[6] [Okt 17 09:18:21:296] [putty] Call "registry "P:\putty\pan.reg" /regedit"
[6] [Okt 17 09:18:21:296] [putty] Waiting until the called process is finished
[6] [Okt 17 09:18:21:296] [putty] Start process as invoker: SYSTEM
[3] [Okt 17 09:18:21:298] [putty] Exception in StartProcess_cp: Failed to execute registry "P:\putty\pan.reg" /regedit : 2
[6] [Okt 17 09:18:21:298] [putty]
[1] [Okt 17 09:18:21:298] [putty] ___________________
[1] [Okt 17 09:18:21:298] [putty] script finished
[1] [Okt 17 09:18:21:298] [putty] 5 errors
[1] [Okt 17 09:18:21:298] [putty] 0 warnings
[1] [Okt 17 09:18:21:298] [putty]
[1] [Okt 17 09:18:21:298] [putty] installed product: putty Version: 1.0-19