Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ExecWait does not work in Section "Uninstall" (http://forums.winamp.com/showthread.php?t=301031)

ronhash 13th December 2008 18:50

ExecWait does not work in Section "Uninstall"
 
Hi,

I am trying to run an executable during uninstall. For some reason it just ignore my ExeWait call, the executable is not called, but the uninstaller does the other commands I give it.

I use NSIS 2.40, Modern UI version 2

This is the script uninstall section beginning, where I try to run my executable:
...
Section "Uninstall"
ExecWait "$WINDIR\notepad.exe"
RMDir /r "$INSTDIR\bin\release"
RMDir /r "$INSTDIR\data"
...

If I look into the MakeNSIS log, I don't see this line at all:
...
Section: "Uninstall"
RMDir: /r "$INSTDIR\bin\release"
RMDir: /r "$INSTDIR\data"
...

Any ideas?
Am I doing something wrong?

Thanks!
Ron.

LoRd_MuldeR 13th December 2008 18:56

Because "notepad.exe" is located in $SYSDIR, not in $WINDIR ???

ronhash 13th December 2008 19:18

Tried $SYSDIR... did not work as well :-(
The MakeNSIS does not even show this line in the log - why is that?

LoRd_MuldeR 13th December 2008 20:07

Post your COMPLETE script please...

ronhash 13th December 2008 20:25

Sorry... just found the mistake in my script.
Thanks for the swift responses ;-)


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.