Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-27 Thread TimM
Okay I do have this working now, but have one more question on this...

If the element keys exists and you only have to change the values then we
can simply use the XmlFile action="setvalue" method.

If the element keys do not exist then I had to use the XmlFile
action="createElement" and a few "setValue entries to get it to work.

So my question is if there is a way to determine if the element key exists
or not so that if it needs creating then the correct method is used? Or is
there a method that can be used in both cases where if it does exist then it
will simply modify the value, but if it does not exist it will create it and
set the correct value?

Thanks.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594922.html
Sent from the wix-users mailing list archive at Nabble.com.

--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-15 Thread James Buchan
Hi Tim,

Please see (much further) below an implementation I use.
It will turn this:







Into:








And on uninstall will remove the bits it has created.
Most of the time I do MajorUpgrades, so I control the content in the original 
config file, which means I can get away with a simple XMLFile command to set 
the value.
I only use XMLConfig when I'm poking around in files that aren't actually mine 
as I need to be able to back out my changes on uninstall and XMLFile isn't too 
good at this.
Anyway, on to the code (names have been changed to protect identities):

  

  


  
  


  
  


   
  
  
  
  

  

  

Before you implement this, please understand what it does and (most 
importantly) what you are trying to achieve.

James 



--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-15 Thread Carter Young
It works for all of them... Read this again...

http://blogs.technet.com/b/alexshev/archive/2009/05/27/from-msi-to-wix-part-25-installable-items-updating-xml-files-using-xmlfile.aspx

Carter

Quoting TimM :

> Okay still having an issue with util:XmlConfig. If I use the following:
>  Guid="{68FCE723-347D-4FD9-A3DF-3BB5A961F0E0}">
>   
>   
> ElementPath="/configuration/appSettings/add[\[]@key='ServiceLocation'[\]]/@value"
>   File="[#sample.config]" 
> Value="[LYNC_SERVER_ADDRESS]"/>
>ElementPath="//configuration/appSettings"
> File="[#sample.config]" Name="ClientMode"
> Node="value" On="install"
> PreserveModifiedDate="yes" Sequence="100"
> Value="[CLIENT_MODE]" />
> 
>
> Then the install will work and no errors, the .config file will look like
> the following:
>
> 
>   
>  value="net.tcp://example.com:54321/RemoteInk"/>
>   
> 
>
> As you can see the ClientMode is in the wrong location, it should look like
> this:
> 
>   
>  value="net.tcp://example.com:54321/RemoteInk"/>
> 
>   
> 
>
> So if I change the util:XmlConfig line to the following then I get the
> 'Failed to find node:' error:
>  ElementPath="//configuration/appSettings/add[\[]@key='ClientMode'[\]]/@value"
> File="[#sample.config]" Name="ClientMode" Node="value" On="install"
> PreserveModifiedDate="yes" Sequence="100" Value="[CLIENT_MODE]" />
>
> Now the util:XmlFile element does work, but only for element keys that
> already exist and you only need to change the value on, but if the element
> key does not exist then XmlFile does not work. So we have to use the
> XmlConfig element and therefore I need to get this working...
>
> So if anyone can tell me what is wrong with my XmlConfig element line I
> would appreciate it.
>
>
>
>
>
>
>
>
> --
> View this message in context:  
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594754.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform  
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>




--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-15 Thread TimM
Okay still having an issue with util:XmlConfig. If I use the following:






Then the install will work and no errors, the .config file will look like
the following:


  

  


As you can see the ClientMode is in the wrong location, it should look like
this:

  


  


So if I change the util:XmlConfig line to the following then I get the
'Failed to find node:' error:


Now the util:XmlFile element does work, but only for element keys that
already exist and you only need to change the value on, but if the element
key does not exist then XmlFile does not work. So we have to use the
XmlConfig element and therefore I need to get this working...

So if anyone can tell me what is wrong with my XmlConfig element line I
would appreciate it.








--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594754.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-14 Thread TimM
Okay do you have a small example of using XmlConfig to create and set the
value of a key, as I was also trying XmlConfig and I did not get any errors,
but it did not do anything to the .config file?

Thanks.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594730.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread John Cooper
Yes.  XmlFile is create for setting things that already exist.  If you need 
more than that, I tend to choose XmlConfig.

Note that I usually write the XPath to the element, and then write to the 
attribute as specified in "Name."
--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com



-Original Message-
From: TimM [mailto:timmay...@smarttech.com] 
Sent: Tuesday, May 13, 2014 5:00 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

Well I created the Sample and it worked correctly, using exactly what was shown.

So then I simply substituted my app.config file with the sample.config file and 
built and ran the test again and it failed? 

So I figured that it was my .config file that was the issue, but then I simply 
added the following entry to the .config file:


Ran the test again and this time it worked... So that implies that if the key 
that is to be updated does not exist then it will fail???

So if a key entry is not there then it has to be created and a value set to it, 
but according to that last link it shows that it will create and set the value. 
So why did it not work for me?  I guess more work is required, what a pain as I 
have been looking at this for most of the day.




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594720.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE 
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available 
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
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.


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
Well I created the Sample and it worked correctly, using exactly what was
shown.

So then I simply substituted my app.config file with the sample.config file
and built and ran the test again and it failed? 

So I figured that it was my .config file that was the issue, but then I
simply added the following entry to the .config file:


Ran the test again and this time it worked... So that implies that if the
key that is to be updated does not exist then it will fail???

So if a key entry is not there then it has to be created and a value set to
it, but according to that last link it shows that it will create and set the
value. So why did it not work for me?  I guess more work is required, what a
pain as I have been looking at this for most of the day.




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594720.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread Carter Young
I had this buried in my bookmarks for just such an occassion :)   
Honestly, I need it for situations like yours.  Look for the items  
related to Create

http://blogs.technet.com/b/alexshev/archive/2009/05/27/from-msi-to-wix-part-25-installable-items-updating-xml-files-using-xmlfile.aspx

Carter

Quoting TimM :

> Okay I must be missing something as as I mentioned above this one did write
> to the file, just did not write it correctly:
>
>  ElementPath="/configuration/appSettings" Name="ServiceInfo"
> Value="[LYNC_SERVER_ADDRESS]" File="[INSTALLDIR]RemoteInk.exe.config" />
>
>
> When I update this to:
>  ElementPath="/configuration/appSettings/add[\[]@key='ServiceInfo'[\]]"
> Name="ServiceInfo" Value="[LYNC_SERVER_ADDRESS]"
> File="[#RemoteInk.exe.config]" />
>
> Basically the same thing except for the add[\[]@key='ServiceInfo'[\]]" and
> then run it I get the 'Failed to find Node:' error. So why would adding this
> give me an error unless I am missing something that can correctly read that
> line...
>
> So I only have the following at the top of my Product.wxs file:
> http://schemas.microsoft.com/wix/2006/wi";
> xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
>
> Did I have to include anything else to get this to work?
>
> Also in your example the  entry already
> existed, so does that make a difference if the entry that I am trying to
> create exists or not?
>
> I'll see if I can get that example to work on my machine to verify if it
> works or not.
>
>
>
>
> --
> View this message in context:  
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594712.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform  
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>




--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
Okay I must be missing something as as I mentioned above this one did write
to the file, just did not write it correctly:




When I update this to:


Basically the same thing except for the add[\[]@key='ServiceInfo'[\]]" and
then run it I get the 'Failed to find Node:' error. So why would adding this
give me an error unless I am missing something that can correctly read that
line...

So I only have the following at the top of my Product.wxs file:
http://schemas.microsoft.com/wix/2006/wi";
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>

Did I have to include anything else to get this to work?

Also in your example the  entry already
existed, so does that make a difference if the entry that I am trying to
create exists or not?

I'll see if I can get that example to work on my machine to verify if it
works or not.




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594712.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread Carter Young
 From the Example I gave Earlier:



Which outputs:
--sample.config--


   
 
   


As John alluded to, keeping track of strings is easier if you give the  
file sample.config an ID and refer to the Id.


> -Original Message-
> From: TimM [mailto:timmay...@smarttech.com]
> Sent: Tuesday, May 13, 2014 3:47 PM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Which is best to use in my case: XmlFile or  
> XmlConfig?
>
> Thanks John, I made that change and the build worked but when I ran  
> the install to test it I get the following error:
>
> Failed to find node:
> //configuration/appSettings/add[@key='ServiceInfo']/@value in XML file:
> C:\Program Files (x86)\CompanyName\Product\Product.exe.config, system error:
> -2147020584
>
> My updated element looks like this:
>  ElementPath="//configuration/appSettings/add[\[]@key='ServiceInfo'[\]]/@value"
> Value="[LYNC_SERVER_ADDRESS]" File="[INSTALLDIR]RemoteInk.exe.config"
> Sequence="5" />
>
> So what is this error and what else do I need to do to get this to work?
> Thanks...
>
>
>
>
>
>
> --
> View this message in context:  
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594707.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For  
> FREE Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform  
> available Simple to use. Nothing to install. Get started now for  
> free."
> http://p.sf.net/sfu/SauceLabs
> ___
> 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.
>
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform  
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>




--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
I added the Name="value" entry, but I still get the same error???



So I am still at a loss as to what I am missing or doing wrong to get this
to work

So in the error message when it states: 'Failed to find node:
//configuration/appSettings/add[@key='ServiceInfo'] in XML file"

What is it stating?
configuration and appSetting elements exist. And only need to create the
ServiceInfo entry and value




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594710.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread John Cooper
You need to add a Name="value" attribute.  Otherwise, your code is trying to 
write to the inner text.

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



-Original Message-
From: TimM [mailto:timmay...@smarttech.com] 
Sent: Tuesday, May 13, 2014 3:47 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

Thanks John, I made that change and the build worked but when I ran the install 
to test it I get the following error:

Failed to find node:
//configuration/appSettings/add[@key='ServiceInfo']/@value in XML file:
C:\Program Files (x86)\CompanyName\Product\Product.exe.config, system error:
-2147020584

My updated element looks like this:


So what is this error and what else do I need to do to get this to work?
Thanks...






--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594707.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE 
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available 
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
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.


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
Thanks John, I made that change and the build worked but when I ran the
install to test it I get the following error:

Failed to find node:
//configuration/appSettings/add[@key='ServiceInfo']/@value in XML file:
C:\Program Files (x86)\CompanyName\Product\Product.exe.config, system error:
-2147020584

My updated element looks like this:


So what is this error and what else do I need to do to get this to work?
Thanks...






