You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of WiX are you building with?
WiX Toolset v3.10.2
wix-v3.10.2516.0
Which version of Visual Studio are you building with (if any)?
VisualStudio 2013,
Version 12.0.40629.00 Update 5
Which version of .NET are you building with?
Version 4.6.01055
If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?
Windows7 enterprise
We are creating an application, which has some .NET dependencies. To check these dependencies at setup time we use a BootstrapperApplication in the setup, which is a simple library.
The project is built successfully, the setup file is created, it can be started.
After starting the setup program of our application it hangs up after a while. The installer triggers the BootstrapperApplication and the Run method is called.
The problem is an exception: System.ArgumentException: Font '?' cannot be found. It comes at the first usage of SystemFonts (using direct or implicitly over an other API, it does not matter.)
The most simple way to get just use: var sdfsdf = SystemFonts.CaptionFont;
This problem did not come with Wix3.9. We used this version earlier and the problem comes just after changed to Wix3.10.
namespace TestLib
{
public class Class1 : BootstrapperApplication
{
protected override void Run()
{
try
{
var sdfsdf = SystemFonts.CaptionFont;
}
catch (Exception e)
{
Engine.Log(LogLevel.Error, "Caught Run exception: " + e);
}
}
}
}
The exception:
System.ArgumentException: Font '?' cannot be found.
at System.Drawing.FontFamily.GetGdipGenericSansSerif()
at System.Drawing.FontFamily.get_GenericSansSerif()
at System.Drawing.SystemFonts.get_DefaultFont()
at System.Drawing.SystemFonts.get_CaptionFont()
at TestLib.Class1.Run()
The text was updated successfully, but these errors were encountered:
GDI+ fails in some scenarios when ::SetDefaultDllDirectories() is used
to protect a process from DLL hijacking. All WinForms based BAs hit this
problem. To workaround the failure, the clean room process which load
BAs will no longer protect itself from DLL hijacking because it should
be secure due to its design. Additionally, the package cache processes
will launch a clean room even though it is technically already secure to
keep processing consistent.
Fixeswixtoolset/issues#5282
rseanhall
pushed a commit
to rseanhall/wix4-archive
that referenced
this issue
Sep 25, 2016
GDI+ fails in some scenarios when ::SetDefaultDllDirectories() is used
to protect a process from DLL hijacking. All WinForms based BAs hit this
problem. To workaround the failure, the clean room process which load
BAs will no longer protect itself from DLL hijacking because it should
be secure due to its design. Additionally, the package cache processes
will launch a clean room even though it is technically already secure to
keep processing consistent.
Fixeswixtoolset/issues#5282
robmen
added a commit
to wixtoolset/wix4-archive
that referenced
this issue
Jan 7, 2017
GDI+ fails in some scenarios when ::SetDefaultDllDirectories() is used
to protect a process from DLL hijacking. All WinForms based BAs hit this
problem. To workaround the failure, the clean room process which load
BAs will no longer protect itself from DLL hijacking because it should
be secure due to its design. Additionally, the package cache processes
will launch a clean room even though it is technically already secure to
keep processing consistent.
Fixeswixtoolset/issues#5282
WiX Toolset v3.10.2
wix-v3.10.2516.0
VisualStudio 2013,
Version 12.0.40629.00 Update 5
Version 4.6.01055
Windows7 enterprise
We are creating an application, which has some .NET dependencies. To check these dependencies at setup time we use a BootstrapperApplication in the setup, which is a simple library.
The project is built successfully, the setup file is created, it can be started.
After starting the setup program of our application it hangs up after a while. The installer triggers the BootstrapperApplication and the Run method is called.
The problem is an exception: System.ArgumentException: Font '?' cannot be found. It comes at the first usage of SystemFonts (using direct or implicitly over an other API, it does not matter.)
The most simple way to get just use: var sdfsdf = SystemFonts.CaptionFont;
This problem did not come with Wix3.9. We used this version earlier and the problem comes just after changed to Wix3.10.
In the WixBootstrapper Bundle.wxs:
In the BootstrapperApplication, BootstrapperCore.config:
The BootstrapperApplication code:
The exception:
The text was updated successfully, but these errors were encountered: