如何解决警告"◦值安装位置丢失"在Windows 7软件徽标工具包?

时间:2014-09-23 05:51:33

标签: wix wix3

您好我是第一次为exe .Report生成的警告进行认证。

    1. Clean, reversible, installation    

Test case: Write appropriate Add/Remove Program values: PASS WITH WARNINGS 
•
WARNING:  Applications are expected to create these registry entries DisplayName, InstallLocation, Publisher, UninstallString, VersionMajor*, and VersionMinor*. 
 This application did not create the following registry entries: 
◦Value InstallLocation missing or invalid for program My Service.

•
IMPACT IF NOT FIXED: A user might remove an application not only to free up disk space, but also to return the computer to its state prior to the application being installed. Failure to restore the machine to its original state is a poor user experience. Also applications that do not create the above registry entries will not be found by enterprise inventory tools, and may experience issues in OS migrations and or upgrades scenarios. Windows telemetry tools may not accurately report information about your application.  

•
HOW TO FIX: You can supply all of the information needed to configure Add/Remove Programs in Control Panel by setting the values of certain installer properties in your application's Windows Installer package. Setting these properties automatically writes the corresponding values into the registry. The latest information and best practices that illustrate how to do this can be found at these links 1 and 2.  



Test case: Do not force an immediate reboot during installation: PASS 



Test case: Do not force an immediate reboot during uninstallation: PASS 



Test case: Remove all non-shared files and folders: PASS 

如何通过wix文件解决这个问题?

在我的wix文件中,我正在为

创建条目

服务安装 创建和添加条目到ini文件 添加客户标记和代理ID的注册表项。

请帮帮我......

1 个答案:

答案 0 :(得分:1)

在基于MSI的安装中,您可以通过将ARPINSTALLLOCATION属性设置为实际的安装文件夹(在当然确定之后)在ARP条目中获得InstallLocation。

http://msdn.microsoft.com/en-us/library/aa367589(v=vs.85).aspx

并且底部有关于使用WiX进行设置的说明。