--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594707.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread John Cooper
In general, path properties in WiX and in MSI installers in general already 
have a trailing '\'.  However, I hate the [INSTALLDIR]Remotelnk.exe.config 
idiom.  If you're installing this file (and almost certainly you are), give it 
a File@Id element.  Then you can reference it's absolute path directly.  For 
example, if the File@Id was FileRemotelnkConfig, you could get the path using 
[#FileRemotelnkConfig].

Finally, order doesn't matter in XML (in general).
--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com



-Original Message-
From: Carter Young [mailto:ecyo...@grandecom.net] 
Sent: Tuesday, May 13, 2014 3:43 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

I believe the File comes before the Value... Also I think the File Location 
needs a backslash.

Quoting TimM :

> Thanks eyoung, I made the recommended changes:
>
>  ElementPath="/configuration/appSettings/add[@key='ServiceInfo']/@value"
> Value="[LYNC_SERVER_ADDRESS]" File="[INSTALLDIR]RemoteInk.exe.config"
> Sequence="5" />
>
> But when I build the install I get the following error:
>
> C:\Work\Projects\Lync2013SP\RemoteInk.Lync2013SP\Src\Client\Installs\Client\Product.wxs(85,0):
> error LGHT0204: ICE03: Invalid format string; Table: XmlFile, Column:
> ElementPath, Key(s): SetServiceInfo
>
> So where did I go wrong?
>
>
>
> --
> View this message in context:  
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is
> -best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594704.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> --
>  "Accelerate Dev Cycles with Automated Cross-Browser Testing - 
> For FREE Instantly run your Selenium tests across 300+ browser/OS 
> combos.
> Get unparalleled scalability from the best Selenium testing platform 
> available Simple to use. Nothing to install. Get started now for 
> free."
> http://p.sf.net/sfu/SauceLabs
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>




--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE 
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available 
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
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.


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread John Cooper
You need to escape the [] in the ElementPath as these have special meaning to 
the installer.

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



-Original Message-
From: TimM [mailto:timmay...@smarttech.com] 
Sent: Tuesday, May 13, 2014 3:35 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

Thanks eyoung, I made the recommended changes:



But when I build the install I get the following error:

C:\Work\Projects\Lync2013SP\RemoteInk.Lync2013SP\Src\Client\Installs\Client\Product.wxs(85,0):
error LGHT0204: ICE03: Invalid format string; Table: XmlFile, Column:
ElementPath, Key(s): SetServiceInfo

So where did I go wrong?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594704.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE 
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available 
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
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.


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread Carter Young
I believe the File comes before the Value... Also I think the File  
Location needs a backslash.

Quoting TimM :

> Thanks eyoung, I made the recommended changes:
>
>  ElementPath="/configuration/appSettings/add[@key='ServiceInfo']/@value"
> Value="[LYNC_SERVER_ADDRESS]" File="[INSTALLDIR]RemoteInk.exe.config"
> Sequence="5" />
>
> But when I build the install I get the following error:
>
> C:\Work\Projects\Lync2013SP\RemoteInk.Lync2013SP\Src\Client\Installs\Client\Product.wxs(85,0):
> error LGHT0204: ICE03: Invalid format string; Table: XmlFile, Column:
> ElementPath, Key(s): SetServiceInfo
>
> So where did I go wrong?
>
>
>
> --
> View this message in context:  
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594704.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform  
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>




--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
Thanks eyoung, I made the recommended changes:



But when I build the install I get the following error:

C:\Work\Projects\Lync2013SP\RemoteInk.Lync2013SP\Src\Client\Installs\Client\Product.wxs(85,0):
error LGHT0204: ICE03: Invalid format string; Table: XmlFile, Column:
ElementPath, Key(s): SetServiceInfo

So where did I go wrong?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594704.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread Carter Young
Try this:
   

as outlined here:

http://weblogs.asp.net/lorenh/archive/2005/10/13/427398.aspx

Quoting TimM :

> Okay I tried the following:
>  ElementPath="/configuration/appSettings/"
> Name="ServiceInfo" Value="[LYNC_SERVER_ADDRESS]"
> File="[INSTALLDIR]RemoteInk.exe.config" On="install"
> Sequence="9" />
>
> This one did nothing at all, no errors, but did not update file. So I tried
> the following:
>  ElementPath="/configuration/appSettings"
> Name="ServiceInfo" Value="[LYNC_SERVER_ADDRESS]"
>   File="[INSTALLDIR]RemoteInk.exe.config" />
>
> And this one did create the entry, but not how I was expecting it to be
> created. Above is what I wanted/needed, but what was created with this line
> is as follows:
> 
>   ...
>   
> 
>
> So first it placed it on the same line as the start of the appSettings
> element and 2nd it is not in the format that I wanted, which should have
> been:
> 
>
> So again has anyone created new entries in an application .config file and
> if so then could you let me know what I am doing wrong or missing
> altogether?
>
>
>
>
>
>
>
>
> --
> View this message in context:  
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594699.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform  
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>




--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
Okay I am re-looking at the XmlConfig method as described in the following
link:
http://sourceforge.net/p/wix/mailman/message/20326106/

And when I use the example that is in that link I get the following failure
in the install:

Failed to find node:
//configuration/appSettings/add[@key='ServiceInfo'] in XML file: C:\Program
Files (x86)\CompanyName\Product\Product.exe.config, system error:
-2147020584

So I have some configuration wrong to get this error, but what is it??? Has
anyone used the Util:XmlConfig element to update/add data to an app.config
file?

Again any help would be appreciated...



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594701.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
Okay I tried the following:


This one did nothing at all, no errors, but did not update file. So I tried
the following:


And this one did create the entry, but not how I was expecting it to be
created. Above is what I wanted/needed, but what was created with this line
is as follows:

  ... 
  


So first it placed it on the same line as the start of the appSettings
element and 2nd it is not in the format that I wanted, which should have
been:


So again has anyone created new entries in an application .config file and
if so then could you let me know what I am doing wrong or missing
altogether?








--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594699.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Which is best to use in my case: XmlFile or XmlConfig?

2014-05-13 Thread TimM
Okay newbie question here concerning the updating of a .config file during
install, using WiX 3.7.

I was given the task to update a new .config file during our install and I
found the documentation for XmlConfig Element (Util Extension):
http://wixtoolset.org/documentation/manual/v3/xsd/util/xmlconfig.html

And XmlFile Element (Util Extension):
http://wixtoolset.org/documentation/manual/v3/xsd/util/xmlfile.html

Now I have never used these before and have not updated a .xml file during
install so I was trying to find examples for these. There are a few examples
out there, but the one problem I am running into is the ElementPath entry. I
have not found out how it is set, meaning what values are expected and where
do you get or know what the values are suppose to be...

So how do I find out what I am supposed to enter in for ElementPath and
should I be using Xmlfile or Xmlconfig?

The information I was given to update the .config file was only:
Add 2 keys to the .config file:
1. ServiceInfo with value of [LYNC_SERVER_ADDRESS]
2. ClientMode with value of [CLIENT_MODE] - can be one of 3 values - Room,
Personal, or Thin

I was also given an example of the  pairs in the application
.config file:

  ...
  
...


   

  


So can anyone help me in how this is configured in my WiX project and how I
determine what the ElementPath should be or how I can get the information to
know how it should be set?

Thanks for any and all help that can be provided.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691.html
Sent from the wix-users mailing list archive at Nabble.com.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users