Re: [WiX-users] Custom Action to Read XML value

2015-03-06 Thread Davis, Jeff
This solution isn't quite what I was looking for.   It is close but it isn't 
setup to set a property from a XML file value.The 2nd answer points to MSI 
Extensions which is 2 years old and has a TON of other actions in the library.

What I am looking for is an extension or action that does this

Property Id=MY_PROPERTY Secure=yes Value=0
util:XmlSearch Id=MySearch File=MyXMLFile.XML 
XPath=substring-before(substring-after(/Root/node/node[\[]1[\]]/@Value,quot;.bpquot;),quot;.xmlquot;)/
/Property

Where Value = d26s30c198.bp41441001.xml

And MY_PROPERTY would equal  41441001





-Original Message-
From: Joel Budreau [mailto:joel.budr...@gmail.com] 
Sent: Friday, March 06, 2015 2:33 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Custom Action to Read XML value

http://stackoverflow.com/questions/23805767/wix-custom-actions-reading-parameters-from-an-xml-file
 ?

 On Mar 6, 2015, at 2:45 PM, Davis, Jeff jda...@nanometrics.com wrote:
 
 So does someone have the DLL or the code that does what is listed below that 
 is working?   I am trying to work on a complex Wix Installer and would just 
 like to have XML read capability in my .WXS  code so I can continue.  
 
 
 -Original Message-
 From: John Cooper [mailto:jocoo...@jackhenry.com]
 Sent: Friday, March 06, 2015 10:23 AM
 To: General discussion about the WiX toolset.
 Subject: Re: [WiX-users] Custom Action to Read XML value
 
 Yes.  It's not very complicated.  The specific steps in the innermost custom 
 action (there is another custom action that drives this one from a table) are:
 
 1) load path to XML file from property;
 2) load XPATH from property;
 3) create an XmlDocument instance
 4) use the TrySafeLoad method to see if I can load the XML file, exit 
 if I can't
 5) get an XmlNode using SelectSingleNode on the XPATH previously 
 loaded;
 6) if the XmlNode is null, store a default value;
 7) else process for attribute, element, or inner text and load the 
 property;
 8) exit
 
 The code following this flow has been used in production for over two years.
 
 --
 John Merryweather Cooper
 Senior Software Engineer | Integration Development Group | Continuing 
 Development Jack Henry  Associates, Inc.(r) | Lenexa, KS  66214 | Ext:  
 431050 |jocoo...@jackhenry.com
 
 
 
 -Original Message-
 From: Davis, Jeff [mailto:jda...@nanometrics.com]
 Sent: Friday, March 6, 2015 12:02 PM
 To: General discussion about the WiX toolset.
 Subject: [WiX-users] Custom Action to Read XML value
 
 It seems like the answer to every question about reading XML value using Wix 
 is to write a custom action.  I have found a couple of solutions that I have 
 tried with no success.   Does someone have a working XML Search custom action 
 that you pass a XML filename and a XPath value and it will populate a 
 Property value with its results.   I don't need to add an extension with lots 
 of other actions or an action that a lot more than what I need.  Although if 
 you're using something that works I'd take it.
 
 I need it to be able to evaluate complex XPath expressions with valid XST 
 functions like substring-before() so I can parse Values.
 
 Has someone got something that works for them that they don't mind 
 sharing so I don't have to write my own?  (which is not my strong 
 point)
 
 
 
 This solution is what I am looking for but I can't get it to work for me.
 
 http://www.codeproject.com/Articles/865604/Writing-a-Wix-Extension-to-
 Read-XML-Files
 
 When I try to build the project I get several errors.
 
 Error 1 The command copy 
 .\Wix.XmlSearch_src\XmlSearch.WixLib\bin\Debug\XmlSearch.wixlib 
 .\Wix.XmlSearch_src\Resources /y exited with code 1. Wix.XmlSearch
 
 If I add this to the Wix.Test.Setup Product.wxs
 
 xmlsearch:XmlSearch Id=Test1 File=$(var.ProjectDir)Test.xml 
 XPath=/Testdata/testnode/@Value/
 
 I get this error
 
 Error 1 The Property element contains an unhandled extension element 
 'xmlsearch:XmlSearch'. Please ensure that the extension for elements in the 
 'http://schemas.rottedfrog.co.uk/wix/XmlSearch' namespace has been provided.
 
 If I try to add the binary to a project I get this error
 
 A reference to C:\Program Files (x86)\WiX Toolset v3.9\bin\\Wix.WmlSearch.dll 
 could not be added. Please make sure tha tthe file is accessible, and that it 
 is a valid Wix reference.
 
 
 I have tried this one which works pretty well
 
 https://bitbucket.org/nirbar1/panelswwixextension
 
 But there is a bug in the XPath expression evaluation that won't allow 
 functions like substring-before()  etc to be used.
 
 
 
 --
  Dive into the World of Parallel Programming The Go Parallel 
 Website, sponsored by Intel and developed in partnership with Slashdot 
 Media, is your hub for all things parallel software development, from 
 weekly thought leadership blogs to news, videos, case studies, 
 tutorials and more. Take a look 

