在Wix安装过程中注册ole服务器exe [英] Register an ole server exe during wix installion

查看:76
本文介绍了在Wix安装过程中注册ole服务器exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<CustomAction Id="RegisterEXE"
                Directory="INSTALLDIR"
                  ExeCommand="&quot;[INSTALLDIR]MyApp.exe&quot; /Register"
                  Execute="immediate"
                  Return="ignore"                  
                 />

 <InstallExecuteSequence>
      <Custom Action='RegisterEXE' After='InstallFinalize' />
 </InstallExecuteSequence>

该exe应注册为ole服务器. 但它没有注册.

The exe should be registered as ole server. but it does not register.

推荐答案

CustomAction属性Impersonate的默认值为yes.您需要将其设置为no才能以提升的"权限(安装程序现在具有的权限)运行可执行文件. OLE Server注册需要更改HKCU和HKLM.

The CustomAction Attibute Impersonate has default value of yes. You need to set it to no to run the executable with Elevated permission (The permission which installer have now). OLE Server registration requires changes in HKCU and HKLM.

阅读Wix 文档

<CustomAction Id="RegisterEXE"
                  Directory="INSTALLDIR"
                  ExeCommand="&quot;[INSTALLDIR]TKW5.exe&quot; /Register"
                  Execute="deferred"
                  Return="ignore"  
                  Impersonate="no"
                 />

<InstallExecuteSequence>
      <Custom Action='RegisterEXE' After='InstallFiles' />
</InstallExecuteSequence>

这篇关于在Wix安装过程中注册ole服务器exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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