It's sounds like you're trying to do something like:

<CustomAction Id="MyCustomAction>
        NOT Installed
</CustomAction>

But you can't put the conditional there.  You have to put the conditional in a 
<Custom> element in either the InstallExecuteSequence or the InstallUISequence 
(or both).

<InstallExecuteSequence>
<Custom Action="MyCustom Action" After="CostFinalize">
        NOT Installed
</Custom>
</InstallExecute Sequence>


--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 



-----Original Message-----
From: sttaq [mailto:tt...@hotmail.com] 
Sent: Monday, February 13, 2012 9:29 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How To Run Custom Action During Install But Not During 
Uninstall

I was trying to follow the step mentioned in this thread but on compiling I get 
the following exception:

C:\...\xyz.wxs(204) : error CNDL0024 : The CustomAction element contains 
illegal inner text: 'NOT Installed'.  It may not contain inner text unless the 
Script attribute is specified. make: *** [C:/.../Release/xyz i.wixobj] Error 24

The custom action that i have here is a managed c# dll and without any inner 
text it is working perfectly fine. The only problem is that it is being called 
both at install and uninstall time whereas I would like it to be called only 
during the install time. I might be missing something here but I am not sure 
where I went wrong and would appreciate any help. Thanks

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-To-Run-Custom-Action-During-Install-But-Not-During-Uninstall-tp6395892p7280693.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to