Re: [WiX-users] RegistrySearch on click

2015-03-06 Thread Joseph L. Casale
 I think you’d have to write your own VB script/DLL custom action to:
 1. Read the user’s input from a property
 2. Read the existing value from the registry - 
 http://stackoverflow.com/questions/34065/how-to-read-a-value-from-the-windows-registry
 3. Write a property (or don’t) if the user’s input matches what’s currently 
 in the registry
 4. Use the newly created property to condition whether or not to allow the 
 ‘Next’ button to proceed to the next dialog

Hi Joel,
It turned out to be rather simple to do this with a C# DLL.

Thanks for the pointer,
jlc
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] RegistrySearch on click

2015-03-06 Thread Joel Budreau
I think you’d have to write your own VB script/DLL custom action to:
1. Read the user’s input from a property
2. Read the existing value from the registry - 
http://stackoverflow.com/questions/34065/how-to-read-a-value-from-the-windows-registry
3. Write a property (or don’t) if the user’s input matches what’s currently in 
the registry
4. Use the newly created property to condition whether or not to allow the 
‘Next’ button to proceed to the next dialog
 
 On Mar 6, 2015, at 12:36 PM, Joseph L. Casale jcas...@activenetwerx.com 
 wrote:
 
 Trying that again...
 
 I have been searching around for a while without luck on the approach
 used to initiate a RegistrySearch using a value entered in a text field
 when the user presses next in a dialog.
 
 The best I could come up with was publishing a DoAction event in the
 next button control. However, I cant seem to find an indication that
 you can actually create a CustomAction that performs a registry search?
 
 Ultimately I need to return an error if the value is not found.
 
 Thanks,
 jlc
 --
 Dive into the World of Parallel Programming The Go Parallel Website, sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for all
 things parallel software development, from weekly thought leadership blogs to
 news, videos, case studies, tutorials and more. Take a look and join the 
 conversation now. http://goparallel.sourceforge.net/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action to Read XML value

2015-03-06 Thread Joel Budreau
http://stackoverflow.com/questions/23805767/wix-custom-actions-reading-parameters-from-an-xml-file
 ?

 On Mar 6, 2015, at 2:45 PM, Davis, Jeff jda...@nanometrics.com wrote:
 
 So does someone have the DLL or the code that does what is listed below that 
 is working?   I am trying to work on a complex Wix Installer and would just 
 like to have XML read capability in my .WXS  code so I can continue.  
 
 
 -Original Message-
 From: John Cooper [mailto:jocoo...@jackhenry.com] 
 Sent: Friday, March 06, 2015 10:23 AM
 To: General discussion about the WiX toolset.
 Subject: Re: [WiX-users] Custom Action to Read XML value
 
 Yes.  It's not very complicated.  The specific steps in the innermost custom 
 action (there is another custom action that drives this one from a table) are:
 
 1) load path to XML file from property;
 2) load XPATH from property;
 3) create an XmlDocument instance
 4) use the TrySafeLoad method to see if I can load the XML file, exit if I 
 can't
 5) get an XmlNode using SelectSingleNode on the XPATH previously loaded;
 6) if the XmlNode is null, store a default value;
 7) else process for attribute, element, or inner text and load the property;
 8) exit
 
 The code following this flow has been used in production for over two years.
 
 --
 John Merryweather Cooper
 Senior Software Engineer | Integration Development Group | Continuing 
 Development Jack Henry  Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
 |jocoo...@jackhenry.com
 
 
 
 -Original Message-
 From: Davis, Jeff [mailto:jda...@nanometrics.com]
 Sent: Friday, March 6, 2015 12:02 PM
 To: General discussion about the WiX toolset.
 Subject: [WiX-users] Custom Action to Read XML value
 
 It seems like the answer to every question about reading XML value using Wix 
 is to write a custom action.  I have found a couple of solutions that I have 
 tried with no success.   Does someone have a working XML Search custom action 
 that you pass a XML filename and a XPath value and it will populate a 
 Property value with its results.   I don't need to add an extension with lots 
 of other actions or an action that a lot more than what I need.  Although if 
 you're using something that works I'd take it.
 
 I need it to be able to evaluate complex XPath expressions with valid XST 
 functions like substring-before() so I can parse Values.
 
 Has someone got something that works for them that they don't mind sharing so 
 I don't have to write my own?  (which is not my strong point)
 
 
 
 This solution is what I am looking for but I can't get it to work for me.
 
 http://www.codeproject.com/Articles/865604/Writing-a-Wix-Extension-to-Read-XML-Files
 
 When I try to build the project I get several errors.
 
 Error 1 The command copy 
 .\Wix.XmlSearch_src\XmlSearch.WixLib\bin\Debug\XmlSearch.wixlib 
 .\Wix.XmlSearch_src\Resources /y exited with code 1. Wix.XmlSearch
 
 If I add this to the Wix.Test.Setup Product.wxs
 
 xmlsearch:XmlSearch Id=Test1 File=$(var.ProjectDir)Test.xml 
 XPath=/Testdata/testnode/@Value/
 
 I get this error
 
 Error 1 The Property element contains an unhandled extension element 
 'xmlsearch:XmlSearch'. Please ensure that the extension for elements in the 
 'http://schemas.rottedfrog.co.uk/wix/XmlSearch' namespace has been provided.
 
 If I try to add the binary to a project I get this error
 
 A reference to C:\Program Files (x86)\WiX Toolset v3.9\bin\\Wix.WmlSearch.dll 
 could not be added. Please make sure tha tthe file is accessible, and that it 
 is a valid Wix reference.
 
 
 I have tried this one which works pretty well
 
 https://bitbucket.org/nirbar1/panelswwixextension
 
 But there is a bug in the XPath expression evaluation that won't allow 
 functions like substring-before()  etc to be used.
 
 
 
 --
 Dive into the World of Parallel Programming The Go Parallel Website, 
 sponsored by Intel and developed in partnership with Slashdot Media, is your 
 hub for all things parallel software development, from weekly thought 
 leadership blogs to news, videos, case studies, tutorials and more. Take a 
 look and join the conversation now. http://goparallel.sourceforge.net/
 ___
 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.
 
 
 --
 Dive into the World of 

Re: [WiX-users] Installation doesn't progress at all

2015-03-06 Thread Phill Hogland
Also could you please explain how to debug burn with wix pdbs(are you
mentioning .pdb file) file ? or 

The question is not really a WiX question but a question of how to use the
chosen debugger.  I'm sure there are different approaches based on the
documentation of the debugger tool which you intend to use (VS IDE, VS
Remote Debugger, WinDbg, etc), and depending on which aspect of Burn that
you want to debug (Detect behavior, install behavior, reboot cycling, etc).

One approach when debugging on a development machine where VS2013 is
installed is (which I only do for UX scenarios and not for an Install
phase):
1) When using an installed WiX Toolset, download the related debug.zip
package and extract it to some location, so that you have the tree of WiX
PDBs and scr.
2) Open a VS solution which contains your mba project and the Bundle project
(and possibly other MSI projects). 
3) In VS Tools/Options/Debugging/Symbols add a path to each of the three WiX
PDB folders, where there are pdb files, in the extracted tree. (I also have
Microsoft Symbol Servers selected.  You could add your own symbol server.)  
4) In the Properties of your mba project, enable Debug, Trace, and deselect
Optimize.  In the Debug tab set the 'Start external program' to your
bundle.exe (project output location) AND 'Enable native code debugging' 
(You may also need to go to VS Tools/Options/Debugging and make sure that
various related options like 'Enable .NET Framework source stepping' is set
to your desired choice.)  And set your mba as the 'Start-Up' project in your
solution tree.
5) Make changes, set break points, and build your mba.
6) Build your Bundle.exe, and hit F5 (if the mba is the Start-up project) or
right-click to create a Debug Instance.





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Installation-doesn-t-progress-at-all-tp7599147p7599488.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] ServiceInstall/ServiceControl name attribute restrictions

2015-03-06 Thread John Cooper
You need to have code to remember the value of the property so it is available 
in uninstall and repair.  See 
http://robmensching.com/blog/posts/2010/5/2/the-wix-toolsets-remember-property-pattern/
 

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Continuing 
Development
Jack Henry  Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com



-Original Message-
From: Joseph L. Casale [mailto:jcas...@activenetwerx.com] 
Sent: Thursday, March 5, 2015 3:06 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] ServiceInstall/ServiceControl name attribute 
restrictions

Trying that again...

When I pass a variable reference such as [FOO]_[BAR] to the name attribute of 
both a ServiceInstall and ServiceControl element the package installs fine 
however when uninstalling the service is left running without being stopped and 
removed. When I pass a literal string, the package uninstalls fine.

The docs do not indicate any restrictions, does anyone know of any reason this 
may occur?

Thanks,
jlc
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] RegistrySearch on click

2015-03-06 Thread Joseph L. Casale
I have been searching around for a while without luck on the approach
used to initiate a RegistrySearch using a value entered in a text field
when the user presses next in a dialog.

The best I could come up with was publishing a DoAction
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action to Read XML value

2015-03-06 Thread John Cooper
Yes.  It's not very complicated.  The specific steps in the innermost custom 
action (there is another custom action that drives this one from a table) are:

1) load path to XML file from property;
2) load XPATH from property;
3) create an XmlDocument instance
4) use the TrySafeLoad method to see if I can load the XML file, exit if I can't
5) get an XmlNode using SelectSingleNode on the XPATH previously loaded;
6) if the XmlNode is null, store a default value;
7) else process for attribute, element, or inner text and load the property;
8) exit

The code following this flow has been used in production for over two years.

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Continuing 
Development
Jack Henry  Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com



-Original Message-
From: Davis, Jeff [mailto:jda...@nanometrics.com] 
Sent: Friday, March 6, 2015 12:02 PM
To: General discussion about the WiX toolset.
Subject: [WiX-users] Custom Action to Read XML value

It seems like the answer to every question about reading XML value using Wix is 
to write a custom action.  I have found a couple of solutions that I have tried 
with no success.   Does someone have a working XML Search custom action that 
you pass a XML filename and a XPath value and it will populate a Property value 
with its results.   I don't need to add an extension with lots of other actions 
or an action that a lot more than what I need.  Although if you're using 
something that works I'd take it.

