Page 1 of 1

External link

Posted: Fri Jul 21, 2006 1:40 pm
by MarkRichards
Hello,

I would like to add a hyperlink to an external website in my product installer. I can't seem to figure out a way to do this - is is possible?

I would be happy with a simple button, but I'm not sure how to have it trigger some arbitrary piece of code (InstallAware script). If I could do so, I would simply ShellExec out a call through shell32.dll. But I don't see a way to do this in response to a button click.

Maybe there's another way?

- Mark R.

Posted: Fri Jul 21, 2006 6:47 pm
by MichaelNesmith
To run the link, you'd just use Run Program.

See the CD Autorun sample - it contains multiple buttons/links on the dialog, and the MSIcode script traps the events on each dialog item, letting you process them manually in your script. That should be a great example for you.

Posted: Tue Aug 22, 2006 12:22 pm
by hess_joel
How do I set up my installscript to do this from within a wizard loop? I have several dialogs that are displayed in sequence with a button on one of them that I would like to launch the web page (not modally).

Posted: Fri Aug 25, 2006 7:17 am
by hess_joel
hess_joel wrote:How do I set up my installscript to do this from within a wizard loop? I have several dialogs that are displayed in sequence with a button on one of them that I would like to launch the web page (not modally).


Any Ideas?

Posted: Fri Aug 25, 2006 7:34 am
by MichaelNesmith
You will need to use the label based approach, instead of the wizard loop command, to achieve this requirement. The wizard loop is ideal for simple back-next-cancel dialogs shown after one another with nothing much going on in between; the label based approach provides a lot more options and custom handing for every click on your dialogs. Just look at the default setup project to see how the label based approach is coded.