This project is read-only.
1

Closed

WixCommonUiExtension in 1.3 still references Wix 3.0

description

Unfortunately I wasn't able to use WixCommonUiExtension.dll in 1.3 because Wix 3.5 says that it is not a valid wix extension. Opening it in Reflector shows that it has a dependency on Wix 3.0.0.0. I am downloading the source to see if I can compile it myself against 3.5.
Closed Jun 28, 2011 at 2:54 AM by
I am pretty sure it's fixed, I did a build on a new machine where I don't even have a trace of wix 3.0. Please reopen if this is still a problem.

comments

rprimrose wrote Jun 7, 2011 at 1:28 AM

Unfortunately this is a bust. I'm not a C++ guy and the solution had too many failures with my hacky attempt to build against wix 3.5. This looks like a fantastic product so I am eagerly looking forward to a Wix3.5 compatible release.

icnocop wrote Jun 7, 2011 at 6:10 AM

I am assuming you are using the source code from the trunk?

How are you building the solution? What errors do you get?

I notice that WixCommonUiExtension.csproj's reference to wix.dll indicates False.

Do you have the development requirements:
http://msiext.codeplex.com/wikipage?title=Setting%20Up%20a%20Development%20Environment

Do you have wix 3.5 installed?

rprimrose wrote Jun 7, 2011 at 6:37 AM

Yes, it was against the trunk. I am using VS2010 ultimate on Windows Server 2008 R2 x64 and I have wix 3.5 installed.

I don't have all the dependencies installed so I was hacking and slashing a little to get it over the line :). I commented out an xml reference to SVN and changed paths to match the installed wix package in order to compile the WixCommonUiExtension assembly rather than the whole solution. C++ projects then gave a ton of failures and I didn't have any scope in my project to pursue it further.

I did see some other issues posted about support for wix 3.5 with the response indicating that 1.3 beta did cater for it. Am I missing something or looking in the wrong place?

Cheers,

Rory

icnocop wrote Jun 7, 2011 at 7:22 AM

Replace "WiX\v3.0\Wix.targets" with "WiX\v3.x\Wix.targets" in all *.wixproj files and then try again.

icnocop wrote Jun 7, 2011 at 7:48 AM

But you shouldn't need to do this because if there are any instances of "WiX\v3.0\Wix.targets", then you don't have the latest version from svn.

rprimrose wrote Jun 7, 2011 at 7:55 AM

I have changed
..\..\..\..\externals\wix\Wix.targets
..\..\..\..\externals\wix\    
to
C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\Wix.targets
C:\Program Files (x86)\Windows Installer XML v3.5\bin    
I also updated the hint path to the wixuiextensions.dll

Compile now gives 39 errors.


