开发者

How do I make a WiX installer force VS to install templates?

开发者 https://www.devze.com 2023-04-02 00:37 出处:网络
I\'ve got a WiX installer that is meant to update VS 2010 templates after installing them. The code I\'m using is as follows:

I've got a WiX installer that is meant to update VS 2010 templates after installing them. The code I'm using is as follows:

<CustomAction
      Id="InstallTemplates"
      ExeCommand="&quot;[VISUALSTUDIODIR]devenv.exe&quot; /installvstemplates"
      Directory="VISUALSTUDIODIR"
      Execute="commit"
      Return="check"
      HideTarget="no"
      Impersonate="no"/>


<InstallExecuteSequence>
  <Custom Action="InstallTemplates" Before="InstallFinalize"></Custom>
</InstallExecuteSequence>

In the above, VISUALSTUDIODIR refers to the correct location, and templates are correctl开发者_如何学JAVAy deployed. However, it seems that the command does not get called, so no templates are actually installed. What am I doing wrong?


WiX has built-in functionality to do that. Add a reference to WixVSExtension.dll and add the following authoring:

<CustomActionRef Id="VS2010InstallVSTemplates" />


Make sure that VISUALSTUDIODIR is an actual directory in your MSI package (it's saved in Directory table). This is a requirement for this type of custom action.

Also, try creating an installation log and search for your custom action to see what happens.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号