+ Reply to Thread
Results 1 to 3 of 3

Thread: Permissions to uninstall

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Permissions to uninstall

    Hi,
    I build a setup which requieres Administrator-rights to be launched. On a XP Professional test environment I'm logged as standard-user (makes part of the users-group). Launching my setup.exe an admin-account is asked and setup ends successfully. So I continue to be logged as standard-user. Opening the control panel - Installed programs I see my newly added application and the "remove"-button is active. Pressing it no Admin-account is asked. Is there a way to force the uninstall to
    - or hide the remove-button for non admin-accounts ?
    - or ask Admin-account-priviliges for the remove-procedure ?

    best regards
    Toni Santa

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Permissions to uninstall

    Toni,

    What you can do is to check (in your custom uninstall) if the user has admin rights. Similar to the attached code-snippet.

    Hope this helps.

    Friedrich
    Attached Images Attached Images  

  3. #3

    Default Re: Permissions to uninstall

    Hi Friedrich,
    Helps much. Thank you.
    Could be an idea for a previous version to introduce a flag that the uninstalling process must be executed with same privileges as the installer.

    Toni

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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