External link

Got a problem you cannot solve? Try here.
Post Reply
MarkRichards
Posts: 47
Joined: Tue Apr 18, 2006 8:39 am

External link

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Post 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).
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Post 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?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply