Setting Registry Values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • eric_darling
    Indigo Rose Customer
    • Jun 2002
    • 1805

    Setting Registry Values

    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...

    Code:
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\JCB Interactive Price ListQ4 2004", "NoModify", "1", REG_SZ);
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\JCB Interactive Price ListQ4 2004", "NoRepair", "1", REG_SZ);
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\JCB Interactive Price ListQ4 2004", "DisplayIcon", "%AppFolder%\\start.ico", REG_SZ);
    Eric Darling
    eThree Media
    http://www.ethreemedia.com
  • Brett
    Indigo Rose Staff Member
    • Jan 2000
    • 2001

    #2
    Your syntax looks OK, could it be: "Unin stall" is wrong? Should it be "uninstall"?

    Comment

    • Brett
      Indigo Rose Staff Member
      • Jan 2000
      • 2001

      #3
      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.

      Comment

      • eric_darling
        Indigo Rose Customer
        • Jun 2002
        • 1805

        #4
        Thanks on both accounts, Brett! :yes
        Eric Darling
        eThree Media
        http://www.ethreemedia.com

        Comment

        Working...
        X