setup.exe bootstrapper with Designer for WiX Toolset

Add-in Express™ Support Service
That's what is more important than anything else

setup.exe bootstrapper with Designer for WiX Toolset
Designer for WiX Toolset 
Mads




Posts: 28
Joined: 2010-10-22
Hi.

I need to create a setup.exe, so the user has the option to "run as administrator". How can I do this without creating a Bootstrapper project?
It is something like below, but I can't get my code to compile when adding the code.

<Bundle Name="Bootstrapper" Version="1.0.0.0" Manufacturer="" UpgradeCode="3c163c9e-0a5e-4a12-b58b-1ff41562a08e">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<!-- <MsiPackage SourceFile="msiFilename.msi" /> -->
</Chain>
</Bundle>

--
Mads
Posted 27 Aug, 2014 10:47:46 Top
JanFrost




Posts: 24
Joined: 2008-07-01
I hope nobody minds if I answer that. I had to do that myself.
It is described at page 27 of the Manual. It was missing the prerequsites for me though. So here's my code.
This goes into the .wixproj file.


  <Target Name="AfterBuild">
    <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
      <BootstrapperFile Include=".NETFramework,Version=v4.5">
        <ProductName>.NET Framework 4.5</ProductName>
      </BootstrapperFile>
      <BootstrapperFile Include="Microsoft.Windows.Installer.4.5">
        <ProductName>Windows Installer 4.5</ProductName>
      </BootstrapperFile>
    </ItemGroup>
    <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
      <BootstrapperFile Include=".NETFramework,Version=v4.5">
        <ProductName>.NET Framework 4.5</ProductName>
      </BootstrapperFile>
      <BootstrapperFile Include="Microsoft.Windows.Installer.4.5">
        <ProductName>Windows Installer 4.5</ProductName>
      </BootstrapperFile>
    </ItemGroup>
    <GenerateBootstrapper ApplicationFile="$(TargetFileName)" ApplicationName="SetupProject1" BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="HomeSite" CopyComponents="False" OutputPath="$(OutputPath)" Path="C:Program Files (x86)Microsoft SDKsWindows8.1ABootStrapper" ApplicationRequiresElevation="True" Culture="en-US" Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' " />
    <GenerateBootstrapper ApplicationFile="$(TargetFileName)" ApplicationName="SetupProject1" BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="HomeSite" CopyComponents="False" OutputPath="$(OutputPath)" Path="C:Program Files (x86)Microsoft SDKsWindows8.1ABootStrapper" ApplicationRequiresElevation="True" Culture="en-US" Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' " />
  </Target>
Posted 28 Aug, 2014 09:31:42 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Jan and thank you!

Hello Mads,

Does the above help?

Just FYI, if all the things goes as expected, we will publish the new build of the tool tomorrow or on Monday. The build introduces the Prerequisites dialog that allows specifying whether setup.exe is created.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Aug, 2014 09:50:32 Top
Mads




Posts: 28
Joined: 2010-10-22
Hi

Big thanks to JanFrost :) it Works

--
Mads
Posted 28 Aug, 2014 09:56:19 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Congratulations!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Aug, 2014 10:00:05 Top