windows installer - How to define a CustomAction with a long command line in WIX? -
i have define custom action in wxs file:
<customaction execommand="long command line" filekey="xyz.exe" id="foo"/> and receive warning:
warning lght1076 : ice03: string overflow (greater length permitted in column); table: customaction, column: target, key(s):
what right solution define action long command line?
after many time have find solution. split command line multiple properties.
<customaction id="action.prop0" property="prop0" value="first part [installdir]"/> <customaction id="action.prop" property="prop" value="[prop0] second part"/> <customaction execommand="[prop]" filekey="service.exe" id="myaction"/> <installexecutesequence> <custom action="action.prop0" after="installfiles"/> <custom action="action.prop" after="action.prop0"/> <custom action="myaction" before="installfinalize"/> </installexecutesequence>
Comments
Post a Comment