Old 21st February 2010, 07:01   #1
Maxim30
Member
 
Maxim30's Avatar
 
Join Date: Sep 2005
Location: Martinsicuro -Teramo- Italy
Posts: 76
!define MUI_FINISHPAGE_RUN does not run executable

Hello,
I have to run an executable located in the path $INSTDIR\Bin when setup ends by the define MUI_FINISHPAGE_RUN "$INSTDIR\bin\$8" where $8 is obtained in the installer code by command StrCpy $8 "bin\MyExecutableFile.exe".
But all of this does not work.
I have also tried to use !define MUI_FINISHPAGE_RUN "$INSTDIR\bin\$8" and StrCpy $8 "MyExecutableFile.exe", but it does not work again.

How to fix it ?

Massimo
Maxim30 is offline   Reply With Quote
Old 21st February 2010, 07:13   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
$8 may well have changed its value by the time the run command is called. Try using a variable instead of a register.
MSG is offline   Reply With Quote
Old 21st February 2010, 09:23   #3
Maxim30
Member
 
Maxim30's Avatar
 
Join Date: Sep 2005
Location: Martinsicuro -Teramo- Italy
Posts: 76
There are not others $8 variables in the code; I have tried another unique variable ($eseg), but it does not work again.

Massimo
Maxim30 is offline   Reply With Quote
Old 21st February 2010, 10:40   #4
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
if $8 is bin\MyExecutableFile.exe, shouldn't it be !define MUI_FINISHPAGE_RUN "$INSTDIR\bin\$8"? is your exe really stored in "$INSTDIR\bin\bin"?!
Yathosho is offline   Reply With Quote
Old 21st February 2010, 11:08   #5
Maxim30
Member
 
Maxim30's Avatar
 
Join Date: Sep 2005
Location: Martinsicuro -Teramo- Italy
Posts: 76
Quote:
Originally posted by Yathosho
if $8 is bin\MyExecutableFile.exe, shouldn't it be !define MUI_FINISHPAGE_RUN "$INSTDIR\bin\$8"? is your exe really stored in "$INSTDIR\bin\bin"?!
I have mistyped in my previous message .
It is !define MUI_FINISHPAGE_RUN "$INSTDIR\$8" and StrCpy $8 "bin\MyExecutableFile.exe", then this does not work as long as !define MUI_FINISHPAGE_RUN "$INSTDIR\bin\$8" and StrCpy $8 "MyExecutableFile.exe".

The real path is $INSTDIR\bin\MyExecutableFile.exe.
I have also this in the code:

Function .onVerifyInstDir
StrCpy $INSTDIR "$INSTDIR\${Name}"
FunctionEnd

But when I have installed I have not used the default path ${Name}, another folder instead.

Massimo
Maxim30 is offline   Reply With Quote
Old 23rd February 2010, 21:35   #6
Maxim30
Member
 
Maxim30's Avatar
 
Join Date: Sep 2005
Location: Martinsicuro -Teramo- Italy
Posts: 76
Furtherly, I have tried to escape the slash in the path adding another slash or a quote ("bin\\$8" or bin"\$8) but the code yet does not work resulting in the missing launching when setup ends.

Are there any suggestions to let the setup run the application (16 bit) at end ?

Massimo

Last edited by Maxim30; 23rd February 2010 at 22:06.
Maxim30 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