1

I have n wix installer for a webproject (asp.net). This installer relies on msdeploy, so my website content is wrapped up in a zip file and this file is used for installing at the target. I'd like to include a TXT in the instalation directory, but I can't add this file into the web project solution.

Any idea of how to achieve that?

4

1 回答 1

1

您可以创建自定义操作来为您完成这项工作。

试试看:

 <CustomAction Id="ConfigCommand" Property="Cmd" Value="[SystemFolder]cmd.exe"/>
 <CustomAction Id="YourActionName" Return="check" Property="Cmd" ExeCommand="/c copy [#README.txt] [INSTALLDIR]\README.txt "  />

 <InstallExecuteSequence>
  .....
  <Custom Action="ConfigCommand" After="SomeActionBefore"></Custom>
  <Custom Action="YourActionName" After="ConfigCommand"></Custom>
 </InstallExecuteSequence> 
于 2013-09-23T22:35:15.103 回答