Error 1 The extension 'D:\Dev\MsiExt\src\Demos\CommonUiMsi\WixCommonUiExtension' could not be loaded because of the following reason: Could not load file or assembly 'file:///D:\Dev\MsiExt\src\Demos\CommonUiMsi\WixCommonUiExtension' or one of its dependencies. The system cannot find the file specified. candle.exe 0 1 CommonUiMsi
Error 2 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 3 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 4 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 5 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 6 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 7 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 8 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 9 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 10 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 11 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 12 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 13 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 14 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 15 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 16 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 17 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 18 error C2653: 'stdext' : is not a class or namespace name D:\Dev\MsiExt\externals\cryptopp\zdeflate.cpp 390 1 cryptlib
Error 19 error C2228: left of '.first' must have class/struct/union D:\Dev\MsiExt\externals\cryptopp\zdeflate.cpp 394 1 cryptlib
Error 20 error C3861: 'unchecked_mismatch': identifier not found D:\Dev\MsiExt\externals\cryptopp\zdeflate.cpp 394 1 cryptlib
Error 21 error LNK1104: cannot open file 'libboost_regex-vc100-mt-s-1_41.lib' D:\Dev\MsiExt\src\CustomActions\StringTools\LINK StringTools
Error 22 The system cannot find the file 'D:\Dev\MsiExt\target\Release\bin\StringTools.dll'. D:\Dev\MsiExt\src\Demos\StringToolsMsi\StringToolsMsi.wxs 8 1 StringToolsMsi
Error 25 error LNK1181: cannot open input file 'D:\Dev\MsiExt\target\Release\bin\StringTools.lib' D:\Dev\MsiExt\src\CustomActions\StringTools\LINK StringToolsUnitTests
Error 26 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\CustomActions\Cryptography\LINK Cryptography
Error 28 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\CustomActions\DataSource\LINK DataSource
Error 30 error C2872: 'BOOLEAN' : ambiguous symbol C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\bcrypt.h 1267 1 CryptUnitTests
Error 32 The system cannot find the file 'D:\Dev\MsiExt\src\WixExtensions\CommonUiExtension\wixlib........\target\Release\bin\StringTools.dll' with type ''. lit.exe 0 1 CommonUiExtension (Source\Wix Extensions\CommonUiExtension\CommonUiExtension)
Error 33 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\CustomActions\Cryptography\LINK CryptographyUnitTests
Error 42 Error reading resource file 'D:\Dev\MsiExt\target\Release\bin\CommonUi.wixlib' -- 'The system cannot find the file specified. ' WixCommonUiExtension
Error 43 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\Tools\DSN\LINK DSN
Error 44 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\Tools\ODBQ\LINK ODBQ
Error 45 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\CustomActions\DataSource\LINK DataSourceUnitTests
Error 47 The system cannot find the file 'D:\Dev\MsiExt\src\WixExtensions\DataSourceExtension\wixlib........\target\Release\bin\DataSource.dll' with type ''. lit.exe 0 1 DataSourceExtension (Source\Wix Extensions\DataSourceExtension\DataSourceExtension)
Error 48 Error reading resource file 'D:\Dev\MsiExt\target\Release\bin\DataSource.wixlib' -- 'The system cannot find the file specified. ' WixDataSourceExtension
Error 49 The system cannot find the file 'D:\Dev\MsiExt\target\Release\bin\DataSource.dll'. D:\Dev\MsiExt\src\Demos\DataSourceMsi\DataSourceMsi.wxs 10 1 DataSourceMsi
Error 50 The extension 'D:\Dev\MsiExt\src\Demos\MSSQLDatabase\WixDataSourceExtension' could not be loaded because of the following reason: Could not load file or assembly 'file:///D:\Dev\MsiExt\src\Demos\MSSQLDatabase\WixDataSourceExtension' or one of its dependencies. The system cannot find the file specified. candle.exe 0 1 MSSQLDatabaseMsi
Error 51 The extension 'D:\Dev\MsiExt\src\Demos\AccessDatabase\WixDataSourceExtension' could not be loaded because of the following reason: Could not load file or assembly 'file:///D:\Dev\MsiExt\src\Demos\AccessDatabase\WixDataSourceExtension' or one of its dependencies. The system cannot find the file specified. candle.exe 0 1 AccessDatabaseMsi
Error 52 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\Common\ODBC\LINK ODBCUnitTests
53  IntelliSense: name followed by '::' must be a class or namespace name   d:\dev\msiext\externals\cryptopp\zdeflate.cpp   390 5   cryptlib

icnocop wrote Jun 7, 2011 at 7:57 AM

I am running Windows 7 64-bit with WiX 3.5 installed and am not having any issues building when using an Administrator command prompt for example and following the instructions here: http://msiext.codeplex.com/wikipage?title=Setting%20Up%20a%20Development%20Environment

What are the exact error messages you are getting?

I would recommending deleting trunk and then doing a get again to ensure you have the latest version.

rprimrose wrote Jun 7, 2011 at 8:04 AM

I'll give it another go. In the meantime, are you able to post your binaries compiled against wix 3.5?

icnocop wrote Jun 7, 2011 at 9:17 AM

You shouldn't need to make any changes to get it to build.

When you revert your changes and try the build again, what error messages do you get?

rprimrose wrote Jun 7, 2011 at 2:09 PM

I've been downloading the trunk using the source code page on the codeplex project. The latest changeset there is 76669 but the snv address indicates 78729. I'll give the svn trunk version a go tomorrow morning.

Is it possible to add your build against wix 3.5 to the public releases on the project site? That would save me a ton of time.

Cheers

rprimrose wrote Jun 8, 2011 at 12:08 AM

I have downloaded the latest trunk version from svn. I then upgraded the solution to VS2010 and tried to compile the WixCommonUiExtension project. These are the failures.


