[ACCEPTED]-Generating an executable using wix-wix3

Accepted answer
Score: 16

A setup EXE is usually referred to as a 15 bootstrapper or chainer. WiX 3.5 will ship with an executable 14 called burn.exe, unfortunately this is still under 13 heavy development.

If you're just after a 12 basic self-extracting EXE with no additional 11 logic you can use the included setupbld.exe with WiX. However 10 it's pretty limited and only includes the 9 most basic functionality.

Alternatively, 7-zip includes 8 basic functionality for creating a setup.exe 7 from an existing MSI. You will need to install 6 the SFXs for installers addon first.

If you're after additional 5 logic, dependency checking, etc. there are 4 loads of alternatives. Personally I use 3 IRMakeBootstrap, but have heard very good 2 things about dotNetInstaller on the wix-users 1 mailing list.

Score: 0
step 1.Create window application
step 2. Add setp project
step 3. Add reference

  step 4. Add folowing code
  <Component Id="ProductComponent">
     <File Id="installation"  
    <!-- TODO: Insert files, registry keys, and other 
      resources here. -->

   step 5. <Property Id="WIXUI_INSTALLDIR" 
    Value="INSTALLFOLDER" ></Property>
    <UIRef Id="WixUI_InstallDir"/>

   step 6.
   <Directory Id="DesktopFolder" Name="Desktop"/>
   <Directory Id="INSTALLFOLDER" Name="SetupProject1" 
     step 7.  <ComponentRef 

   step 8.<Fragment>
    <DirectoryRef Id="DesktopFolder">
  <Component Id="ApplicationShortcutDesktop" 
    <Shortcut Id="ApplicationDesktopShortcut" 
     Name="SetupProject1" Description="SetupProject1" 
      WorkingDirectory="INSTALLFOLDER" />
    <RemoveFolder Id="RemoveDesktopFolder" 
     Directory="DesktopFolder" On="uninstall" />
    <RegistryValue Root="HKCU" 
     Key="Software\SetupProject1" Name="installed" 
      Type="integer" Value="1" KeyPath="yes" />

step 9.build and install setup


More Related questions