getRegistryKeyList64 illegal String expression

Antworten
SGalkin
Beiträge: 7
Registriert: 08 Jul 2014, 18:48

getRegistryKeyList64 illegal String expression

Beitrag 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!
panisch
Beiträge: 47
Registriert: 02 Okt 2014, 15:22

Re: getRegistryKeyList64 illegal String expression

Beitrag von panisch »

Probier mal statt
defvar $MsiIdRegList$
ein
defStringList $MsiIdRegList$
;)
SGalkin
Beiträge: 7
Registriert: 08 Jul 2014, 18:48

Re: getRegistryKeyList64 illegal String expression

Beitrag von SGalkin »

:shock: das habe ich nicht kommen sehen!
Vielen Dank!
Antworten