Mod Tool/Scripting: Difference between revisions

there's a problem with reading some registry keys on a 64-bit OS with an 32-bit program
m (read registry)
(there's a problem with reading some registry keys on a 64-bit OS with an 32-bit program)
Line 16: Line 16:


===read registry===
===read registry===
Mod Tool fails to do this properly. So the code must be compiled in *.exe files? (64-bit/32-bit)
Mod Tool (because 32-bit) fails to execute following code properly on 64-bit operation systems. So the code must be build as 64-bit '''and''' 32-bit application.
  Set WshShell = CreateObject("WScript.Shell")
  Set WshShell = CreateObject("WScript.Shell")
  AE_path = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B67333BB-1CF9-4EFD-A40B-E25B5CB4C8A7}}_is1\InstallLocation")
  AE_path = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B67333BB-1CF9-4EFD-A40B-E25B5CB4C8A7}}_is1\InstallLocation")
8,452

edits