Skip to content
⌘ NSIS Forum Archive

Uninstallation doesn't remove files...

4 posts

Tsury#

Uninstallation doesn't remove files...

Hi.

I have the following:
  
Section "Typical" SEC01
SetOutPath "$INSTDIR"
SetOverwrite on
File "C:\myfiles\file.dll"
SetOutPath "$APPDATA\myProg"
SetOverwrite on
File "C:\myfiles\file.dat"
SectionEnd

Section Uninstall
Delete /rebootok "$INSTDIR\file.dll"
Delete /rebootok "$APPDATA\myProg\file.dat"
SectionEnd
For some reason, file.dll is never deleted, not even after a reboot.
I have some other files like file.dat which are successfully deleted.
What am I doing wrong here?

(Using Win7 Enterprise x64).
Thanks.
MSG#
In the uninstaller, $INSTDIR contains the folder where the uninstall.exe is stored. This is not necessarily the same as it was in the installer.
Tsury#
Originally Posted by MSG View Post
In the uninstaller, $INSTDIR contains the folder where the uninstall.exe is stored. This is not necessarily the same as it was in the installer.
Thanks. That my issue.
I will probably use the registry to help me.