External link

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

External link

Postby MarkRichards » Fri Jul 21, 2006 1:40 pm

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:

Postby MichaelNesmith » Fri Jul 21, 2006 6:47 pm

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
InstallAware
Home of The Next Generation MSI Installer
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

Postby hess_joel » Tue Aug 22, 2006 12:22 pm

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

Postby hess_joel » Fri Aug 25, 2006 7:17 am

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:

Postby MichaelNesmith » Fri Aug 25, 2006 7:34 am

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

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: Majestic-12 [Bot] and 162 guests