htmlviewer/richedit contents?

Got a problem you cannot solve? Try here.
Nick
Posts: 30
Joined: Wed Nov 30, 2005 5:18 pm

htmlviewer/richedit contents?

Postby Nick » Mon Jun 05, 2006 11:17 am

It looks like both of these controls are pretty limited in what can be shown.

html viewer can only show the installation billboard, ie: index.htm. It can't show else.

richedit can only show the readme or license agreement.

Is it possible to use them to show more than just the above?

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Tue Jun 06, 2006 9:24 am

The index.htm file can have links to other pages that you include in your support files (Creatives), with a little scripting you can even rename files on the fly in your script so that when a dialog changes you rename another file to index.htm.

You can use this same logic with the rtf files.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

Nick
Posts: 30
Joined: Wed Nov 30, 2005 5:18 pm

Postby Nick » Tue Jun 06, 2006 11:30 am

I tried that but that didn't seem to work. Trying to replace the index.htm which is a support file doesn't seem to work. I tried using the Copy/Move Local Files built-in command and even "Call DLL function" to call CopyFile function.

I even tried to modify the index.html with write to text file.

Why are these controls so limited? If they are a html viewer and an rtf viewer then shouldn't they be allowed to display any html and rtf files that are support files?

I have multiple rtfs and html files that I would like to show during the installer but can't. For now I have to force a browser to come up and point to our website, not ideal. I would really like to see these controls have more flexiblity in what they can show.

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Tue Jun 06, 2006 12:26 pm

In your index.html can you not put something like
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
Where you can change 0 to the number of seconds, and of course change the url.


Just a thought.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jun 06, 2006 3:12 pm

Yes, this is the recommended approach. The index.htm file is simply the entry point. You are free to do whatever else you want. As long as you call direct API functions (Windows Installer commands do not take effect until Apply Install executes), you should also be able to rename files in $SUPPORTDIR$.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 162 guests