I need it to be able to evaluate complex XPath expressions with valid XST 
functions like substring-before() so I can parse Values.

Has someone got something that works for them that they don't mind sharing so I 
don't have to write my own?  (which is not my strong point)



This solution is what I am looking for but I can't get it to work for me.

http://www.codeproject.com/Articles/865604/Writing-a-Wix-Extension-to-Read-XML-Files

When I try to build the project I get several errors.

Error 1 The command copy 
.\Wix.XmlSearch_src\XmlSearch.WixLib\bin\Debug\XmlSearch.wixlib 
.\Wix.XmlSearch_src\Resources /y exited with code 1. Wix.XmlSearch

If I add this to the Wix.Test.Setup Product.wxs

xmlsearch:XmlSearch Id=Test1 File=$(var.ProjectDir)Test.xml 
XPath=/Testdata/testnode/@Value/

I get this error

Error 1 The Property element contains an unhandled extension element 
'xmlsearch:XmlSearch'. Please ensure that the extension for elements in the 
'http://schemas.rottedfrog.co.uk/wix/XmlSearch' namespace has been provided.

If I try to add the binary to a project I get this error

A reference to C:\Program Files (x86)\WiX Toolset v3.9\bin\\Wix.WmlSearch.dll 
could not be added. Please make sure tha tthe file is accessible, and that it 
is a valid Wix reference.


I have tried this one which works pretty well

https://bitbucket.org/nirbar1/panelswwixextension

But there is a bug in the XPath expression evaluation that won't allow 
functions like substring-before()  etc to be used.



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom Action to Read XML value

2015-03-06 Thread Davis, Jeff
It seems like the answer to every question about reading XML value using Wix is 
to write a custom action.  I have found a couple of solutions that I have tried 
with no success.   Does someone have a working XML Search custom action that 
you pass a XML filename and a XPath value and it will populate a Property value 
with its results.   I don't need to add an extension with lots of other actions 
or an action that a lot more than what I need.  Although if you're using 
something that works I'd take it.

I need it to be able to evaluate complex XPath expressions with valid XST 
functions like substring-before() so I can parse Values.

Has someone got something that works for them that they don't mind sharing so I 
don't have to write my own?  (which is not my strong point)



This solution is what I am looking for but I can't get it to work for me.

http://www.codeproject.com/Articles/865604/Writing-a-Wix-Extension-to-Read-XML-Files

When I try to build the project I get several errors.

Error 1 The command copy 
.\Wix.XmlSearch_src\XmlSearch.WixLib\bin\Debug\XmlSearch.wixlib 
.\Wix.XmlSearch_src\Resources /y exited with code 1. Wix.XmlSearch

If I add this to the Wix.Test.Setup Product.wxs

xmlsearch:XmlSearch Id=Test1 File=$(var.ProjectDir)Test.xml 
XPath=/Testdata/testnode/@Value/

I get this error

Error 1 The Property element contains an unhandled extension element 
'xmlsearch:XmlSearch'. Please ensure that the extension for elements in the 
'http://schemas.rottedfrog.co.uk/wix/XmlSearch' namespace has been provided.

If I try to add the binary to a project I get this error

A reference to C:\Program Files (x86)\WiX Toolset v3.9\bin\\Wix.WmlSearch.dll 
could not be added. Please make sure tha tthe file is accessible, and that it 
is a valid Wix reference.


I have tried this one which works pretty well

https://bitbucket.org/nirbar1/panelswwixextension

But there is a bug in the XPath expression evaluation that won't allow 
functions like substring-before()  etc to be used.



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] RegistrySearch on click

2015-03-06 Thread Joseph L. Casale
Trying that again...

I have been searching around for a while without luck on the approach
used to initiate a RegistrySearch using a value entered in a text field
when the user presses next in a dialog.

The best I could come up with was publishing a DoAction event in the
next button control. However, I cant seem to find an indication that
you can actually create a CustomAction that performs a registry search?

