The problem is that the value in the registry isn't just the browser path, but has other argument information as well. For example, mine is C:\PROGRA~1\MOZILL~1\FIREFOX.EXE -url "%1" so on my machine your custom action would try to run C:\PROGRA~1\MOZILL~1\FIREFOX.EXE -url "%1" www.live.com
If you want to use the default browser, then I'd suggest looking at the Quiet Execution CustomAction, as I believe this can run shell commands. It's in the WiX chm under WiX Help -> Authoring -> WiX Standard CustomAction -> Quiet Execution CustomAction. You could use this and maybe just get it to run www.live.com as a command, which would launch the browser. If that fails, then the path to Internet Explorer without any additional argument information can be found here: Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE" Rob Leila Lali (Excell Data Corporation) wrote: > Hi, > > > > I was trying to launch a browser and I’ve used these codes: > > > > <**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' /> > > > > <**InstallExecuteSequence**> > > <**Custom** Action='LaunchBrowser' After='InstallFinalize'>NOT > Installed</**Custom**> > > </**InstallExecuteSequence**> > > > > > > But it doesn’t do anything. It can find default browser but nothing > happened. > > I didn’t find anything like error in log file. Can anyone give me a hint > to figure out what is wrong? > > > > Thanks > > Leila Lali > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 ------------------------------------------------------------------------- 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