Archive: Problems removing folder (URGENT!)


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


Take a look here, http://nsis.sourceforge.net/Uninstal...pied_Shortcuts


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?


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. ;)