[wix-users] Installation of an assembly fails if this contains unsafe blocks
Daniel Valdez
daniel.valdez at oracle.com
Wed Feb 16 07:28:18 PST 2022
Hi Rob,
This log is what I got by running "msiexec /i MyInstallation.msi /L*e c:\temp\yourinstall.log" which I'm running to trying to see why my installation is failing. As I mentioned, the issue is when I try to install a dll compiled with "unsafeblocks".
-----Original Message-----
From: Rob Mensching <rob at firegiant.com>
Sent: Wednesday, February 16, 2022 9:22 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Daniel Valdez <daniel.valdez at oracle.com>
Subject: [External] : RE: Installation of an assembly fails if this contains unsafe blocks
It looks like you're running some command line using CAQuietExec that is failing. You need to investigate why that is failing.
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Daniel Valdez via wix-users
Sent: Wednesday, February 16, 2022 7:18 AM
To: wix-users at lists.wixtoolset.org
Cc: Daniel Valdez <daniel.valdez at oracle.com>
Subject: [wix-users] Installation of an assembly fails if this contains unsafe blocks
Not sure if this is a bug or not.
Bugs
If this issue is a bug:
Which version of WiX are you building with?
3.11.2.4516
Which version of Visual Studio are you building with (if any)?
VS 2022 Professional
Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?
1.0.0.18
Which version of .NET are you building with?
.NET Framework 4.8
If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?
Windows 10
Describe the problem and the steps to reproduce it.
I have a ".wixproj" that installs an assembly which contains the true property. It builds without any issue but when I try to install it, it just doesn't work and shows me the following error in the logs:
CAQuietExec: Running a transacted installation.
CAQuietExec:
CAQuietExec: Beginning the Install phase of the installation.
CAQuietExec: See the contents of the log file for the [...]dll assembly's progress.
CAQuietExec: The file is located at .
CAQuietExec: Installing assembly '[...]dll'.
CAQuietExec: Affected parameters are:
CAQuietExec: logtoconsole = true
CAQuietExec: logfile =
CAQuietExec: assemblypath = [...]dll
CAQuietExec: An exception occurred while trying to find the installers in the [...]dll assembly.
CAQuietExec: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
CAQuietExec: Aborting installation for [...]dll.
CAQuietExec:
CAQuietExec: An exception occurred during the Install phase.
CAQuietExec: System.InvalidOperationException: Unable to get installer types in the [...]dll assembly.
CAQuietExec: The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..
CAQuietExec:
CAQuietExec: The Rollback phase of the installation is beginning.
Describe the behavior you expected and how it differed from the actual behavior.
This was working well and as expected before I added a new feature to my assembly that required the "unsafeblocks".
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.com/v3/__http://www.firegiant.com/__;!!ACWV5N9M2RV99hQ!dmXxZ82v446pxfjVpdKoJHIQ5xrGaDqJq5OCSBvTosOPbbWpOpotSSEP8EsaOKfsHKQ$
More information about the wix-users
mailing list