Archive: Uninstaller: removing Start Menu folder?


Uninstaller: removing Start Menu folder?
Hello!

I've got a little problem with my uninstaller.
It seems like mostly he doesn't want to delete my Start Menu folder, my remove-line looks like this:

RMDir /r "${S_DIR}"

and my constant ${S_DIR}" looks like this:

!define S_DIR "$SMPROGRAMS\MyApp"

But he just can't delete it. I don't understand this, because with every other Directory I want to remove, it works perfectly.

I hope someone could help me here :)

Nice greetings
Guv'nor


Try using Delete on each icon to delete them and then use RMDir without /r.
It may be Windows locking the folder as it usually writes a hidden desktop.ini file to start menu folders.

-Stu


Well, sadly, that didn't work.

I tried it like this:


Delete "$SMSTARTUP\${S_EXE_NAME}.lnk"

Delete "${S_DIR}\${S_EXE_NAME}.lnk"
Delete "$(uninstname)"
Delete "${S_DIR}\desktop.ini"
RMDir "${S_DIR}"


And now I've got something very interesting: I copied the uninstall log into notepad and I noticed, that he just stops after deleting the Autorun-Entry (that's why I included that line here also). Right after that, he logs "Finished."

I don't understand that, the above script is taken 1:1 out of my script, there are no lines in between or something. He should just go on with deleting the remaining 4 entries.

Are you using SetShellVarContext in the installer? Have you used it in the uninstaller as well?


Well, that's it :)

I could not even remember using it, I just wanted to answer you with "no I don't use it" ;) but then I looked again and noticed that I really have this thing in my script :)

Thanks!