Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Delete won't work (http://forums.winamp.com/showthread.php?t=239516)

nsis2 28th February 2006 18:49

Delete won't work
 
Name "Silent"
OutFile "silent.exe"

SilentInstall silent

Function .onInit
FunctionEnd

Section
SetOutPath $TEMP
File gfx.exe
File silent.exe
ExecWait "$TEMP\gfx.exe"
Delete $TEMP\gfx.exe
Delete $TEMP\silent.exe
SectionEnd

Why the delete in this file won't work?
It executes gfx and deletes silent. But not gfx.exe...
Why?

Afrow UK 28th February 2006 19:34

The file is probably still locked after it has finished being executed. Try putting a Sleep 2000 there after ExecWait.

-Stu


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.