WIX自动生成GUID *? [英] WIX Autogenerate GUID *?

查看:538
本文介绍了WIX自动生成GUID *?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

比方说,我生成的产品ID我维克斯XML文件*。 。还为每个组件GUID我使用*

 <产品编号=*NAME =XXXLANGUAGE = 1033版本=1.0.0.0制造商=XXX的UpgradeCode =XXX> 



在幕后是*唯一的GUID每次我编译我的WIX安装旋转?比方说,我有1.0.0版本安装一台机器。然后我重新编译我的WIX安装到1.0.1版本。



当我去安装1.0.1如何WIX知道1.0.0已经安装,因此将删除所有文件/注册表项,并安装1.0.1 <? / p>

我应该使用*从GUID或者我应该有一个唯一的ID / GUID在我的维克斯XML配置?


解决方案

产品/ @ n =*生成一个新的GUID(即随机)。组件/ @的Guid =*的计算的保持,只要你的文件路径保持不变相同的GUID。


Let's say I generate my WIX XML file with a Product Id of *. Also for each Component GUID I use a *.

  <Product Id="*" Name="xxx" Language="1033" Version="1.0.0.0" Manufacturer="xxx" UpgradeCode="xxx">

Behind the scenes is the * spinning a unique GUID each time I compile my WIX Installer? Let's say I have version 1.0.0 installed a machine. Then I recompile my WIX Installer to version 1.0.1.

When I go to install 1.0.1 how does WIX know that 1.0.0 is already installed and thus will remove all files/registry entries and install 1.0.1?

Should I be using * from GUID or should I have a unique ID/GUID in my WIX XML configuration?

解决方案

Product/@Id="*" generates a new GUID (i.e., randomly). Component/@Guid="*" calculates a GUID that stays the same as long as your file path stays the same.

这篇关于WIX自动生成GUID *?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