开发者

custom action property: how to send a parameter?

开发者 https://www.devze.com 2023-03-19 18:28 出处:网络
I want to run an exe in custom actions. Already add the exe inside the custom actions. Now, how can I send a parameter \"-开发者_高级运维i\" inside the custom action property?What type of custom act

I want to run an exe in custom actions. Already add the exe inside the custom actions.

Now, how can I send a parameter "-开发者_高级运维i" inside the custom action property?


What type of custom action are you talking about?

In any case:

The function you use for invoking the exe will have a parameter to pass the Command-Line params.

For eg:

CreateProcess in Win32 has an argument for command-line params

LaunchAppAndWait in Installscript has an argument for command-line params


The Target column of CustomAction table contains command-line parameters. The actual way to put the parameters there depends on the tool you use to create the installer. E.g. in WiX it would be ExeCommand attribute.

http://wix.sourceforge.net/manual-wix2/wix_xsd_customaction.htm

For VS setup projects:

http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/

0

精彩评论

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

关注公众号