Hello,
I'm trying to create a query on the registry which unfortunately does not work for whatever reason!
Maybe one of you is too kind and corrects my order?
result = Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\myProgram", "ProductVersion", "ProgramName 2018", REG_SZ);
if result == false then
local sInstallLanguage = Registry.GetValue(HKEY_LOCAL_MACHINE, "System\\CurrentControlSet\\Control\\Nls\\Language ", "InstallLanguage");
if (sInstallLanguage == "0407")then
Dialog.TimedMessage("", "my Text Deutsch", 20000, MB_ICONINFORMATION);
Application.Exit(0);
else
Dialog.TimedMessage("", "my Text Englisch", 20000, MB_ICONINFORMATION);
Application.Exit(0);
I'm trying to create a query on the registry which unfortunately does not work for whatever reason!
Maybe one of you is too kind and corrects my order?
result = Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\myProgram", "ProductVersion", "ProgramName 2018", REG_SZ);
if result == false then
local sInstallLanguage = Registry.GetValue(HKEY_LOCAL_MACHINE, "System\\CurrentControlSet\\Control\\Nls\\Language ", "InstallLanguage");
if (sInstallLanguage == "0407")then
Dialog.TimedMessage("", "my Text Deutsch", 20000, MB_ICONINFORMATION);
Application.Exit(0);
else
Dialog.TimedMessage("", "my Text Englisch", 20000, MB_ICONINFORMATION);
Application.Exit(0);
Comment