Old 27th April 2009, 08:21   #1
kmudrovcic
Junior Member
 
Join Date: Apr 2009
Posts: 25
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.

Last edited by kmudrovcic; 27th April 2009 at 09:52.
kmudrovcic is offline   Reply With Quote
Old 27th April 2009, 09:06   #2
lewellyn
Member
 
Join Date: Nov 2002
Location: San Francisco, CA
Posts: 82
Send a message via ICQ to lewellyn Send a message via AIM to lewellyn Send a message via Yahoo to lewellyn
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.
lewellyn is offline   Reply With Quote
Old 27th April 2009, 09:52   #3
kmudrovcic
Junior Member
 
Join Date: Apr 2009
Posts: 25
Tnx for the answer.
kmudrovcic is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump