简体   繁体   English

我可以使用wix安装程序来运行几个自定义命令吗

[英]Can i use a wix installer to just run a couple of custom commands

I am working on a project where we need to repeat certain steps with powershell to deploy stuff. 我正在做一个项目,我们需要使用powershell重复某些步骤来部署内容。 i would like to create a process/install guidance (steps supported with UI) with WIX but after the msi has finished i have an entry in programs and features. 我想用WIX创建过程/安装指南(UI支持的步骤),但是在msi完成后,我在程序和功能中都有一个条目。 I just need it to execute the powershell and the end without registering in windows. 我只需要它来执行powershell和结束而无需在Windows中注册。 i might be using the wrong tooling or whatever, any suggestions are welcome. 我可能使用了错误的工具或其他工具,欢迎提出任何建议。

Definitely not recommended unless you want to track the deployment of these scripts on different systems by checking the entries in ARP (Add/Remove Programs), and even then it clogs up the Add/Remove view of your computers. 绝对不建议这样做,除非您要通过检查ARP(“添加/删除程序”)中的条目来跟踪这些脚本在不同系统上的部署,即使这样,它也会阻塞计算机的“添加/删除”视图。 Most system administrators hate this approach, it is better to just write to your own registry key and read it back from every machine. 大多数系统管理员都讨厌这种方法,最好只写自己的注册表项,然后从每台计算机上读回。

What are the scripts doing? 脚本在做什么? Are you actually installing files. 您是否正在实际安装文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM