Seite 1 von 1

getRegistryKeyList64 illegal String expression

Verfasst: 31 Jul 2015, 11:03
von SGalkin
Hallo,

ich habe versucht auf die Registry zuzugreifen jedoch egal was ich auch tue gelingt mir dies nicht.
Hier das Skript das ich zum Testen verwendet habe das

Code: Alles auswählen

[Initial]
StayOnTop = true
ExitOnError=true
 
[Actions]
DefVar $tempstr$
requiredWinstVersion >= "4.10.5"

SetLogLevel=9

defvar  $MsiIdRegList$
set $MsiIdRegList$ = getRegistryKeyList64("HKLM\Software\Microsoft\Windows\Currentversion\uninstall")
das Ergebnis ist immer das gleiche

Code: Alles auswählen

[1] [Jul 31 10:57:57:204] [cmdhelper] DEU  -  System default locale 
[1] [Jul 31 10:57:57:204] [cmdhelper] MS Windows 6.1 64 Bit
[1] [Jul 31 10:57:57:204] [cmdhelper] opsi service version : 4
[1] [Jul 31 10:57:57:204] [cmdhelper] 
[6] [Jul 31 10:57:57:204] [cmdhelper] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Jul 31 10:57:57:204] [cmdhelper] Key closed
[5] [Jul 31 10:57:57:256] [cmdhelper] ExitOnError was False is set to true
[6] [Jul 31 10:57:57:257] [cmdhelper] opsi-winst has version  4.11.4.12, required is : >= 4.10.5
[6] [Jul 31 10:57:57:257] [cmdhelper] LogLevel was 6
[6] [Jul 31 10:57:57:257] [cmdhelper] LogLevel set to 9
[5] [Jul 31 10:57:57:257] [cmdhelper] Set  $MsiIdRegList$ = getRegistryKeyList64("HKLM\Software\Microsoft\Windows\Currentversion\uninstall")
[2] [Jul 31 10:57:57:257] [cmdhelper] Syntax Error in Section: Actions (Command in line 12 origin: p:\cmdhelper\setup.ins line: 13): $MsiIdRegList$ = getRegistryKeyList64("HKLM\Software\Microsoft\Windows\Currentversion\uninstall") -> getRegistryKeyList64("HKLM\Software\Microsoft\Windows\Currentversion\uninstall") illegal String expression
[1] [Jul 31 10:58:04:458] [cmdhelper] ___________________
[1] [Jul 31 10:58:04:458] [cmdhelper] script finished
[1] [Jul 31 10:58:04:458] [cmdhelper] 1 error
[1] [Jul 31 10:58:04:458] [cmdhelper] 0 warnings
hat jemand die gleiche Erfahrung gemacht? Gibt es Lösungsvorschläge?

Danke im Voraus!

Re: getRegistryKeyList64 illegal String expression

Verfasst: 31 Jul 2015, 11:17
von panisch
Probier mal statt
defvar $MsiIdRegList$
ein
defStringList $MsiIdRegList$
;)

Re: getRegistryKeyList64 illegal String expression

Verfasst: 31 Jul 2015, 11:25
von SGalkin
:shock: das habe ich nicht kommen sehen!
Vielen Dank!