Skip to content
⌘ NSIS Forum Archive

Start Menu folder not removed

4 posts

Milan Skala#

Start Menu folder not removed

Hello,

I have problem, which is completely out of my mind. When I install MyApp, a shortcut is created in Start Menu. This works fine. I also save Start Menu path into registry, so I could remove it during uninstallation. But there is a problem.
When I uninstall MyApp, the MyApp files are removed correctly. But Start Menu folder stays empty (files inside the folder are gone). I also looked into Program Data/Microsoft/Windows/Start Menu and MyApp folder is gone. How is it possible that folder remains in Start? Registry are clean as well.

To remove folder I use
RMDir /r $SMPROGRAMS/$SM_FOLDER
$SM_FOLDER contains correct path (checked with MessageBox before removal itself).

And as I said, everything is removed correctly (registry, Program Data/...), but the folder stays empty in Start Menu. Is the any solution for this?
I use Windows 7 64-bit.

Thank you
azureusvuze#
Try to check in:
C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\
If it's exists, try to put SetShellVarContext current just above the RMDir.
Milan Skala#
That works fine, even it is a little inconvenient that I have to remove that directory twice (once for all users and once for current user), but that is accetable.
Thank you very much 🙂
Anders#
Use the RequestExecutionLevel attribute in your script to turn off the compatibility handling that Windows forces on your installer.

See also: