I'm trying to follow this with wix 3.8:

http://wixtoolset.org/documentation/manual/v3/overview/lux.html

 

But during executing 'nit' tool, I've got an error:

'nit.exe : error NIT0001 : This installation package could not be opened.
Verify that the package exists and that you can access it, or contact the
application vendor to verify that this is a valid Windows Installer package.'

 

Before this I have applied these commands:

candle -ext WixLuxExtension CustomActions.wxs

lux CustomActions.wixobj -out Lux_Test.wxs

candle -ext WixLuxExtension Lux_Test.wxs

light -ext WixLuxExtension Lux_Test.wixobj CustomActions.wixobj -out
Lux_Test.msi

 

CustomActions.wxs:

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
xmlns:lux="http://schemas.microsoft.com/wix/2009/Lux";>

  <Fragment>

 

    <Directory Id="TARGETDIR" Name="SourceDir">

      <Directory Id="ProgramFilesFolder">

        <Directory Id="INSTALLFOLDER" Name="TestSetupProject" />

      </Directory>

    </Directory>

    

    <Binary Id="CustomActionsBinary" SourceFile="CustomActions.CA.dll" />

    <CustomAction Id='CustomAction1' BinaryKey='CustomActionsBinary'
DllEntry='CustomAction1' Execute='immediate' />

 

    <InstallExecuteSequence>

      <Custom Action='CustomAction1' Before='InstallInitialize'/>

    </InstallExecuteSequence>

 

    <lux:UnitTest CustomAction="CustomAction1" Property="TESTPROP"
Value="RES1" Operator="equal" />

    <lux:UnitTest CustomAction="CustomAction1">

      <lux:Expression>TESTPROP</lux:Expression>

    </lux:UnitTest>

  </Fragment>

</Wix>

 

Simple custom action just set property. 

I can see [WixUnitTest] table in result msi with Orca.

 

What am I doing wrong? And how can I run tests?

 

 

Best, Ihor.

 

</pre><font face="arial" size="2" color="#736F6E">



<a 
href="http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature";>
<img 
src="http://www.sdl.com/Content/themes/common/images/SDL_logo_strapline_GCEM_EmailSig_150x68px.jpg";
 border=0><br><br>www.sdl.com
</a><br><br>

<font face="arial" size="1" color="#736F6E">

<b>SDL PLC confidential, all rights reserved.</b>

If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, 
and we further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
</font>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to