在***wxs中添加配置

<MediaTemplate EmbedCab="yes" />

下面是一个简单配置:(包含写注册表)

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="xyz" Language="1033" Version="1.0.0.0" Manufacturer="app" UpgradeCode="1eb8f796-3b8e-41d6-9951-9d70b8630e69">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" /> <Feature Id="ProductFeature" Title="xyz" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<ComponentRef Id="RegistryEntry" />
</Feature>
</Product> <Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="xyz" />
</Directory>
</Directory>
</Fragment> <Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
<!-- <Component Id="ProductComponent"> -->
<!-- TODO: Insert files, registry keys, and other resources here. -->
<!-- </Component> --> <Component Id="ProductComponent" Guid="0E5598EB-B3B8-4EF5-8E8A-78A7133B6D34"> <File Id="xyz.exe" Source="xyz.exe" />
<File Id="libxxx.dll" Source="libxxx.dll" />
<File Id="msvcp120.dll" Source="msvcp120.dll" />
<File Id="msvcr120.dll" Source="msvcr120.dll" />
<File Id="vccorlib120.dll" Source="vccorlib120.dll" />
<File Id="test.html" Source="test.html" />
<File Id="reg_test.reg" Source="reg_test.reg" />
</Component>
</ComponentGroup>
</Fragment>
<Fragment>
<DirectoryRef Id="TARGETDIR">
<Component Id="RegistryEntry" Guid="B0464DA0-31B9-4DD1-B058-8CD19D07612F">
<RegistryKey Root="HKCR" Key="xyz">
<RegistryValue Type="string" Value="xyz Protocol" />
<RegistryValue Type="string" Name="URL Protocol" Value="" />
</RegistryKey>
<RegistryKey Root="HKCR" Key="xyz\DefaultIcon">
<RegistryValue Type="string" Value="[INSTALLFOLDER]xyz.exe,1" />
</RegistryKey>
<RegistryKey Root="HKCR" Key="xyz\shell\open\command">
<RegistryValue Type="string" Value="&quot;[INSTALLFOLDER]xyz.exe&quot; &quot;%1&quot;" />
</RegistryKey>
</Component>
</DirectoryRef>
</Fragment>
</Wix>

最新文章

  1. ArcEngine奇怪异常:HRESULT:0x80040351
  2. 【从API学英语】-DriverManager
  3. Quartz.NET开源作业调度框架系列(三):IJobExecutionContext 参数传递
  4. ASP.Net MVC开发基础学习笔记(4):校验、AJAX与过滤器
  5. 输入与enter
  6. Minimum Path Sum——LeetCode
  7. [置顶] ubuntu12.04下编译opencv程序
  8. Robot Framework自动化测试(一)---第一个脚本(转)
  9. 在IE6里面当元素浮动后再设置margin那么就会产生双倍边距
  10. 20个JS正则表达式
  11. 通过数据绑定控制WPF动画启动,WPF动画开始
  12. Spring Data Jpa 实现分页(Spring MVC+easyui)
  13. C# 生成 COM控件
  14. zzw原_环境变量导致date命令显示处理一例
  15. mysql学习笔记五 —— MHA
  16. 上传文件 input file
  17. 【设计模式】—— 解释器模式Interpret
  18. matlab操作(整理)
  19. Redis和MySQL数据一致中出现的几种情况
  20. 使用Hbuilder将自己app发布到App Store(一)

热门文章

  1. spring-boot 打包成 war包发布
  2. ionic 上拉加载问题(分页)
  3. 2017 Multi-University Training Contest - Team 2——HDU6050 Funny Function
  4. 【Python数据挖掘】回归模型与应用
  5. php和jsCOOKIE实现前端交互
  6. java generic super, extend
  7. 3.2 - FTP文件上传下载
  8. SpringBoot 配置文件 YML/Profile
  9. 设计模式C++实现——适配器模式
  10. vs开发nodejs api文档生成神器-apidoc