Archive: Mui_finishpage_run


Mui_finishpage_run
Im using MUI_FINISHPAGE_RUN to start an .exe after installation, but the program fails.

When i start the application manually after the install program is finished the application starts as it should. How could this be?

The .exe uses files that are in a directory below and it seems that these files are not available until the installer has finished. Am i correct? And what could be done to fix it.


I found a solution if anyone's interested.

Failing:
Section "MainSection" SEC01
.......
SetOverwrite try
CreateDirectory "$INSTDIR\lib"
SetOutPath "$INSTDIR\lib"
File "lib\jdic.jar"
File "lib\swing-layout-1.0.jar"
SectionEnd

Working:
Section "MainSection" SEC01
.......
SetOverwrite try
CreateDirectory "$INSTDIR\lib"
SetOutPath "$INSTDIR\lib"
File "lib\jdic.jar"
File "lib\swing-layout-1.0.jar"
SetOutPath "$INSTDIR"
SectionEnd


The working directory is probably wrong. Use MUI_FINISHPAGE_RUN_FUNCTION and set the working directory using SetOutPath before executing your application.