Archive: Issue with Exec


Issue with Exec
Hello.

I'm trying to get the Exec\ExecWait function to execute in the uninstall section after the folders are deleted but I can't get it working for some reason because I've had it working in the past. I'm wondering if I've discovered a bug.

In the install section I have the exact same command which works:

...
File "C:\Program Files\CodeBlocks\dc\sh-elf\share\locale\zh_TW\LC_MESSAGES\binutils.mo"

ExecWait `"$INSTDIR\configure.exe" $INSTDIR`

SectionEnd


In the uninstall section which doesn't work. The details window shows that it's trying to execute the file though:
...
RMDir "$INSTDIR\"

ExecWait `"$INSTDIR\configure.exe" $INSTDIR`

SectionEnd


Maybe it's not a bug... It's possible it's a bug in configure.exe. However the program runs perfectly fine if I run it through cmd with the parameter.

Maybe configure.exe is already deleted when you attempt to launch it.


Ah, of course!