Archive: MUI_FINISHPAGE_RUN - script not executed


MUI_FINISHPAGE_RUN - script not executed
Hi all,

I've searched through this forum, but can't find an answer, so, here goes:

Basically, at the end of the installation, I plan to execute a script, via

MUI_FINISHPAGE_RUN "$INSTDIR\myscript.bat"

myscript.bat is a small batch script that will perform some post install stuff. However, the script was almost never executed. What I mean is, at the end of the installation, the cmd.exe window will pop-up for a split second, so I was not able to capture any error messages if there is any. Plus I am very sure that my script was not executed after checking the installation. I've tried to put the script from within a function (MUI_FINISHPAGE_RUN_FUNCTION PostInstall) where in the function I've tried Exec, ExecShell, all to no avail.

Any hints? I'm using NSIS 2.0, and Windows XP Pro.


How do you know that it hasn't ran?

-Stu


See the last post I made in this thread.


Function autorun

SetOutPath $INSTDIR
Exec '"$INSTDIR\blah.bat"'

Functionend

; Finish page
;!define MUI_FINISHPAGE_RUN_TEXT "Run yourapp"
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION autorun
!insertmacro MUI_PAGE_FINISH