putty verteile ich, mit folgendem script:
Code: Alles auswählen
[Actions]
;Variable zur Ermittlung der Systemarchitektur
DefVar $SystemType$
Set $SystemType$ = GetSystemType
DefVar $ProductId$
set $ProductId$ = "putty"
Message "Running putty install..."
ShowBitmap /3 "%SCRIPTPATH%\putty.png" "Installation putty"
if $SystemType$ = "x86 System"
Files_copy_putty32
endif
if $SystemType$ = "64 Bit System"
Files_copy_putty64
endif
Files_copy_reg
WinBatch_RegImport
[Files_copy_reg]
copy -su "%SCRIPTPATH%\putty.reg" "C:\Programme\Putty\"
[Files_copy_putty32]
copy -su "%SCRIPTPATH%\PUTTY_v100.exe" "C:\Programme\Putty\"
[Files_copy_putty64]
copy -su "%SCRIPTPATH%\PUTTYmitallem.exe" "C:\Programme\Putty\"
[WinBatch_RegImport]
reg import "C:\Program Files\Putty\putty.reg"
Importieren von folgender reg-Datei:
Code: Alles auswählen
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions]
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\server]
"Present"=dword:00000001
"HostName"="server"
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001
.
.
.
Das liegt wahrscheinlich an HKEY_CURRENT_USER? Putty liest scheinbar nicht von HKLM\Software
Hat evtl. jemand eine Idee das zu lösen?
Gregor
Danke für die Lösung!