Old 6th February 2007, 03:35   #1
Malwarebytes
Junior Member
 
Join Date: Feb 2007
Posts: 4
Shortcuts on Vista

I've looked around the forum and found a few topics on this. Using the uninstaller fails to delete the shortcuts in the start menu.

I do MessageBox MB_OK, "$SMPROGRAMS" and it returns the correct path... why doesn't DeleteFile "$SMPROGRAMS\Test\test.lnk" work? Any input would be great and sorry if this is posted elsewhere, I could not find the correct term I wanted to search for.
Malwarebytes is offline   Reply With Quote
Old 6th February 2007, 12:10   #2
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
See if you used "SetShellVarContext all" and "SetShellVarContext current" in the correct way just before your "CreateShortCut" command.

TIPS:

Also make sure you use the Latest v2.23 or higher of NSIS since older version of NSIS had certain defect behaviour when creating icons.

Try an example included with NSIS and see what happens.

"Just do it"
onad is offline   Reply With Quote
Old 6th February 2007, 23:44   #3
Malwarebytes
Junior Member
 
Join Date: Feb 2007
Posts: 4
Yup SetShellVarContext all seems to have fixed it. It has to be declared twice, during install, and during uninstall. I appreciate your help.
Malwarebytes 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