Recur
24th May 2006 10:08 UTC
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.
Recur
24th May 2006 17:13 UTC
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
kichik
1st June 2006 09:51 UTC
The working directory is probably wrong. Use MUI_FINISHPAGE_RUN_FUNCTION and set the working directory using SetOutPath before executing your application.