abnrange
12-12-2008, 12:54 PM
Hello,
Quick question - I have a small exe file that once run I want to set a registry or ini value that, if the exe has already been installed don't install it again. How do I tell the exe not to run again?
On Button Click
File.Open("AutoPlay\\SoftwareDIS\\ImagingFiles\\UniImage.exe", "", SW_SHOWNORMAL);
-- Set the data "Installed" in the Local Machine Registry.
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\IFD5", "ImagingFiles", "Installed", REG_SZ);
Then I would get the value from the registry
value = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\IFD5", "Installed", true);
if value == true then
??????
Thanks
Quick question - I have a small exe file that once run I want to set a registry or ini value that, if the exe has already been installed don't install it again. How do I tell the exe not to run again?
On Button Click
File.Open("AutoPlay\\SoftwareDIS\\ImagingFiles\\UniImage.exe", "", SW_SHOWNORMAL);
-- Set the data "Installed" in the Local Machine Registry.
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\IFD5", "ImagingFiles", "Installed", REG_SZ);
Then I would get the value from the registry
value = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\IFD5", "Installed", true);
if value == true then
??????
Thanks