Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to RmDir $INSTDIR if install fails (http://forums.winamp.com/showthread.php?t=234472)

dsilvia 1st January 2006 02:47

How to RmDir $INSTDIR if install fails
 
Hi,

I'm having a problem with removing the install directory once created during an install. On uninstall, it works fine, but that's in a different execution context from the install. In the install I can back out everything I do, but I cannot remove the install directory!:(

What am I doing wrong? :confused:

TIA,
Dave S.

Takhir 1st January 2006 06:29

The folder might be 'in use' (by installer process), so set another 'current' folder first
code:

SetOutPath "$EXEDIR"
RMDir "$INSTDIR"


But I also saw bug reports with this problem, so you can try to use some other NSIS version (latest or <2.10).


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.