Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Conditional delete on Uninstall (http://forums.winamp.com/showthread.php?t=205985)

FredLePed 26th January 2005 09:10

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 :(

Afrow UK 26th January 2005 10:08

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

-Stu

FredLePed 26th January 2005 12:16

Thanks :) , it works perfectly ! :up:


All times are GMT. The time now is 04:43.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.