Old 24th May 2006, 09:08   #1
Recur
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.
Recur is offline   Reply With Quote
Old 24th May 2006, 16:13   #2
Recur
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
Recur is offline   Reply With Quote
Old 1st June 2006, 08:51   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump