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.