我有一个webproject (asp.net)的wix安装程序。这个安装程序依赖于msdeploy,所以我的网站内容被包装在一个zip文件中,这个文件用于在目标处安装。我想在分期付款目录中包含一个TXT,但是我不能将这个文件添加到web项目解决方案中。
你知道怎么做到这一点吗?
发布于 2013-09-23 22:35:15
您可以创建一个自定义操作来为您完成该工作。
试一试:
<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> https://stackoverflow.com/questions/18967245
复制相似问题