Thanks for the attempt, but that's not it. I tried changing the condition to test against an integer and it does the same thing. The log does show that the property values are being treated as integer, but a similar condition in the UI section does a character test that works just fine.
Lewis -----Original Message----- From: Julie Campbell [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 15, 2007 2:41 PM To: wix-users@lists.sourceforge.net Cc: Lewis Henderson Subject: Re: [WiX-users] Help with feature condition... Are you really setting that property to the text value of "0" or "1", or are you setting it to an integer? You might want to try: AuthBASE = 0 Julie Campbell [EMAIL PROTECTED] -----Original Message----- Message: 2 Date: Tue, 15 May 2007 14:08:50 -0400 From: "Lewis Henderson" <[EMAIL PROTECTED]> Subject: [WiX-users] Help with feature condition... To: <wix-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hi All, I'm working on an install that uses a Custom Action to validate an authorization key. Depending on the value of the key, I want to disable the features that aren't authorized. I know you can disable a feature by setting it's level to '0' via a conditional, so my CA sets a property, Auth[feature name] to '0' or '1' depending on whether or not it's authorized. For example, the BASE feature checks the AuthBASE property. My feature definition looks like this: <Feature Id='BASE' Title='This is the BASE feature' Level=1 AllowAdvertise='no'> < ... component references ... > <Condition Level="0">AuthBASE = "0"</Condition> </Feature> The problem is that this doesn't work. I can change the condition to ...>NOT AuthBASE = "0"</... and the feature goes away, but that just seems to say AuthBASE isn't known. I've checked the log and the Auth... properties are set before the FeatureTree dialog shows up, and they're set correctly. What am I doing wrong here? Thanks for any advice. Lewis -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Tue, 15 May 2007 11:20:13 -0700 From: "Wilson, Phil" <[EMAIL PROTECTED]> Subject: Re: [WiX-users] CustomAction = .VC Runtime Dependency? To: <WiX-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" What tool version are you using to build your Dll? Msvcrt.dll goes back to VS 6.0. And what's dutil.lib/dll? Nothing in the SDK about it. And which version of the Platform SDK/Windows SDK are you using? Phil Wilson ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, May 15, 2007 10:42 AM To: WiX-users@lists.sourceforge.net Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [WiX-users] CustomAction = .VC Runtime Dependency? I'd appreciate any advice that could point me in the direction of solving this problem. With my project settings as they are, if I build the dll and the installer, the installer will fail with the usual premature termination error, because my dll failed to load. I started working from a template I found online, so I may have been following bad practices. I'm compiling with /MT and have the following lines in my source #pragma comment(lib,"msi.lib") #pragma comment(lib,"shlwapi.lib") #pragma comment(lib,"libcmt.lib") #pragma comment(lib,"dutil.lib") #pragma comment(lib,"advapi32.lib") #pragma comment(lib,"wcautil.lib") If I add this line #pragma comment(lib,"msvcrt.lib") Before the libcmt line, I get the warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs That makes sense to me, because from what I understand, msvcrt is the dynamic multi-threaded library, and libcmt is the static one. The dll that results from having that line added is much smaller, which makes me believe its now dynamically linking dispite the /MT flag. The part I'm having trouble understanding is that with msvcrt.lib, the installer works (on systems where the runtime is installed), but without it, the installer dies un able to run the dll code. I'm assuming its either an issue with the project properties and/or my use of those #pragma directives, but I'm not sure how to proceed. Any ideas? (Obvious ones included :-) ) ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, May 15, 2007 11:34 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; WiX-users@lists.sourceforge.net Subject: Re: [WiX-users] CustomAction = .VC Runtime Dependency? So now's the time to add logging or even a MessageBox call to verify that the function is now being loaded and executed. Based on everything I've learned to this point, all signs point to something wrong in how I built the dll. I have logging throughout the dll already, and the project settings are all that changed (it was semi-working before.) In the past these "executing action failed" errors have meant a missing dependency. My tendency here is to suspect I have mismatched libraries or something along those lines, though I've got nothing to base that on. -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users End of WiX-users Digest, Vol 12, Issue 112 ****************************************** ________________________________________________________________________ ____ _ Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com ________________________________________________________________________ ____ _ ________________________________________________________________________ _____ Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com ________________________________________________________________________ _____ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users