[wix-users] Using Lux with Wix 3.11

David Horton Davidh at trojanonline.com
Mon Sep 16 12:18:58 PDT 2019


Thank you, Steven.

I would be interested to see what other best practices are with regards to custom actions (and even testing installers in general).  Obviously there is no need to unit test the installer itself.  Functional tests would suffice whether it installed things in the right places.  The custom actions and behaviors are what I am more interested in.

If I end up rolling my own unit test framework (possibly incorporating Lux, or using it as a jumping off point), I'll gladly share my framework here (put it up on GitHub as well as write up a blog post on it, for those interested).

I have mainly been involved in web application development, so this is a great learning experience for me to round out and delve into managing deployment of desktop applications.

Sincerely,

David Horton
Software Developer
Trojan Professional Services, Inc.
Ph: (800) 451-9723 ext. 6242
Davidh at trojanonline.com
www.trojanonline.com 
  



-----Original Message-----
From: Steven Ogilvie [mailto:stogilvie at genetec.com] 
Sent: Monday, September 16, 2019 9:28 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: David Horton <Davidh at trojanonline.com>
Subject: RE: Using Lux with Wix 3.11

Here are a few web links I saw (not much)

https://wixtoolset.org/documentation/manual/v3/overview/lux.html
https://stackoverflow.com/questions/32124106/how-could-i-perform-test-to-installers-made-using-wix-or-installshield
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-Lux-and-Nit-td7597183.html
https://github.com/wixtoolset/issues/issues/3387
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Unit-tests-with-dtf-and-mockups-td7027775.html


You have most likely already have seen these ones...

Sorry couldn't be of more help, I haven't used UnitTesting with WiX ☹

Cheers,

Steve


> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> David Horton via wix-users
> Sent: September 16, 2019 12:12 PM
> To: wix-users at lists.wixtoolset.org
> Cc: David Horton <Davidh at trojanonline.com>
> Subject: Re: [wix-users] Using Lux with Wix 3.11
> 
> Hi there,
> 
> Was following up.  Does anyone have experience with Lux?  Can't find much
> documentation out there.
> 
> Are people unit testing in other ways?
> 
> Sincerely,
> 
> David Horton
> Software Developer
> Trojan Professional Services, Inc.
> Ph: (800) 451-9723 ext. 6242
> Davidh at trojanonline.com<mailto:Davidh at trojanonline.com>
> https://can01.safelinks.protection.outlook.com/?url=www.trojanonline.com
> &data=02%7C01%7Cstogilvie%40genetec.com%7C192347bf6be44a68d5
> b308d73ac0b11b%7C7ba8d2fb46604a19802e4d015a17e167%7C0%7C0%7C637
> 042471592883940&sdata=6jU6ni70WXHqv%2BfLNWfOkERQzhf%2F0Y0zf
> dRRps%2BcS00%3D&reserved=0<https://can01.safelinks.protection.out
> look.com/?url=http%3A%2F%2Fwww.trojanonline.com%2F&data=02%
> 7C01%7Cstogilvie%40genetec.com%7C192347bf6be44a68d5b308d73ac0b11b
> %7C7ba8d2fb46604a19802e4d015a17e167%7C0%7C0%7C63704247159288394
> 0&sdata=v9reIUnkG6Wk1w9Rjd6qpXQKfzqz4Yp4whypkGSZ52E%3D&a
> mp;reserved=0>
> 
> From: David Horton
> Sent: Friday, September 6, 2019 2:31 PM
> To: wix-users at lists.wixtoolset.org
> Subject: Using Lux with Wix 3.11
> 
> Hi all,
> 
> I was recommended to subscribe to mailing list and post my issue here.
> Excited to join and be a part of this group.  Looking forward to contributing
> also as I learn things.
> 
> Which version of WiX are you building with?
> (WiX version 3.11.1.2318)
> 
> Which version of Visual Studio are you building with (if any)?
> (Visual Studio 2019 Community Edition version 16.2.3)
> 
> Which version of the WiX Toolset Visual Studio Extension are you building
> with (if any)?
> (WiX Toolset Visual Studio Extension 1.0.0.4)
> 
> Which version of .NET are you building with?
> (.NET version 4.8.03752)
> 
> Describe the problem and the steps to reproduce it.
> I am attempting to add a unit test to my .wxs source file which I am editing in
> Visual Studio 2019 Community Edition IDE. I am creating it per the steps
> outlined at
> (https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwixt
> oolset.org%2Fdocumentation%2Fmanual%2Fv3%2Foverview%2Flux.html&a
> mp;data=02%7C01%7Cstogilvie%40genetec.com%7C192347bf6be44a68d5b30
> 8d73ac0b11b%7C7ba8d2fb46604a19802e4d015a17e167%7C0%7C0%7C637042
> 471592883940&sdata=n1qn4wy5%2B7gydjEuPFQN6CvlmCUT8YipYHoUb
> mIm0IY%3D&reserved=0):
> 
> <Fragment> <lux:UnitTest CustomAction="CheckOpenDentalInstalled"
> Property="SIMPLE" Value="[INSTALLFOLDER]" Operator="equal" />
> </Fragment>
> 
> However, I receive the following error when trying to build the Wix Setup
> Project in Visual Studio, as well as when attempting to run Candle.exe from
> the command prompt: Not a valid source file; detail: 'lux' is an undeclared
> prefix.
> 
> When I add the namespace declaration to the top of the .wxs source file, the
> error goes away and the source compiles:
> 
> Before:
> 
> <Wix
> xmlns="https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%
> 2Fschemas.microsoft.com%2Fwix%2F2006%2Fwi&data=02%7C01%7Cst
> ogilvie%40genetec.com%7C192347bf6be44a68d5b308d73ac0b11b%7C7ba8d2
> fb46604a19802e4d015a17e167%7C0%7C0%7C637042471592893935&sdat
> a=q%2BmIl7vk4TnbHU8pa5aYHD%2FBczM2WVdNmX6hJYsgXPI%3D&re
> served=0">
> 
> After:
> <Wix
> xmlns="https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%
> 2Fschemas.microsoft.com%2Fwix%2F2006%2Fwi&data=02%7C01%7Cst
> ogilvie%40genetec.com%7C192347bf6be44a68d5b308d73ac0b11b%7C7ba8d2
> fb46604a19802e4d015a17e167%7C0%7C0%7C637042471592893935&sdat
> a=q%2BmIl7vk4TnbHU8pa5aYHD%2FBczM2WVdNmX6hJYsgXPI%3D&re
> served=0"
> xmlns:lux="https://can01.safelinks.protection.outlook.com/?url=http%3A%2
> F%2Fschemas.microsoft.com%2Fwix%2F2009%2FLux&data=02%7C01%7
> Cstogilvie%40genetec.com%7C192347bf6be44a68d5b308d73ac0b11b%7C7ba
> 8d2fb46604a19802e4d015a17e167%7C0%7C0%7C637042471592893935&
> sdata=gvx3%2BKQwQO7MsTtufUYjiu6OgJ8JyJqeHCWKoYNYFzc%3D&re
> served=0">
> 
> I follow steps to compile using candle with the -ext WixLuxExtension, it
> compiles to the .wxsobj. However when I run lux.exe command against the
> compiled source, I receive the following error:
> 
> lux.exe : error LUX8003 : No unit tests were found in given input files.
> 
> Any insight into this would be greatly appreciated as I am attempting to add
> unit testing to my Custom Actions in WiX.
> 
> Sincerely,
> 
> David Horton
> Software Developer
> Trojan Professional Services, Inc.
> Ph: (800) 451-9723 ext. 6242
> Davidh at trojanonline.com<mailto:Davidh at trojanonline.com>
> https://can01.safelinks.protection.outlook.com/?url=www.trojanonline.com
> &data=02%7C01%7Cstogilvie%40genetec.com%7C192347bf6be44a68d5
> b308d73ac0b11b%7C7ba8d2fb46604a19802e4d015a17e167%7C0%7C0%7C637
> 042471592893935&sdata=dcanG9v4RS5vvbOxagVTvXyLx7vgJBurJ0Kh7e7
> Mebo%3D&reserved=0<https://can01.safelinks.protection.outlook.co
> m/?url=http%3A%2F%2Fwww.trojanonline.com%2F&data=02%7C01%7
> Cstogilvie%40genetec.com%7C192347bf6be44a68d5b308d73ac0b11b%7C7ba
> 8d2fb46604a19802e4d015a17e167%7C0%7C0%7C637042471592893935&
> sdata=9IjM7DeawKHls0Yf5CEGII9Dp4XvB9bww0J9JVGFAbg%3D&reserv
> ed=0>
> 
> 
> __________________________________________________________
> __________
> WiX Toolset Users Mailing List provided by FireGiant
> https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
> firegiant.com%2F&data=02%7C01%7Cstogilvie%40genetec.com%7C192
> 347bf6be44a68d5b308d73ac0b11b%7C7ba8d2fb46604a19802e4d015a17e167
> %7C0%7C0%7C637042471592893935&sdata=7PMpgyKqmahx5U9ulBZ1n
> yPOO2ImptDEHTxdJQFpsI8%3D&reserved=0


More information about the wix-users mailing list