- Code: Select all
String$ = 'BINARY::KL'
String$ = 'BINARY::KL'
String$='HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment,PROCESSOR_ARCHITECTURE'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","SetRegistryPath")
PluginRun("PlugIn","RegistryGetValue")
PluginGet("PlugIn","StringOut$")
If (StringOut$='x86') Then
RegistryKey$=''
End
If (StringOut$='AMD64') Then
RegistryKey$='\WOW6432Node'
End
String$='HKEY_LOCAL_MACHINE\SOFTWARE'+RegistryKey$+'\MySoftware,Value'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","SetRegistryPath")
String$='HIDE /C REG ADD HKLM\SOFTWARE'+RegistryKey$+'\MySoftware /f /v Value /t REG_BINARY /d hexhexhexhexhex'
Run("CMD","String$")
Caml Light wrote:there are characters that can't be converted from hex to ascii, for example: "1A"
String$ = 'BINARY::' + CHR(26)
String$='IDsRange1, IDsRange2, ..., IDsRangeN'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","DeleteMenuItem")
String$='FileMenuHandle, ViewMenuHandle, ToolsMenuHandle, HelpMenuHandle'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","DeleteMenuItem")
Integer=FileMenuHandle
PluginSet("PlugIn","Integer")
PluginRun("PlugIn","DeleteMenuItem"
**
Integer=ViewMenuHandle
PluginSet("PlugIn","Integer")
PluginRun("PlugIn","DeleteMenuItem"
RemoveMenu$ = CHAR(start_id) + '%' + CHAR(end_id)
PluginSet("PlugIn","RemoveMenu$")
PluginRun("PlugIn","DeleteMenuItem")
String$ = CHAR(FileMenuHandle) + ',' + CHAR(ViewMenuHandle) + ',' + CHAR(ToolsMenuHandle) + ',' + CHAR(HelpMenuHandle)
PluginSet("PlugIn","String$")
PluginRun("PlugIn","DeleteMenuItem")
Caml Light wrote:Hi digilmour, hi guys!
With SmallPlugin I'm trying to read the value of a registry key:
String$='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MySoftware,DisplayVersion'
PluginSet("SmallPlugin","String$")
PluginRun("SmallPlugin","SetRegistryPath")
PluginRun("SmallPlugin","RegistryGetValue")
PluginGet("SmallPlugin","StringOut$")
Message("StringOut$","")
Exit()
The problem is that under 64bit OS the registry key automatically redirect to:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MySoftware
Clearly that gives me no value! It there a solution?
String$='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MySoftware, DisplayVersion, 64KEY'
PluginSet("SmallPlugin","String$")
PluginRun("SmallPlugin","SetRegistryPath")
Users browsing this forum: No registered users and 1 guest