From: Eric St.J. <eri...@ho...> - 2009-05-11 19:01:10
|
Try the following, it uses the shell exec custom action to open the browser: <CustomAction Id="LaunchUrl" BinaryKey="WixCA" DllEntry="WixShellExec" Execute="immediate" Return="check" Impersonate="yes" /> <Control Id="PrivacyButton" Type="PushButton" X="55" Y="199" Width="145" Height="28" Text="!Privacy Statement" ToolTip="www.privacy.com"> <Publish Property="WixShellExecTarget" Value="www.privacy.com" Order="1">1</Publish> <Publish Event="DoAction" Value="LaunchUrl" Order="2">1</Publish> </Control> > Date: Mon, 11 May 2009 22:04:49 +0800 > From: hes...@gm... > To: wix...@li... > Subject: Re: [WiX-users] Create a button and use it to launch a URL? > > > You need a custom action to set the WixShellExecTarget property. That > > means you also need one to set the target of your app launcher. > > > > What's DoURL? Check out how the WixUI dialogs use that custom action: > > src/ext/UIExtension/wixlib. > > > > Thanks. I checked some tutorials and come up with this: > > Under <Control>, I have <Publish Event="DoAction" Value="LaunchURL" >1</Publish> > In the project, I have: <Property Id="BROWSER"> > <RegistrySearch Id='DefaultBrowser' Type='raw' > Root='HKCR' Key='http\shell\open\command' /> > </Property> > <CustomAction Id="LaunchURL" Property='BROWSER' > ExeCommand='www.something.com' Return='asyncNoWait'/> > > No error is displayed but the browser doesn't appear either. The log says: > MSI (c) (38:04) [22:01:36:922]: Doing action: LaunchURL > Action 22:01:36: LaunchURL. > Action start 22:01:36: LaunchURL. > > And no further information. Any ideas? Thanks for the 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...@li... > https://lists.sourceforge.net/lists/listinfo/wix-users _________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009 |