I think I might know what the problem is. It is not working when we do an upgrade. And we do upgrades currently by forcing the minor upgrade. We use this command to do it: msiexec /i ClientInstall.msi REINSTALL=ALL REINSTALLMODE=vomus
Could this be forcing the reinstall of all components regardless of the condition? And if so is there any way around this? -----Original Message----- From: Scott Sam Sent: Tuesday, May 01, 2007 3:57 PM To: Scott Sam; [EMAIL PROTECTED]; [email protected] Subject: RE: [WiX-users] How do you have a component work only on an install? Upon further testing, that didn't work. I guess I don't really understand how these things work. I've read the tutorial, and have done a bunch of testing on my own, but I just don't get it. So I tried using: <Condition><![CDATA[(&WinClient == 3)]]></Condition> And I've tried using: <Condition><![CDATA[NOT (&WinClient == 3)]]></Condition> Somehow I get the same result (the component runs in both cases). How is that possible? Now when I use: <Condition><![CDATA[(!WinClient == 3)]]></Condition> And <Condition><![CDATA[NOT (!WinClient == 3)]]></Condition> In one situation the component is installed, and the other it is not. This makes no sense to me. Can anyone explain to me how this works? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sam Sent: Friday, April 27, 2007 4:57 PM To: [EMAIL PROTECTED]; [email protected] Subject: Re: [WiX-users] How do you have a component work only on an install? Thanks. I had to change it to this: NOT (&WinClient = 3) AND (!WinClient = 3) To get it to not run during the upgrade, but it worked. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 4:14 PM To: Scott Sam; [email protected] Subject: RE: [WiX-users] How do you have a component work only on an install? I have used a condition like this (&Complete = 3) AND NOT (!Complete = 3) Where "Complete" was the id of my main feature. Check out http://www.tramontana.co.hu/wix/lesson5.php It seems to work for me. Maybe someone with more experience has a better suggestion though. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sam Sent: Friday, April 27, 2007 4:02 PM To: [email protected] Subject: [WiX-users] How do you have a component work only on an install? I have a component that updates an XML file using the XmlFile element. I only want this to be ran on a clean install, and not on an upgrade. I'm using wix v3. Here is what my component looks like: <DirectoryRef Id="INSTALLDIR"> <Component Id="UpdateDataCollectionCfg" Guid="383D9716-7731-4357-B2A8-8DDB2AE86E09"> <CreateFolder /> <util:XmlFile Id="DCUpdate1" ElementPath="/configuration/DataCollection/Vals/add" Name="Value" File="[INSTALLDIR]DataCollectionService.exe.config" Action="setValue" Value="data source=[DBSERVERNAME];initial catalog=xwDataCollector;trusted_connection=true;" /> <util:XmlFile Id="DCUpdate2" ElementPath="/configuration/connectionStrings/add" File="[INSTALLDIR]DataCollectionService.exe.config" Action="setValue" Value="data source=[DBSERVERNAME];initial catalog=xwEDB;trusted_connection=true;" Name="connectionString" /> <Condition>Not Installed</Condition> </Component> </DirectoryRef> I thought that the condition element would achieve the desired results, but that is not the case. Anyone have any ideas on this? ------------------------------------------------------------------------ - 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ - 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

