Menu

#189 Uninstaller leaves shortcuts when installed for all users

2.0 Beta Series
closed-invalid
nobody
Scripting (211)
5
2003-11-12
2003-11-12
Anonymous
No

[related to version 2 beta 3]

When

SetShellVarContext all

is set, the installer creates the wanted shortcuts like

CreateShortCut "$SMPROGRAMS\ [...]
CreateShortCut "$SMSTARTUP\ [...]

in the "All Users"-Folder. This is the expected behavior.

But when the program is uninstalled with the commands like

Delete "$SMPROGRAMS\ [...]
Delete "$SMSTARTUP\ [...]

the uninstaller tries to delete the not existing
shortcuts and folders in the current users directory.

I think that setting the SetShellVarContext variable to
"all" should work as a switch for installation _and_
uninstallation.

The installation part works fine, the uninstallation
does not :-(

If you have questions you can contact me at

2003b@karpfenteich.net

Regards
Peter

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Oops,

    just found that this is not a bug, but a feature? I have to
    set the SetShellVarContext for every section again. I
    assumed that the installer would remember in which folders
    the shortcuts where created and would then delete the
    "right" ones.

    Maybe you can think about changing that behavior if I don't
    overlook any side effects. Or adding this question to the
    FAQ might be a good idea?:

    Q: I have installed the program for "All Users". Why does
    the uninstaller not delete the shortcuts allthough I have
    specified that?

    A: When you set the SetShellVarContext variable to
    "all" for the installer section for example to create
    shortcuts like

    SetShellVarContext all
    CreateShortCut "$SMPROGRAMS\ [...]
    CreateShortCut "$SMSTARTUP\ [...]

    you also have to specify that variable in the corresponding
    uninstall section of the script:

    SetShellVarContext all
    Delete "$SMPROGRAMS\ [...]
    Delete "$SMSTARTUP\ [...]

    ---
    Thanks for your great free installer!
    Regards
    Peter

     
  • Joost Verburg

    Joost Verburg - 2003-11-12
    • status: open --> closed-invalid
     
  • Joost Verburg

    Joost Verburg - 2003-11-12

    Logged In: YES
    user_id=604457

    This is indeed the correct behavior. Added a FAQ item.

     

Log in to post a comment.

MongoDB Logo MongoDB