Archive: Can't delete startmenu items in Vista


Can't delete startmenu items in Vista
When using same installation script during uninstall it deletes correctly all startmenu items created in installation, but when using it in Vista it doesn't delete it.

I use this code in uninstall section:

Delete /REBOOTOK "${startmenu}\FinishInstallation.lnk"
Delete /REBOOTOK "${startmenu}\*.*"
RMDir /r /REBOOTOK "${startmenu}"

It also doesn't delete company directory in Vista on C disc.
(C:\Company) and it does in XP.

This is the code :
RMDir "${company_install_dir}"

where company_install_dir represents C:\Company.

I thought that NSIS bug was solved in NSIS 2.23 version. Now i use 2.44 version of NSIS and 1.00b2 version of UMUI.

I've tried with "SetShellVarContext all" in install and uninstall section and now it works ok.

Case solved.


It's not an NSIS bug, per se... It's a matter of SetShellVarContext being set properly; I suppose that if you RequestExecutionLevel admin, it should be automatically set to "all"... But, I've seen cases where this doesn't happen.

So, you probably want to look at this page for the solution.


Tnx for the answer.