Public Attributes | List of all members
Wix::Extensions::SystemTools::Execute Class Reference

Public Attributes

string Id
 
string Directory
 
string CommandLine
 
string ErrorMessage
 
integer ReturnCode
 
YesNoType ContinueOnError
 
YesNoType ExecuteOnInstall
 
YesNoType ExecuteOnUnInstall
 
YesNoType ExecuteOnRollback
 

Detailed Description

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.

Example:
<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>

Member Data Documentation

string Wix::Extensions::SystemTools::Execute::CommandLine

Command-line to execute.

YesNoType Wix::Extensions::SystemTools::Execute::ContinueOnError

Continue on error.

string Wix::Extensions::SystemTools::Execute::Directory

Optional directory in which to execute the command.

string Wix::Extensions::SystemTools::Execute::ErrorMessage

Optional error message to display instead of a raw error.

YesNoType Wix::Extensions::SystemTools::Execute::ExecuteOnInstall

Execute command at install time.

YesNoType Wix::Extensions::SystemTools::Execute::ExecuteOnRollback

Execute command at rollback time.

YesNoType Wix::Extensions::SystemTools::Execute::ExecuteOnUnInstall

Execute command at uninstall time.

string Wix::Extensions::SystemTools::Execute::Id

Identifier for the execute statement (primary key).

integer Wix::Extensions::SystemTools::Execute::ReturnCode

Optional return code that indicates success of the process, defaults to zero.


The documentation for this class was generated from the following file:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com