Tolwyn
30th August 2002 00:01 UTC
Easy Question
From the HTML, it says this should work:
Function .onInstSuccess
MessageBox MB_YESNO "Installation Successful.$\rWould you like to read the README?" IDNO NoReadme
Exec notepad.exe "${INSTDIR}\readme.txt"; view readme or whatever, if you want.
NoReadme:
FunctionEnd
And I do, obviously, have readme.txt included in the FILE thing.
kichik
30th August 2002 00:12 UTC
$INSTDIR is a parameter, not a defined value, so don't use {}.
Quote it all into one parameter and it should work:
Exec 'notepad.exe "$INSTDIR\readme.txt"
Wyz
30th August 2002 00:23 UTC
To run a Readme file (.txt) I use : ExecShell open ReadMe.txt on .
What's the difference between Exec and ExecShell ??
Regards
kichik
30th August 2002 00:29 UTC
ExecShell uses the shell to open the file. This means you don't control the program that opens the file, the shell does. In this case I would say it is better to use ExecShell, becuase then you don't have to worry about notepad.exe to be in the user's path, and you give the user his default text editor.