Error 2 The extension 'D:\Dev\MsiExt\src\Demos\CommonUiMsi\WixCommonUiExtension' could not be loaded because of the following reason: Could not load file or assembly 'file:///D:\Dev\MsiExt\src\Demos\CommonUiMsi\WixCommonUiExtension' or one of its dependencies. The system cannot find the file specified. candle.exe 0 1 CommonUiMsi
Error 3 The system cannot find the file 'D:\Dev\MsiExt\src\WixExtensions\DataSourceExtension\wixlib........\target\Release\bin\DataSource.dll' with type ''. lit.exe 0 1 DataSourceExtension (Source\Wix Extensions\DataSourceExtension\DataSourceExtension)
Error 4 The system cannot find the file 'D:\Dev\MsiExt\target\Release\bin\StringTools.dll'. D:\Dev\MsiExt\src\Demos\StringToolsMsi\StringToolsMsi.wxs 8 1 StringToolsMsi
Error 5 The system cannot find the file 'D:\Dev\MsiExt\target\Release\bin\DataSource.dll'. D:\Dev\MsiExt\src\Demos\DataSourceMsi\DataSourceMsi.wxs 10 1 DataSourceMsi
Error 6 The extension 'D:\Dev\MsiExt\src\Demos\AccessDatabase\WixDataSourceExtension' could not be loaded because of the following reason: Could not load file or assembly 'file:///D:\Dev\MsiExt\src\Demos\AccessDatabase\WixDataSourceExtension' or one of its dependencies. The system cannot find the file specified. candle.exe 0 1 AccessDatabaseMsi
Error 7 The extension 'D:\Dev\MsiExt\src\Demos\MSSQLDatabase\WixDataSourceExtension' could not be loaded because of the following reason: Could not load file or assembly 'file:///D:\Dev\MsiExt\src\Demos\MSSQLDatabase\WixDataSourceExtension' or one of its dependencies. The system cannot find the file specified. candle.exe 0 1 MSSQLDatabaseMsi
Error 17 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 18 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 19 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 20 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 21 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 22 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 23 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 24 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 27 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 28 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 29 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 30 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 31 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 32 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 33 error C2440: 'initializing' : cannot convert from 'int' to 'const unsigned char *' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 34 error C2439: 'std::_Pair_base::first' : member could not be initialized C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 cryptlib
Error 35 error LNK1104: cannot open file 'libboost_regex-vc100-mt-s-1_41.lib' D:\Dev\MsiExt\src\CustomActions\StringTools\LINK StringTools
Error 36 error C2653: 'stdext' : is not a class or namespace name D:\Dev\MsiExt\externals\cryptopp\zdeflate.cpp 390 1 cryptlib
Error 37 error C2228: left of '.first' must have class/struct/union D:\Dev\MsiExt\externals\cryptopp\zdeflate.cpp 394 1 cryptlib
Error 38 error C3861: 'unchecked_mismatch': identifier not found D:\Dev\MsiExt\externals\cryptopp\zdeflate.cpp 394 1 cryptlib
Error 39 error LNK1181: cannot open input file 'D:\Dev\MsiExt\externals\cryptopp\Win32\Output\Release\cryptlib.lib' D:\Dev\MsiExt\src\CustomActions\DataSource\LINK DataSource
Error 41 The system cannot find the file 'D:\Dev\MsiExt\src\WixExtensions\CommonUiExtension\wixlib........\target\Release\bin\StringTools.dll' with type ''. lit.exe 0 1 CommonUiExtension (Source\Wix Extensions\CommonUiExtension\CommonUiExtension)
Error 42 Error reading resource file 'D:\Dev\MsiExt\target\Release\bin\CommonUi.wixlib' -- 'The system cannot find the file specified. ' WixCommonUiExtension

dblock wrote Jun 8, 2011 at 12:33 AM

The issue of upgrading to VS2010 and to Wix 3.5 are completely unrelated. MSIExt still uses VS 2005 for good reasons - static linking. I plan to take a look at the build, trunk should compile against Wix 3.5 now by running "build all" with VS 2005.

dblock wrote Jun 28, 2011 at 2:53 AM

Can someone please confirm that this is fixed with the latest 1.3 build?
http://msiext.codeplex.com/releases/view/65032

rprimrose wrote Jun 28, 2011 at 3:47 AM

Yes, this is fixed. Thanks.