WiX 3.0 does have 2-3 lines of code to implement this. WiX 2.0 doesn't. In WiX 3.0 I would do it thus:
<UI> <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 AND (Installed AND NOT REINSTALL)</Publish> </UI> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch My Uninstall Web Page" /> <Property Id="WixShellExecTarget" Value="http://www.iesve.com/" /> <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> Which would add a checkbox on the ExitDialog when Uninstalling allowing the user to choose whether to see your web page or not. If you wanted to be more draconian you could force the website to show up always on Uninstall & remove the code to show the checkbox by removing the first Property tag & modifying the inner text of the Publish tag accordingly. This is all thanks to the ShellExecute CustomAction which is part of the WiXUtilExtension.dll in WiX 3.0. In WiX 2.0 you would need to write your own CustomAction to do this. Or alternatively use one someone else has written for you -> http://blogs.msdn.com/noahc/archive/2007/05/09/shellexec-a-tiny-tool.asp x You could add that application in a Binary tag so that it's embedded inside your MSI & call it in a Type 17 CustomAction on the Finish button using a Publish tag as above. I'm not very familiar with the WiX 2.0 stock UI's anymore but I think you'd have to do some modification of the ExitDialog if you want to add a CheckBox to conditionally show your webpage (as before, being draconian & always forcing it is your choice). WiX 3.0 is by far more "complete" than WiX 2.0. I'm honestly amazed that I struggled by using v2.0 for so long. I only upgraded to v3.0 in May this year & have shipped 6 releases already after using v2.0 since March 2007 having shipped 12 releases, 8 of them with upgrade patches as well as full installers in that time. I honestly would never recommend using v2.0 when v3.0 is available. Palbinder Sandher Software Deployment and IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ewart MacLucas Sent: 30 August 2008 00:13 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] launch webpage on uninstall Thanks Brian I did miss that however I was looking for someone with a sample or a tutorial rather than downloading the source code to wix and pawing through it. I imagined Wix 2.0 would have 2-3 lines of script to implement this, but reading between the lines it sounds like your saying to your knowledge wix 2.0 doesn't support the scripted launching of a url without significantly more work? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Rogers Sent: Saturday, 30 August 2008 5:32 a.m. To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] launch webpage on uninstall Hey Ewart, I think you are missing what I am saying. This is already in WIX 3.0. Since it is open source you could download the code and see how they launch a URL. Then you just need to attach the correct conditions to the custom action sequence. You would also need to pull the DLL from the WIX 3.0 binaries that has the correct custom action and use that. Thanks, Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Thu, Aug 28, 2008 at 4:37 PM, Ewart MacLucas <[EMAIL PROTECTED]> wrote: > Thanks Brian. I've look at the ShellExecute link but not sure how I > can apply that to my wix 2.0 project. Surely there must be a simple > wix command to launch a url on uninstall, and I wondered if anyone has > example code for > that? > > cheers > ewart > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Brian > Rogers > Sent: Thursday, 28 August 2008 6:46 p.m. > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] launch webpage on uninstall > > Hey Ewart, > > You would want to have a custom action that uses as > ShellExecute<http://msdn.microsoft.com/en-us/library/bb762153(VS.85).a > spx > >co > mmand > to run the URL. This is part of the WIX 3.0 custom actions. > > If you want, you could pull the built DLL with that custom action into your > WIX 2.0 project. > > Thanks, > > -- > Brian Rogers > "Intelligence removes complexity." - Me http://icumove.spaces.live.com > > On Wed, Aug 27, 2008 at 8:03 PM, Ewart MacLucas <[EMAIL PROTECTED]> wrote: > > > I'm trying to launch webpage when the user uninstalls my app, have > > tried various things but no joy, does anyone have a sample or a > > tutorial on how > > to > > do this from wix 2.0? > > > > > > > > > > > > <!-- Launch the application --> > > > > <CustomAction Id="LaunchFile" FileKey="Phoenix.exe" > > ExeCommand="JustInstalled" Return="asyncNoWait"/> > > > > <CustomAction Id="LaunchWebpage" ExeCommand="www.google.com" > > Return="ignore" /> > > > > > > > > > > > > <!-- Launch the application immediately on close if not uninstalling > > --> > > > > <!-- Sequences --> > > > > <InstallExecuteSequence> > > > > <Custom Action="PreventDowngrading" > > After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> > > > > <Custom Action="LaunchFile" After="InstallFinalize">NOT > > REMOVE="ALL"</Custom> > > > > <Custom Action="LaunchWebpage" > > After="InstallFinalize">REMOVE="ALL"</Custom> > > > > <RemoveExistingProducts After="InstallFinalize" /> > > > > </InstallExecuteSequence> > > > > > > > > <InstallUISequence> > > > > <Custom Action="PreventDowngrading" > > After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> > > > > </InstallUISequence> > > > > > > > > regards > > > > ewart > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users