Ultimately I need to return an error if the value is not found.

Thanks,
jlc
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action to Read XML value

2015-03-06 Thread Davis, Jeff
So does someone have the DLL or the code that does what is listed below that is 
working?   I am trying to work on a complex Wix Installer and would just like 
to have XML read capability in my .WXS  code so I can continue.  
 

-Original Message-
From: John Cooper [mailto:jocoo...@jackhenry.com] 
Sent: Friday, March 06, 2015 10:23 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Custom Action to Read XML value

Yes.  It's not very complicated.  The specific steps in the innermost custom 
action (there is another custom action that drives this one from a table) are:

1) load path to XML file from property;
2) load XPATH from property;
3) create an XmlDocument instance
4) use the TrySafeLoad method to see if I can load the XML file, exit if I can't
5) get an XmlNode using SelectSingleNode on the XPATH previously loaded;
6) if the XmlNode is null, store a default value;
7) else process for attribute, element, or inner text and load the property;
8) exit

The code following this flow has been used in production for over two years.

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Continuing 
Development Jack Henry  Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com



-Original Message-
From: Davis, Jeff [mailto:jda...@nanometrics.com]
Sent: Friday, March 6, 2015 12:02 PM
To: General discussion about the WiX toolset.
Subject: [WiX-users] Custom Action to Read XML value

It seems like the answer to every question about reading XML value using Wix is 
to write a custom action.  I have found a couple of solutions that I have tried 
with no success.   Does someone have a working XML Search custom action that 
you pass a XML filename and a XPath value and it will populate a Property value 
with its results.   I don't need to add an extension with lots of other actions 
or an action that a lot more than what I need.  Although if you're using 
something that works I'd take it.

I need it to be able to evaluate complex XPath expressions with valid XST 
functions like substring-before() so I can parse Values.

Has someone got something that works for them that they don't mind sharing so I 
don't have to write my own?  (which is not my strong point)



This solution is what I am looking for but I can't get it to work for me.

http://www.codeproject.com/Articles/865604/Writing-a-Wix-Extension-to-Read-XML-Files

When I try to build the project I get several errors.

Error 1 The command copy 
.\Wix.XmlSearch_src\XmlSearch.WixLib\bin\Debug\XmlSearch.wixlib 
.\Wix.XmlSearch_src\Resources /y exited with code 1. Wix.XmlSearch

If I add this to the Wix.Test.Setup Product.wxs

xmlsearch:XmlSearch Id=Test1 File=$(var.ProjectDir)Test.xml 
XPath=/Testdata/testnode/@Value/

I get this error

Error 1 The Property element contains an unhandled extension element 
'xmlsearch:XmlSearch'. Please ensure that the extension for elements in the 
'http://schemas.rottedfrog.co.uk/wix/XmlSearch' namespace has been provided.

If I try to add the binary to a project I get this error

A reference to C:\Program Files (x86)\WiX Toolset v3.9\bin\\Wix.WmlSearch.dll 
could not be added. Please make sure tha tthe file is accessible, and that it 
is a valid Wix reference.


I have tried this one which works pretty well

https://bitbucket.org/nirbar1/panelswwixextension

But there is a bug in the XPath expression evaluation that won't allow 
functions like substring-before()  etc to be used.



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 

Re: [WiX-users] Installation doesn't progress at all

2015-03-06 Thread Jeremiahf
No verbose logs possible? Am I wrong anyone?

J

On Thu, Mar 5, 2015 at 1:26 AM, Balaji R ji4all...@gmail.com wrote:

 Hi,

 I've installing a .msi file using managed bootstrapper application.

 Thanks,
 Balaji



 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Installation-doesn-t-progress-at-all-tp7599147p7599470.html
 Sent from the wix-users mailing list archive at Nabble.com.


 --
 Dive into the World of Parallel Programming The Go Parallel Website,
 sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for
 all
 things parallel software development, from weekly thought leadership blogs
 to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users