Yes it works. I’ve used Custom Action type 34 like this:

 

<CustomAction Id="LaunchBrowser" ExeCommand='"[ProgramFilesFolder]Internet Explorer\iexplore.exe""http://www.live.com"' Directory='INSTALLDIR' Return="asyncNoWait" />

 

But it means that I can not use default browser?

 

Thanks

Leila

 

 


From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 10:31 PM
To: Leila Lali (Excell Data Corporation); WiX-users
Subject: Re: [WiX-users] hyper link in wix

 

Please keep wix-users on the thread.

Leila Lali (Excell Data Corporation) wrote:

Here is my code:

 

<Property Id="BROWSER">

  <RegistrySearch Id='DefaultBrowser' Type='raw'

  Root='HKCR' Key='http\shell\open\command' />

</Property>

 

<CustomAction Id='LaunchBrowser' Property='BROWSER' ExeCommand='www.live.com' Return='asyncNoWait' />

 

<Control Id="HyperLink" Type="PushButton" X="50" Y="20" Width="150" Height="50" Cancel="yes" Text="{\HyperLinkStyle}$(loc.MsgDotNetFrameworkDependency)">

            <Text></Text>

            <Publish Event="DoAction" Value="LaunchBrowser"></Publish>

</Control>

 

But it doesn’t do anything. It can find default browser but nothing happened.

I didn’t find anything like error in log file.

What value does BROWSER have? If IE is the default browser, it usually contains extra command-line parameters that won't work with a type 50 custom action. You might want to try CustomAction/@Directory,@ExeCommand -- that lets you pass the whole command line. But I'm not sure if it'll work either -- the HKCR value generally contains placed arguments.


--      
sig://boB
http://bobs.org




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to