Hi there, I try to get a specific Registry value's data using this script:
sImVer = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\ImageMagick\\Current", "Version", true);
Dialog.Message("ImageMagickVersion", sImVer, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
-- Check to see if an error occurred.
error = Application.GetLastError();
-- If an error occurred, display the error message.
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end
But a blank string is returned, and I do not receive any message about errors, using Application.GetLastError().
What could be wrong?
sImVer = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\ImageMagick\\Current", "Version", true);
Dialog.Message("ImageMagickVersion", sImVer, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
-- Check to see if an error occurred.
error = Application.GetLastError();
-- If an error occurred, display the error message.
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end
But a blank string is returned, and I do not receive any message about errors, using Application.GetLastError().
What could be wrong?
Comment