<?xml version="1.0" encoding="UTF-8"?>
<optionsdefinition>
    <!-- Id of the option -->
    <id>msiapplicationopt</id>
    <!-- Name of the option (used for header) -->
    <name>9313</name>
    <!-- Linked reference id -->
    <refint>msiapplication</refint>
    <!-- Replace value on xml ? true / false -->
    <replace>true</replace>
    <!-- Form options-->
    <formoption>
        <!-- 
            A formblock is constitued of the following values : 
            - id : id used in the form
            - label : pretty name
            - mandatory : is required true / false ?
            - type : (code / text / textarea / select / hidden / file)
            - disabled : true / false
            - defautlvalue : defautl value upon form loading
            - description : helping hint
            - specialcharallowed : Are special chars allowed ?
        -->
        <formblock>
            <id>FORMTYPE</id>
            <label/>
            <mandatory/>
            <type>hidden</type>
            <disabled>false</disabled>
            <defaultvalue>msiapplicationopt</defaultvalue>
            <specialcharallowed>false</specialcharallowed>
        </formblock>
        <formblock>
            <id>NAME</id>
            <label>1037</label>
            <mandatory>required</mandatory>
            <type>text</type>
            <disabled>false</disabled>
            <defaultvalue/>
            <specialcharallowed>false</specialcharallowed>
            <javascript>onkeyup="verifPackageName(this);"</javascript>
        </formblock>
        <formblock>
            <id>DESCRIPTION</id>
            <label>53</label>
            <mandatory>required</mandatory>
            <type>text</type>
            <disabled>false</disabled>
            <defaultvalue/>
            <specialcharallowed>true</specialcharallowed>
        </formblock>
        <formblock>
            <id>additionalfiles</id>
            <label>9341</label>
            <mandatory>required</mandatory>
            <type>file</type>
            <disabled>false</disabled>
            <defaultvalue/>
            <specialcharallowed>false</specialcharallowed>
        </formblock>
        <formblock>
            <id>arguments</id>
            <label>9347</label>
            <mandatory></mandatory>
            <type>text</type>
            <disabled>false</disabled>
            <defaultvalue/>
            <specialcharallowed>false</specialcharallowed>
        </formblock>
    </formoption>
    <!-- Package builder -->
    <packagebuilder>
        <!-- 
            The package builder will create the archive necessary for deployment :
            - codeasfile : will get code formblock content and put it in a file
            - filesinarchive : will get file typed form block and put it in the final archive
        -->
        <filesinarchive>
            <!-- Target formblock id-->
            <targetid>additionalfiles</targetid>
            <replacename>application.msi</replacename>
            <!-- Force a specific file name in ouput, no action performed if empty -->
            <filename/>
        </filesinarchive>
    </packagebuilder>
    <!-- Package definition -->
    <packagedefinition>
        <!--
            Package definition will create the info file containing the instructions needed for deployment
            variables from formoptions can be used with :formblockid 
        -->
        <!-- Priority -->
        <PRI>5</PRI>
        <!-- Action (EXECUTE / LAUNCH / STORE) -->
        <ACT>EXECUTE</ACT>
        <!-- PROCOTOL used either HTTP or HTTPS-->
        <PROTO>:PROTO:</PROTO>
        <!-- File command -->
        <COMMAND>msiexec /i application.msi :arguments:</COMMAND> 
        <!-- Notify user -->
        <NOTIFY_USER>0</NOTIFY_USER>
        <!-- Notify text -->
        <NOTIFY_TEXT/>
        <!-- Notify popup countdown -->
        <NOTIFY_COUNTDOWN/>
        <!-- Can user abort -->
        <NOTIFY_CAN_ABORT>0</NOTIFY_CAN_ABORT>
        <!-- Can user delay -->
        <NOTIFY_CAN_DELAY>0</NOTIFY_CAN_DELAY>
        <!-- Need finish action on deployment -->
        <NEED_DONE_ACTION>0</NEED_DONE_ACTION>
        <!-- End deployment popup -->
        <NEED_DONE_ACTION_TEXT/>
    </packagedefinition>
</optionsdefinition>