PDA

View Full Version : launching a readmefile (.html)



NewsArchive
12-04-2001, 01:00 AM
You can check for the existence of wscript.exe (maybe there is a better
way). Anyway most machines nowadays have WSH, if not nest the installation
of WSH before you use it. Does IE 4 + not install WSH by default?



Regards

George Furnell

Development Bank of Southern Africa



"Lewis Gordon Pringle, Jr." <lewis@sophists.com> wrote in message
news:3c0be739@news.installshield.com...
>
> "Phil Wilson" <phil.wilson@unisys.com> wrote in message
> news:3c0bc6af@news.installshield.com...
> > Something based on this should work. WshShell.Run is ShellExecute.
> >
> > Set WshShell = CreateObject("WScript.Shell")
> > res = WshShell.Run ("pathtomy.htm",4,True)
> > set wshshell = nothing
> >
> >
> > "Lewis Gordon Pringle, Jr." <lewis@sophists.com> wrote in message
> > news:3c0809bb$1@news.installshield.com...
> > > Folks:
> > > I want to know how to lauch a readme.html file from a custom
action
> > from
> > > within a BasicMSI installer. Can this be done from Javascript? The
> direct
> > > lauch-an-executable feature seems to require you to specify the EXE. I
> > don't
> > > want to require that I know the particular EXE. I want to do the
> > exquivilent
> > > of a ShellExec () - where the computer uses the default reader for the
> > given
> > > file suffix (.rtf, .html, .chm, or whatever).
> > >
> > > A friend of mine suggested writing my own launcher EXE, and then
> > passing
> > > the argument to this function. That seems like overkill. There must be
a
> > > simple way to perform such a basic function. Right?
>
> Thanx very much. I assume you are implying that the WScript COM object
> will be available on any system I install on (anything Win98 or later)? Or
> do I need to add some additional merge module to my installation to make
> this work? Or something else?
>
> Thanx,
> Lewis.
>
>
>