Well I've finally upgraded to WiX 3 so I can try this out. However, it doesn't seem to like the "Property" or "RebootPrompt" attributes ("The util:CloseApplication element contains an unexpected attribute 'Property'."). Not sure what to do to get around that. Any ideas?
Colin Bob Arnson wrote: > Rob Mensching wrote: >> CloseApps CustomAction gives you just about everything you need. >> You'll need to tweak it a bit to get a Property set. >> > > Only if you consider the use of the Property attribute to be > "tweaking."<g> The CloseApplication element already lets you specify a > property to be set if the app is running. Then use Condition to create > a launch condition: > > <!-- Cancel if app is running --> > <util:CloseApplication Id="RunningApp" Target="app.exe" > Property="RUNNINGAPP" RebootPrompt="no" /> > <Condition Message="!(loc.AppRunning)"> > NOT RUNNINGAPP > </Condition> > <InstallUISequence> > <Custom Action="WixCloseApplications" Before="LaunchConditions" /> > </InstallUISequence> > <InstallExecuteSequence> > <Custom Action="WixCloseApplications" Before="LaunchConditions" /> > </InstallExecuteSequence> > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users