Re: [WiX-users] How do you have a component work only on an install?

2007-05-02 Thread Scott Sam
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];
wix-users@lists.sourceforge.net
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]; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How do you have a component work only on an
install?

Thanks.
I had to change it to this:
NOT (amp;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; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] How do you have a component work only on an
install?

I have used a condition like this

(amp;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: wix-users@lists.sourceforge.net
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 /
ConditionNot 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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How do you have a component work only on an install?

2007-05-02 Thread Bob Arnson
Scott Sam wrote:
 Could this be forcing the reinstall of all components regardless of the
 condition?  And if so is there any way around this?
   

A reinstall is for all components that are currently installed. If you 
need to change the condition during a minor upgrade, check out 
transitive components in the MSI SDK.

-- 
sig://boB
http://joyofsetup.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


Re: [WiX-users] How do you have a component work only on an install?

2007-05-01 Thread Scott Sam
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]; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How do you have a component work only on an
install?

Thanks.
I had to change it to this:
NOT (amp;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; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] How do you have a component work only on an
install?

I have used a condition like this

(amp;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: wix-users@lists.sourceforge.net
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 /
ConditionNot 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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How do you have a component work only on an install?

2007-04-27 Thread Scott Sam
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 /
ConditionNot 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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How do you have a component work only on an install?

2007-04-27 Thread Chris.Rowland
I have used a condition like this

(amp;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: wix-users@lists.sourceforge.net
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 /
ConditionNot 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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users