title: How to : Making a program start on Windows startup with wix toolset?
body: <p>I have simple "Hello world" windows forms application (created in VS-2013).<br/>
  How to making an aplication start on Windows startup, with WIX Toolset ?<br/>
  Must work in windows7 and windows8.<br/>
  This is Product.wxs I have currently.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
      &lt;Product Id="*" Name="Installer" Language="1033" Version="1.0.0.0" Manufacturer="DMC" UpgradeCode="808c333f-09f7-45d5-a5ab-ea104c500f2b"&gt;
          &lt;Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /&gt;
          &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /&gt;
          &lt;MediaTemplate /&gt;
          &lt;Feature Id="ProductFeature" Title="Installer" Level="1"&gt;
              &lt;ComponentGroupRef Id="ProductComponents" /&gt;
          &lt;/Feature&gt;
      &lt;/Product&gt;
      &lt;Fragment&gt;
          &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
              &lt;Directory Id="ProgramFilesFolder"&gt;
                  &lt;Directory Id="INSTALLFOLDER" Name="HelloWorld" /&gt;
              &lt;/Directory&gt;
        &lt;Directory Id="StartupFolder"&gt;
        &lt;/Directory&gt;
          &lt;/Directory&gt;
      &lt;/Fragment&gt;
      &lt;Fragment&gt;
          &lt;ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"&gt;
        &lt;Component Guid="{A4744AE7-211C-42A0-887D-1701D242776C}"&gt;
          &lt;File Source="$(var.HelloWorld.TargetPath)" KeyPath="yes" /&gt;
        &lt;/Component&gt;
    &lt;/ComponentGroup&gt;
      &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>EDIT:<br/>
  Thank for help, but not good enought for me. Where to add this tags? Should I create shortcut, or wix will do that for me ? Do I have to include shortcut to wix, and how? Do I have to include .ico to wix project and how ? <strong>I need, step by step explanation to understand this.</strong> <strong>Whole Product.wxs for Hello World project example would be the best.</strong>
  <br/>Edit 2: <br/>
  I still don't know how to resolve this with wix. I used different approach :<a href="https://stackoverflow.com/questions/5089601/run-the-application-at-windows-startup">How to run a C# application at Windows startup?</a></p>