none
Installer created using Wix bootstrap UI fails to run RRS feed

  • Question

  • I have created a msi installer using Wix Bootstrap installer.When I click on the installer to install it, nothing happens. When I checked the log output I found the following issue

    [2950:2990][2016-04-08T11:11:25]e000: Error 0x80131902: Failed to run per-user mode.
    [2950:2990][2016-04-08T11:11:25]i007: Exit code: 0x80131902, restarting: No


    Below is my class that extends BootstrapperApplication.

    public class CustomBootstrapperApplication : BootstrapperApplication
    {
        public static Dispatcher Dispatcher { get; set; }
        protected override void Run()
        {
            Dispatcher = Dispatcher.CurrentDispatcher;
            var model = new BootstrapperApplicationModel(this);
            var viewModel = new InstallViewModel(model);
            var view = new InstallView(viewModel);
            model.SetWindowHandle(view);
            this.Engine.Detect();
            view.Show();
            Dispatcher.Run();
            this.Engine.Quit(model.FinalResult);
        }
    }

    Below is my AssemblyInfo.cs

    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using CustomBA;
    using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;
    
    // General Information about an assembly is controlled through the following 
    // set of attributes. Change these attribute values to modify the information
    // associated with an assembly.
    [assembly: AssemblyTitle("CustomBA")]
    [assembly: AssemblyDescription("")]
    [assembly: AssemblyConfiguration("")]
    [assembly: AssemblyCompany("")]
    [assembly: AssemblyProduct("CustomBA")]
    [assembly: AssemblyCopyright("Copyright ©  2016")]
    [assembly: AssemblyTrademark("")]
    [assembly: AssemblyCulture("")]
    
    // Setting ComVisible to false makes the types in this assembly not visible 
    // to COM components.  If you need to access a type in this assembly from 
    // COM, set the ComVisible attribute to true on that type.
    [assembly: ComVisible(false)]
    
    // The following GUID is for the ID of the typelib if this project is exposed to COM
    [assembly: Guid("0640182b-2d21-4f58-ad2a-7a4efc1d5d94")]
    
    // Version information for an assembly consists of the following four values:
    //
    //      Major Version
    //      Minor Version 
    //      Build Number
    //      Revision
    //
    // You can specify all the values or you can default the Build and Revision Numbers 
    // by using the '*' as shown below:
    // [assembly: AssemblyVersion("1.0.*")]
    [assembly: AssemblyVersion("1.0.0.0")]
    [assembly: AssemblyFileVersion("1.0.0.0")]
    
    [assembly: BootstrapperApplication(
    typeof(CustomBootstrapperApplication))]

    Below is my BootstrapCore.config file

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <sectionGroup name="wix.bootstrapper" type="Microsoft.
    Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup,
    BootstrapperCore">
          <section name="host" type="Microsoft.Tools.
    WindowsInstallerXml.Bootstrapper.HostSection, BootstrapperCore" />
        </sectionGroup>
      </configSections>
      <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.5" />
      </startup>
      <wix.bootstrapper>
        <host assemblyName="CustomBA" />
      </wix.bootstrapper>
    </configuration>

     added this project as a dependency to my Bootstrap project. Below is the bootstrap project's Product.wxs.

    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" >
      <Bundle Name="MyBootstrapper" Version="1.0.0.0" Manufacturer="WiX Tests" UpgradeCode="416b6bbf-2beb-4187-9f83-cdb764db2840">
        <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
          <Payload SourceFile="$(var.CustomBA.TargetDir)CustomBA.dll" />
          <Payload SourceFile= "$(var.CustomBA.TargetDir)BootstrapperCore.config" />
          <Payload SourceFile= "$(var.CustomBA.TargetDir)BootstrapperCore.xml" />
          <Payload SourceFile= "$(var.CustomBA.TargetDir)Microsoft.Practices.Prism.Mvvm.Desktop.dll" />
        <Payload SourceFile= "$(var.CustomBA.TargetDir)Microsoft.Practices.Prism.Mvvm.dll" />
        <Payload SourceFile= "$(var.CustomBA.TargetDir)Microsoft.Practices.Prism.SharedInterfaces.dll" />
        </BootstrapperApplicationRef>
        <WixVariable Id="WixMbaPrereqLicenseUrl" Value=""/>
        <WixVariable Id="WixMbaPrereqPackageId" Value=""/>
        <Chain>
         <MsiPackage Id="Myapp" SourceFile="Lib\MyInstaller.msi" Compressed="yes" Vital="yes" />
        </Chain>
      </Bundle>
    </Wix>

    Why am I getting this issue? I do have dot net 4.5 installed. Please advice






    mayooran99


    • Edited by Mayooran99 Friday, April 8, 2016 5:46 AM
    Friday, April 8, 2016 5:04 AM

Answers

  • Hi Mayooran99,

    According to the error message I have found a similar thread as below and you could have a look. It provides some steps to troubleshoot this issue and you could have a try. As it says, you should make sure the .net 3.5 has been installed. Another possibility of this issue is your graphics drivers our out of date or not appropriate for your card.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/1220584d-2576-4d64-8359-a946ca208041/cant-install-vs-2012-on-win7-enterprise?forum=vssetup

    If you have install the .net 3.5 and this issue still exists, you could turn off the Microsoft .NET Framework 3.5.1 Windows feature located under Programs and Features – Turn Windows features on or off. After that, try installing the update of VS. Reboot and finally turn on the .net 3.5.1 feature again.

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, April 12, 2016 5:33 AM