开发者

Execute Command Line In WiX Script?

开发者 https://www.devze.com 2022-12-21 09:15 出处:网络
How can I execute a command line from w开发者_运维知识库ithin a WiX script? I want to dynamically generate a command line string and have it executed. I\'m not installing a file related to this.

How can I execute a command line from w开发者_运维知识库ithin a WiX script?

I want to dynamically generate a command line string and have it executed. I'm not installing a file related to this.

Using version 3.0.5419.


What you probably want is something like this (observing quotes where necessary in the command):

<CustomAction Id='ExecNotepad' Directory='INSTALLDIR' Execute='immediate' 

ExeCommand='[SystemFolder]notepad.exe &quot;[SOMEFILE]&quot;' Return='ignore'/>

The ExeCommand is where you want to put your command. Here I have notepad launching with a file. Some of the attributes will be different, depending on what your command does - particularly the Execute and Impersonate parameters. It would also be helpful to know what version of WiX you were using (the code above is v2).

0

精彩评论

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