Hi
Thanks for the reply, I can't test that until i'm back to work on Monday morning.
I'm not sure that is the problem though. On the MUI_FINISHPAGE I have four check boxes, one of those is to launch the app, the second to show a README doc and the other two are for shortcuts.
My Finish page looks like this:
!define MUI_PAGE_CUSTOMFUNCTION_PRE CreateControls
!define MUI_PAGE_CUSTOMFUNCTION_SHOW SetControlColours
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE DisplayQuickLaunchAndDesktopIcon
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show release notes"
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION ShowReleaseNotes
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Launch Zang"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchZang"
!insertmacro MUI_PAGE_FINISH
and the 2 functions that launches the app and dislays the README stuff.
Function LaunchZang
ReadEnvStr $0 COMSPEC
nsExec::Exec '$0 /c "$INSTDIR\client\startZang.bat"'
FunctionEnd
Function ShowReleaseNotes
ExecShell "open" "$INSTDIR\README.txt"
FunctionEnd
The function ShowReleaseNotes works, but LaunchZang does not as previously explained.
What I don't understand is why does one work and the other doesn't. If I was in an incorrect working directory as you suspect then surely both would fail.
Regards
Paul