[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
1.WixNetFxExtension.dll
2.WixNetFxExtension.dll
3.WixNetFxExtension.dll

  step 4. Add folowing code
  <Component Id="ProductComponent">
     <File Id="installation"  
    source="E:\MyWork\WindowsFormsApplication2\
    WindowsFormsApplication2\bin\Debug/
    WindowsFormsApplication2.exe"/>
    <!-- TODO: Insert files, registry keys, and other 
      resources here. -->
     </Component>

   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 
       Id="ApplicationShortcutDesktop"/>


   step 8.<Fragment>
    <DirectoryRef Id="DesktopFolder">
  <Component Id="ApplicationShortcutDesktop" 
   Guid="cde1e030-eb64-49a5-b7b8-400b379c2d1a">
    <Shortcut Id="ApplicationDesktopShortcut" 
     Name="SetupProject1" Description="SetupProject1" 
     Target=". 
    [INSTALLFOLDER]WindowsFormsApplication2.exe" 
      WorkingDirectory="INSTALLFOLDER" />
    <RemoveFolder Id="RemoveDesktopFolder" 
     Directory="DesktopFolder" On="uninstall" />
    <RegistryValue Root="HKCU" 
     Key="Software\SetupProject1" Name="installed" 
      Type="integer" Value="1" KeyPath="yes" />
  </Component>
 </DirectoryRef>
</Fragment>

step 9.build and install setup

0

More Related questions