PDA

View Full Version : Setting Registry Values



eric_darling
09-24-2004, 08:10 AM
I think there may be something wrong with my syntax - if anyone could provide me with the corrected versions, I'd be far less stressed this morning... :)


Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Unin stall\\JCB Interactive Price ListQ4 2004", "NoModify", "1", REG_SZ);
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Unin stall\\JCB Interactive Price ListQ4 2004", "NoRepair", "1", REG_SZ);
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Unin stall\\JCB Interactive Price ListQ4 2004", "DisplayIcon", "%AppFolder%\\start.ico", REG_SZ);

Brett
09-24-2004, 08:16 AM
Your syntax looks OK, could it be: "Unin stall" is wrong? Should it be "uninstall"?

Brett
09-24-2004, 08:17 AM
By the way, Eric, you don't need any of those keys in SUF70. "NoModify" and "NoRepair" are done automatically and you can set the icon from the Uninstall properties.

eric_darling
09-24-2004, 08:20 AM
Thanks on both accounts, Brett! :yes