Archive: No extension


No extension
I'm trying to make my installer show the readme after it finished the install process. As in the examples I used the following line:

!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README"

It seems though that the file, having no extension isn't opened (it works with README.txt, but this is not what I want)

And it doesn't help how I did to add a link to it:
... "notepad.exe" "$INSTDIR\README"

Please help me =)


So !define MUI_FINISHPAGE_SHOWREADME 'notepad "$INSTDIR\README"'
doesn't work?

-Stu


Nope still deosn't work...

(Just a side question, where I can find a detailed list/description of all the MUI macros?)


Ok, instead use:
MUI_FINISHPAGE_RUN 'notepad "$INSTDIR\README"'

MUI_FINISHPAGE_SHOWREADME uses ExecShell to open the file, but as yours is of no recognisable file type, it doesn't work.

All the macro's are listed in the manual (Contrib\Modern UI).

-Stu


Hmmm this way it says "Run The Mana World 0.0.14" instead of "Show the readme" and it seems it doesn't run it anyway...

I'm puzzled :confused:

EDIT: Ops I forgot to write notepad.exe (damn copy&paste)

!define MUI_FINISHPAGE_SHOWREADME 'notepad.exe "$INSTDIR\README"'
This line opens up notepad, but it complains about the syntax of the namefile, maybe "$INSTDIR\README" is wrong?

Oops.

!define MUI_FINISHPAGE_RUN "notepad.exe"
!define MUI_FINISHPAGE_RUN_PARAMETERS "$INSTDIR\README"
!define MUI_FINISHPAGE_RUN_TEXT "View Mana World Readme"

If that doesn't work, try:
"$\"$INSTDIR\README$\""

-Stu


!define MUI_FINISHPAGE_SHOWREADME 'notepad.exe "$\"$INSTDIR\README$\""'
Ok this finally fixed it. Thank you a lot for the help Afrow ;)