| 
				                                 Mads                				 
                					 
                     
                
                
                
                 Guest                 
                 
                
                
                                 
                                                                
         | 
        
                
                
                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                 |   
                 
         | 
  
  
        | 
				                                 JanFrost                				 
                					 
                     
                
                
                
                 Guest                 
                 
                
                
                                 
                                                                
         | 
        
                
                
                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>
                  |   
                 
         | 
  
  
        | 
				                                 Andrei Smolin                				 
                					 					 
                
                
                
                 Add-in Express team                 
                 
                
                
                                 
                                        Posts: 19178 
                                                        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.
 
 
 Andrei Smolin
 Add-in Express Team Leader                 |   
                 
         | 
  
  
        | 
				                                 Mads                				 
                					 
                     
                
                
                
                 Guest                 
                 
                
                
                                 
                                                                
         | 
        
                
                
                Hi
 
 Big thanks to JanFrost :) it Works
 
 --
 Mads                 |   
                 
         | 
  
  
        | 
				                                 Andrei Smolin                				 
                					 					 
                
                
                
                 Add-in Express team                 
                 
                
                
                                 
                                        Posts: 19178 
                                                        Joined: 2006-05-11 
                                                
         | 
        
                
                
                Congratulations!
 
 
 Andrei Smolin
 Add-in Express Team Leader                 |   
                 
         |