Results 1 to 2 of 2

Thread: [RESOLVED] Inno Setup: Remove registry setting when uninstalling

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Resolved [RESOLVED] Inno Setup: Remove registry setting when uninstalling

    Hi, my application has an option to start it when Windows starts.

    If the user has set that option and uninstalls the application, the value will remain in the registry.

    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    
    Name: Application name
    Type: REG_SZ
    Data: C:\Program Files\Microsoft Visual Studio\VB98\Application\Application.exe
    How can I check if my app has been added to the Windows startup and remove it if it exists?

    I found out it works like this, but I'm not exactly sure what code I need in my case.
    The registry is not something to mess around with, so I'd like to be sure.
    Code:
    Root: HKCU; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Re: Inno Setup: Remove registry setting when uninstalling

    Problem solved. This is how it should be done.

    Code:
    Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "ApplicationName"; Flags: dontcreatekey uninsdeletevalue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width