Hello!
I'm seeing a different in the output Light.exe command lines when I msbuild and
various combinations of switches, specifically /target. I tracked down the
issue to a wixlib that doesn't get included on the light command line.
When building from Visual Studio or the following command lines, the install
compiles (workaround is to clean then build):
* Visual Studio -> Build
* Visual Studio -> Rebuild
* msbuild c:\tfs\development\release\WixInstalls.sln /t:build
/p:Configuration=release /p:Version=$version
* msbuild c:\tfs\development\release\WixInstalls.sln /p:Configuration=release
/p:Version=$version
* msbuild c:\tfs\development\release\WixInstalls.sln /p:Configuration=release
* msbuild c:\tfs\development\release\WixInstalls.sln /p:Version=$version
When building this way, the install fails to compile.
* msbuild c:\tfs\development\release\WixInstalls.sln /t:rebuild
/p:Configuration=release
* msbuild c:\tfs\development\release\WixInstalls.sln /t:rebuild
/p:Version=$version
* msbuild c:\tfs\development\release\WixInstalls.sln /t:rebuild
Here are the errors I recieve:
c:\tfs\development\release\FrontEnd\Product.wxs(52):error LGHT0094: Unresolved
reference to symbol 'Property:WixCommon' in section'Product:*'.
[c:\tfs\development\release\FrontEnd\FrontEnd.wixproj]
c:\tfs\development\release\FrontEnd\Product.wxs(61): error LGHT0094: Unresolved
reference to symbol 'Component:StartFolder' in section 'Product:*'.
[c:\tfs\development\irelease\FrontEnd\FrontEnd.wixproj]
c:\tfs\development\release\FrontEnd\Product.wxs(67): error LGHT0094: Unresolved
reference to symbol 'WixUI:IR_UI_PERSISTENT' in section 'Product:*'.
[c:\tfs\development\release\FrontEnd\FrontEnd.wixproj]
Here is how it looks from Visual Studio's build command. I broke everything out
on its own line just to make it clearer.
C:\Program Files (x86)\Windows Installer XML v3.6\bin\Light.exe
-out C:\Development\Release\FrontEnd\bin\Release\FrontEnd.msi
-pdbout C:\Development\Release\FrontEnd\bin\Release\FrontEnd.wixpdb
-cultures:en-US
-ext "C:\Program Files (x86)\Windows Installer XML
v3.6\bin\\WixUtilExtension.dll"
-ext "C:\Program Files (x86)\Windows Installer XML
v3.6\bin\\WixUIExtension.dll"
-contentsfile obj\Release\FrontEnd.wixproj.BindContentsFileList.txt
-outputsfile obj\Release\FrontEnd.wixproj.BindOutputsFileList.txt
-builtoutputsfile obj\Release\FrontEnd.wixproj.BindBuiltOutputsFileList.txt
obj\Release\BackupFiles.wixobj
obj\Release\Files.wixobj
obj\Release\InstallLocationProperties.wixobj
obj\Release\Product.wixobj
obj\Release\SymbolLinkCreation.wixobj
C:\Development\Release\Wix\CommonInstallTools\CommonInstallTools\bin\Release\CommonInstallTools.wixlib
<-- Missing from /t:rebuild
The order from msbuild is a bit different, but -cotnentsfile, -outputsfile, and
builtoutputsfile are missing, and most importantly the wixlib at the end
(CommonInstallTools.wixlib) is always missing when using /t:rebuild. The
strange thing is, there are two other projects in this solution that build MSIs
successfully. Each of those projects requires this wixlib and they get
compiled before the project that fails. Note: this project has been building
successfully for almost year using the /t:rebuild switch. I added some custom
action dlls and some .wxs files.
-Derrick
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users