Public Attributes | |
string | Id |
string | Directory |
string | CommandLine |
string | ErrorMessage |
integer | ReturnCode |
YesNoType | ContinueOnError |
YesNoType | ExecuteOnInstall |
YesNoType | ExecuteOnUnInstall |
YesNoType | ExecuteOnRollback |
May be nested under Component. The extension simplifies authoring MSI packages that need semi-silent command-line execute behavior. Execute will run any number of commands after InstallFiles, while ScheduleExecute lets you specify the runtime behavior and additional runtime conditions just like for any regular custom action.
An optional condition that combines with options may be specified.
<Component Id="SystemToolsMsiComponent" Guid="ca70ba08-0c57-4fa2-b6c1-57a00123e391"> <File Id="SystemToolsMsi_wxs" Name="SystemToolsMsi.wxs" Source="SystemToolsMsi.wxs" /> <AppSecInc:Execute Id="SystemToolsMsi_wxs_copy" CommandLine="cmd.exe /C copy SystemToolsMsi.wxs SystemToolsMsi_Copy.wxs /y" ErrorMessage="Failed to copy file." ExecuteOnInstall="yes" ContinueOnError="yes" /> <AppSecInc:Execute Id="SystemToolsMsi_wxs_delete" CommandLine="cmd.exe /C del SystemToolsMsi_Copy.wxs" ErrorMessage="Failed to delete file." ExecuteOnUnInstall="yes" ContinueOnError="yes" /> </Component>
Command-line to execute.
Continue on error.
Optional directory in which to execute the command.
Optional error message to display instead of a raw error.
Execute command at install time.
Execute command at rollback time.
Execute command at uninstall time.
Identifier for the execute statement (primary key).
Optional return code that indicates success of the process, defaults to zero.
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |