Archive: Conditional delete on Uninstall


Conditional delete on Uninstall
Hi,

i'm a noob with NSIS but all is working well except one thing :

Once installed, my application creates a file in the same folder as my main exe file.

How to tell to uninstaller the following :

...
if(FileExists($INSTDIR."lang.ini"))
del($INSTDIR."lang.ini");
...

sorry for my bad english :(


IfFileExists "$INSTDIR\lang.ini" 0 +2
Delete "$INSTDIR\lang.ini"

-Stu


Thanks :) , it works perfectly ! :up: