Larsey
16th February 2011 09:10 UTC
How do i uinstall Program files\FOLDERNAME and Start menu\FOLDERNAME?
I've made a installer for my application that makes a folder in the Start menu, containing link to exe file and the uinstaller. It also creates a folder in the Program files(x86), but the uinstaller does not uinstall either of them.
some code on what im doing:
section "Uninstall"
delete $INSTDIR\uinstaller.exe
delete "$SMPROGRAMS\NAME\EXEFILE.lnk"
delete "$SMPROGRAMS\NAME\Uninstaller.lnk"
RMDir "$SMPROGRAMS\NAME"
Anyone have a clue?
Marshall7a
16th February 2011 10:12 UTC
Is that your actual code? I'll bet that you haven't really created a folder called "NAME" or a shortcut called "EXEFILE.lnk"
You need to post your actual code in order for anyone to see why it might not be working.
Afrow UK
17th February 2011 13:29 UTC
Also make sure you are deleting from the correct folder (i.e. SetShellVarContext). If you are installing on Vista/7 then you have to use SetShellVarContext all as explained here: http://nsis.sourceforge.net/Shortcut..._Windows_Vista
Stu