我有简单的"Hello world"Windows窗体应用程序(在VS-2013中创建).
如何使用WIX Toolset在Windows启动时启动应用程序?
必须在windows7和windows8中工作.
这是我目前的Product.wxs.
<?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>
Run Code Online (Sandbox Code Playgroud)
编辑:
感谢您的帮助,但对我来说并不是很好.在哪里添加这个标签?我应该创建快捷方式,或者wix会为我做这个吗?我是否必须包含wix的快捷方式,以及如何?我是否必须将.ico包含在wix项目中?我需要一步一步解释才能理解这一点. Hello World项目示例的Whole …