Old build of WiX 3? Those were added last half of last year (over a year
after the CloseApplication element itself was added).

Try using the latest weekly build. The v3 build on the "download" link is
almost a year old.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Colin Bleckner
Sent: Monday, May 05, 2008 3:28 PM
To: Bob Arnson
Cc: Rob Mensching; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Only start install if specific application isn't
running?

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/javao
ne
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
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

Reply via email to