|
|
#1 |
|
Junior Member
Join Date: May 2006
Posts: 2
|
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. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: May 2006
Posts: 2
|
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 |
|
|
|
|
|
#3 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
The working directory is probably wrong. Use MUI_FINISHPAGE_RUN_FUNCTION and set the working directory using SetOutPath before executing your application.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|