|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Forum King
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 |
|
|
|
|
|
#3 |
|
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? |
|
|
|
|
|
#4 |
|
Forum King
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|