Old 15th March 2007, 08:26   #1
rear_laura
Junior Member
 
Join Date: Mar 2007
Posts: 5
Problems removing folder (URGENT!)

I have a major problem trying to remove the folder (and its shorcuts) from start menu while uninstalling. It works well if user doesn't change name or path of the application...But if user changes the name or the path of the app, it doesn't remove these folders at all. It seems like nsis is unable to get the path where the app is located...strange isn't it?
I've found a post here that talks about the same problem, and some of you recommend using WriteINIStr and ReadINIStr, but I don't know how to use this! Anyway, how I am supposed to give a fixed path if it can be changed by the user (which is in fact, my problem!)

I hope someone can help me! I'm a little scared, I need to finish the installer right now ! I don't have more time!!

Please heeeeeeeeeeelp!

PD. Sorry for my poor english :P
rear_laura is offline   Reply With Quote
Old 15th March 2007, 08:31   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Take a look here, http://nsis.sourceforge.net/Uninstal...pied_Shortcuts

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 15th March 2007, 08:37   #3
rear_laura
Junior Member
 
Join Date: Mar 2007
Posts: 5
new problem.....

Thank you red wine! Anyway, magically, it's working now! I cannot understand.... Buuuuuuuuuuut (now I'm startint to cry), I have a new problem....My app is located at:

folder1/folder2/myApp.exe

so I need to remove both folder1 and folder2. I've only get to remove dir2. How can I remove dir1? Anyone?
rear_laura is offline   Reply With Quote
Old 15th March 2007, 08:51   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Yeah, that kind of magic is the best part of NSIS.

As for your new prob, I think you need GetParent,

http://nsis.sourceforge.net/Docs/AppendixE.html#E.1

unless magic covers this case too.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine 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