[wix-users] Bundle crashes on Win 7 / Win2008R2

Rob Mensching rob at firegiant.com
Wed Jan 27 06:13:16 PST 2016


WinForms issue: https://connect.microsoft.com/VisualStudio/feedback/details/2281687/setdefaultdlldirectories-results-in-exception-during-opening-a-winform-on-win7

More information on that report should help Microsoft get a fix together.

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Cedric Lebrun
Sent: Wednesday, January 27, 2016 4:57 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Bundle crashes on Win 7 / Win2008R2

Hi,

I've created a very basic bundle using WiX v3.10.2, Visual Studio 2015 and .Net 4.5.2.
This bundle uses a managed bootstrapper application (C#/.Net 4.5.2 Winforms app)

This bundle works well on Win10/Win8.1 but crashes on Win7/Win2008R2.

Here is the bootstrapper log:

[0ED8:0C04][2016-01-27T13:53:15]i001: Burn v3.10.2.2516, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\FOO~1\AppData\Local\Temp\1\{D4EEC898-C5C4-4086-9172-1C9AE59BE816}\.cr\Bootstrapper1.exe
[0ED8:0C04][2016-01-27T13:53:15]i009: Command Line: '-burn.clean.room=C:\temp\Bootstrapper1.exe'
[0ED8:0C04][2016-01-27T13:53:15]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\temp\Bootstrapper1.exe'
[0ED8:0C04][2016-01-27T13:53:15]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\temp\'
[0ED8:0C04][2016-01-27T13:53:15]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\FOO~1\AppData\Local\Temp\Bootstrapper_20160127135315.log'
[0ED8:0C04][2016-01-27T13:53:15]i000: Setting string variable 'WixBundleName' to value 'Bootstrapper'
[0ED8:0C04][2016-01-27T13:53:15]i000: Setting string variable 'WixBundleManufacturer' to value 'MyCompany'
[0ED8:0C04][2016-01-27T13:53:16]i000: Loading managed bootstrapper application.
[0ED8:0C04][2016-01-27T13:53:16]i000: Creating BA thread to run asynchronously.


Here are the errors generated in event viewer:

Error .Net Runtime (Event ID = 1026):
Application: Bootstrapper1.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException Stack: at System.Drawing.FontFamily.GetGdipGenericSansSerif() at System.Drawing.FontFamily.get_GenericSansSerif() at System.Drawing.SystemFonts.get_DefaultFont() at System.Windows.Forms.Control.get_DefaultFont() at System.Windows.Forms.Control.GetDefaultFontHandleWrapper() at System.Windows.Forms.Control.get_FontHandle() at System.Windows.Forms.ContainerControl.GetFontAutoScaleDimensions() at System.Windows.Forms.ContainerControl.get_CurrentAutoScaleDimensions() at System.Windows.Forms.ContainerControl.get_AutoScaleFactor() at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean, Boolean) at System.Windows.Forms.ContainerControl.PerformNeededAutoScaleOnLayout() at System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs) at System.Windows.Forms.Control.PerformLayout(System.Windows.
 Forms.LayoutEventArgs) at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(System.Windows.Forms.Layout.IArrangedElement, System.String) at System.Windows.Forms.ContainerControl.LayoutScalingNeeded() at System.Windows.Forms.ContainerControl.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode) at WindowsFormsApplication1.Form1.InitializeComponent() at WindowsFormsApplication1.Form1..ctor(Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperApplication) at WindowsFormsApplication1.CustomBootstrapperApplication.Run() at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, Sy  stem.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()


Any idea / advice ?

Thank you,
Cedric



More information about the wix-users mailing list