I have simple "Hello world" windows forms application (created in VS-2013).
How to making an aplication start on Windows startup, with WIX Toolset ?
Must work in windows7 and windows8.
This is Product.wxs I have currently.
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="Installer" Language="1033" Version="1.0.0.0" Manufacturer="DMC" UpgradeCode="808c333f-09f7-45d5-a5ab-ea104c500f2b">
<Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Feature Id="ProductFeature" Title="Installer" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="HelloWorld" />
</Directory>
<Directory Id="StartupFolder">
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Guid="{A4744AE7-211C-42A0-887D-1701D242776C}">
<File Source="$(var.HelloWorld.TargetPath)" KeyPath="yes" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
EDIT:
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 ? I need, step by step explanation to understand this. Whole Product.wxs for Hello World project example would be the best.
Edit 2:
I still don't know how to resolve this with wix. I used different approach :How to run a C# application at Windows startup?