Hello
perhaps it is quite simple?
In the finish dialog I have a checkbox "Show Readme"
The ReadmeEnd.rtf file is copied to the $TARGETDIR$
In the MSI code I do a
RUN Program $TARGETDIR$\readmeEnd.rtf if the checkbox is checked. But no wordpad opens.
Do I need to specify the full path to the local "wordpad.exe"?
Or is there a better way to show the Readme file without "wordpad.exe" (I think the path is OS dependend)
best regards
Hans
How show a rtf file after finish dialog?
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: How show a rtf file after finish dialog?
Dear Hans,
honestly, I am able to open a RTF doc just using;
- Run Program $TARGETDIR$\Document.rtf
Obviously, doing that just after Apply Install.
Regards
honestly, I am able to open a RTF doc just using;
- Run Program $TARGETDIR$\Document.rtf
Obviously, doing that just after Apply Install.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: How show a rtf file after finish dialog?
Dear Francesco,
thank you for help.
I do not know what I am doing wrong?
Here is my MSI Code which is at the end when the finish dialog is visible and this is also after Apply Install
The variable READMESHARE is my Readme checkbox which is default TRUE
The messagebox occurs and shows the correct path. The ReadmeShare.rtf file is also located in the Progdir folder but no Wordpad opens and the document will not be shown.
any idea?
if Variable READMESHARE Equals TRUE
if Variable REMOVE Equals FALSE
if Variable SUCCESS Equals COMPLETE
Comment: Run Program $PROGDIR$\ReadmeShare.rtf
Run Program $PROGDIR$\ReadmeShare.rtf
MessageBox: Readme, show readme in $PROGDIR$\ReadmeShare.rtf
end
end
end
regards
Hans
thank you for help.
I do not know what I am doing wrong?
Here is my MSI Code which is at the end when the finish dialog is visible and this is also after Apply Install
The variable READMESHARE is my Readme checkbox which is default TRUE
The messagebox occurs and shows the correct path. The ReadmeShare.rtf file is also located in the Progdir folder but no Wordpad opens and the document will not be shown.
any idea?
if Variable READMESHARE Equals TRUE
if Variable REMOVE Equals FALSE
if Variable SUCCESS Equals COMPLETE
Comment: Run Program $PROGDIR$\ReadmeShare.rtf
Run Program $PROGDIR$\ReadmeShare.rtf
MessageBox: Readme, show readme in $PROGDIR$\ReadmeShare.rtf
end
end
end
regards
Hans
Re: How show a rtf file after finish dialog?
I have tested a little bit more.
It is not possiblejust to add
Run Program $PROGDIR$\\ReadmeShare.rtf
You have to add wordpad.exe
Run Program wordpad.exe $PROGDIR$\\ReadmeShare.rtf
BUT, the problem is that Wordpad cannot find the Readme.rtf if you install to C:\Program Files\MyApp\Readme.rtf
In CMD window you can mask the path with "" like "C:\Program Files\MyApp\Readme.rtf" but this will not work in the IA Run Program dialog
A, Run Program wordpad.exe "$PROGDIR$\\ReadmeShare.rtf" will not work.
How cann I mask the path correct?
Otherwise I have to copy the "Readme.rtf" File to C:\ or C:\windows but this not such a good idea I think.
regards
Hans
It is not possiblejust to add
Run Program $PROGDIR$\\ReadmeShare.rtf
You have to add wordpad.exe
Run Program wordpad.exe $PROGDIR$\\ReadmeShare.rtf
BUT, the problem is that Wordpad cannot find the Readme.rtf if you install to C:\Program Files\MyApp\Readme.rtf
In CMD window you can mask the path with "" like "C:\Program Files\MyApp\Readme.rtf" but this will not work in the IA Run Program dialog
A, Run Program wordpad.exe "$PROGDIR$\\ReadmeShare.rtf" will not work.
How cann I mask the path correct?
Otherwise I have to copy the "Readme.rtf" File to C:\ or C:\windows but this not such a good idea I think.
regards
Hans
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: How show a rtf file after finish dialog?
Dear Hans,
please have a look at the attached project (it includes the builded package).
I have tested the package with WIN XP & WIN 7 and it shows the installed RTF file correctly (... just before the Finish dialog).
Hope this helps you.
Regards.
please have a look at the attached project (it includes the builded package).
I have tested the package with WIN XP & WIN 7 and it shows the installed RTF file correctly (... just before the Finish dialog).
Hope this helps you.
Regards.
- Attachments
-
- ShowRtf.rar
- (1.72 MiB) Downloaded 788 times
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 120 guests