Search Results for

    Show / Hide Table of Contents

    preRun

    Defines a process which is executed before the main process.

    Parent Element: installTask or uninstallTask

    Example

    <preRun type="script" fileName="prerun.cmd"> 
        <arguments value="-File &quot;c:\test\test file.ext&quot;" /> 
        <successExitCodes> 
          <exitCode value="0" /> 
          <exitCode value="1" /> 
        </successExitCodes> 
    </preRun>
    

    Attributes

    Attribute Type Description Required Version
    type string type (command, script,vbs,powershell). X ≥1.0.0
    fileName string This attribute can contain variables X (type=script,vbs,powershell) ≥1.0.0
    command string X (type=command) X

    Elements

    Element Description Required
    arguments Defines additional arguments for PreRun process (script ,vbs,powershell).
    successExitCodes Defines valid success codes for PreRun process. Wenn kein successExitCode definiert ist, wir ExitCode = 0 als Success verwendet.
    Back to top