Hi,

I'm confused about how to create a button and launch the default browser
with a specified URL. I'm using wix 3.

Currently, I've created my custom UI sequence based on WixUI_InstallDir. I
changed a bit of the welcome screen and added a button via <Control
Type="PushButton"... in MyWelcomeDlg.wxs. The compiler complained about
there must be an event associated with this button. So I added a child node
<Publish Event="DoURL" Value="0"/> to pass the compiler. It's displayed
correctly.

It looks like I should use a <CustomAction> with DllEntry="WixShellExec" to
execute the URL. But I've already used it to launch the program after setup.
The WixShellExecTarget property is already set. How do I create a custom
action to launch this URL now?

Besides, I'm not sure what's the correct way to link this button to the
custom action. Under <UI> of my main project, I put <Publish
Dialog="MyWelcomeDlg" Control="URLButton" Event="DoURL"
Value="MyCustomActionID"/>, it doesn't work. When I click this button,
Windows complained about some error code 2813. It doesn't recognize this
event.

Thanks in advance for you help.

Best regards,
He Shiming
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to