[379103]: iss / mhive.xml.in Maximize Restore History

Download this file

mhive.xml.in    673 lines (671 with data), 32.4 kB

<project>
    <shortName>MediaEncodingCluster</shortName>
    <fullName>Media Encoding Cluster</fullName>
    <version>@MHIVE_VERSION@</version>
    <readmeFile>${mhive_src_dir}/README</readmeFile>
    <licenseFile>${mhive_src_dir}/LICENSE</licenseFile>
    <requestedExecutionLevel>asInvoker</requestedExecutionLevel>
    <preBuildActionList>
        <setInstallerVariable>
            <name>mhive_src_dir</name>
            <value>@CMAKE_SOURCE_DIR@</value>
        </setInstallerVariable>
        <setInstallerVariable>
            <name>mhive_build_dir</name>
            <value>@CMAKE_BINARY_DIR@</value>
        </setInstallerVariable>
        <setInstallerVariable>
            <name>mhive_lib_dir</name>
            <value>@CMAKE_SOURCE_DIR@/install/lib</value>
        </setInstallerVariable>
        <setInstallerVariable>
            <name>ffmpeg_dir</name>
            <value>@FFMPEG_DIR@</value>
        </setInstallerVariable>
        <setInstallerVariable>
            <name>mysql_dir</name>
            <value>@MYSQL_DIR@</value>
        </setInstallerVariable>
    </preBuildActionList>
    <readyToInstallActionList>
        <stopWindowsService>
            <abortOnError>0</abortOnError>
            <delay>15000</delay>
            <displayName>MHiveService</displayName>
            <serviceName>MHiveService</serviceName>
            <ruleList>
                <windowsServiceTest>
                    <condition>is_running</condition>
                    <service>MHiveService</service>
                </windowsServiceTest>
            </ruleList>
        </stopWindowsService>
    </readyToInstallActionList>
    <postInstallationActionList>
        <removeUnixService>
            <abortOnError>0</abortOnError>
            <customErrorMessage>no Service found to remove</customErrorMessage>
            <name>${product_shortname}</name>
            <progressText>remove Service</progressText>
            <showMessageOnError>0</showMessageOnError>
            <onErrorActionList>
                <showWarning>
                    <text>Service could not been removed</text>
                </showWarning>
            </onErrorActionList>
        </removeUnixService>
        <!--<substitute>
            <files>${installdir}/bin/mectl</files>
            <progressText>setting MHIVE_BASE</progressText>
            <ruleEvaluationLogic>or</ruleEvaluationLogic>
            <type>regexp</type>
            <ruleList>
                <platformTest>
                    <type>linux</type>
                </platformTest>
                <platformTest>
                    <type>osx</type>
                </platformTest>
            </ruleList>
            <substitutionList>
                <substitution>
                    <pattern>@MHIVE_BASE@</pattern>
                    <value>${installdir}</value>
                </substitution>
            </substitutionList>
        </substitute>-->
        <substitute>
            <files>${installdir}/res/logging.properties</files>
            <progressText>setting MHIVE_BASE</progressText>
            <ruleEvaluationLogic>or</ruleEvaluationLogic>
            <type>regexp</type>
            <substitutionList>
                <substitution>
                    <pattern>@MHIVE_BASE@</pattern>
                    <value>${installdir}</value>
                </substitution>
            </substitutionList>
        </substitute>
        <addUnixService>
            <description>Product description</description>
            <name>${product_shortname}</name>
            <program>${installdir}/bin/mectl</program>
            <progressText>installing System Service</progressText>
            <run>0</run>
            <onErrorActionList>
                <showWarning>
                    <text>Service could not be installed</text>
                </showWarning>
            </onErrorActionList>
            <ruleList>
                <compareText>
                    <logic>equals</logic>
                    <text>${install_service}</text>
                    <value>1</value>
                </compareText>
            </ruleList>
        </addUnixService>
        <deleteWindowsService>
            <abortOnError>0</abortOnError>
            <displayName>MHiveService</displayName>
            <progressText>removing previous Service Installation</progressText>
            <serviceName>MHiveService</serviceName>
            <ruleList>
                <windowsServiceTest>
                    <condition>exists</condition>
                    <service>MHiveService</service>
                </windowsServiceTest>
            </ruleList>
        </deleteWindowsService>
        <createWindowsService>
            <abortOnError>0</abortOnError>
            <description>this is the mhive node controller</description>
            <displayName>MHiveService</displayName>
            <program>${installdir}/bin/mhiveservice.exe</program>
            <programArguments></programArguments>
            <progressText>install MHiveService</progressText>
            <run>0</run>
            <serviceName>MHiveService</serviceName>
            <startType>auto</startType>
            <ruleList>
                <compareText>
                    <logic>equals</logic>
                    <text>${install_service}</text>
                    <value>1</value>
                </compareText>
            </ruleList>
        </createWindowsService>
    </postInstallationActionList>
    <preUninstallationActionList>
        <stopWindowsService>
            <abortOnError>0</abortOnError>
            <delay>15000</delay>
            <displayName>MHiveService</displayName>
            <serviceName>MHiveService</serviceName>
            <ruleList>
                <windowsServiceTest>
                    <condition>is_running</condition>
                    <service>MHiveService</service>
                </windowsServiceTest>
            </ruleList>
        </stopWindowsService>
        <deleteWindowsService>
            <abortOnError>0</abortOnError>
            <displayName>MHiveService</displayName>
            <serviceName>MHiveService</serviceName>
            <ruleList>
                <windowsServiceTest>
                    <condition>exists</condition>
                    <service>MHiveService</service>
                </windowsServiceTest>
            </ruleList>
        </deleteWindowsService>
        <removeUnixService>
            <name>${product_shortname}</name>
            <onErrorActionList>
                <showWarning>
                    <text>Service could not been removed</text>
                </showWarning>
            </onErrorActionList>
        </removeUnixService>
    </preUninstallationActionList>
    <compressionAlgorithm>lzma</compressionAlgorithm>
    <enableRollback>1</enableRollback>
    <enableTimestamp>1</enableTimestamp>
    <outputDirectory>@CMAKE_SOURCE_DIR@/iss/output</outputDirectory>
    <vendor>CoderGrid</vendor>
    <componentList>
        <component>
            <name>default</name>
            <description>Default Component</description>
            <canBeEdited>1</canBeEdited>
            <requiredSize>1620</requiredSize>
            <selected>1</selected>
            <show>1</show>
            <desktopShortcutList>
                <shortcut>
                    <comment>starting the Media Encoding Cluster Server</comment>
                    <exec>${installdir}/bin/mhive -r</exec>
                    <icon></icon>
                    <name>start Server</name>
                    <path>${installdir}</path>
                    <platforms>all</platforms>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>1</runInTerminal>
                    <windowsExec>${installdir}/bin/mhive</windowsExec>
                    <windowsExecArgs>-r</windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </shortcut>
                <shortcut>
                    <comment>starting the Media Encoding Cluster Client</comment>
                    <exec>${installdir}/bin/mhive -i</exec>
                    <icon></icon>
                    <name>start Client</name>
                    <path>${installdir}</path>
                    <platforms>all</platforms>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>1</runInTerminal>
                    <windowsExec>${installdir}/bin/mhive</windowsExec>
                    <windowsExecArgs>-i</windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </shortcut>
                <linkShortcut>
                    <comment>open the Administration Interface in the Webbrowser</comment>
                    <icon></icon>
                    <name>Media Encoding Cluster Admin</name>
                    <platforms>all</platforms>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <url>http://localhost:8080</url>
                    <windowsIcon></windowsIcon>
                </linkShortcut>
            </desktopShortcutList>
            <folderList>
                <folder>
                    <description>Program Files</description>
                    <destination>${installdir}/bin</destination>
                    <name>programfiles</name>
                    <platforms>linux</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/mhive</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/mhiveservice</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/mectl</origin>
                        </distributionFile>
                    </distributionFileList>
                    <shortcutList>
                        <shortcut>
                            <comment>Uninstall</comment>
                            <exec>${installdir}/${uninstallerName}</exec>
                            <icon></icon>
                            <name>Uninstall ${product_fullname}</name>
                            <path>${installdir}</path>
                            <platforms>all</platforms>
                            <runAsAdmin>0</runAsAdmin>
                            <runInTerminal>0</runInTerminal>
                            <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
                            <windowsExecArgs></windowsExecArgs>
                            <windowsIcon></windowsIcon>
                            <windowsPath>${installdir}</windowsPath>
                        </shortcut>
                    </shortcutList>
                </folder>
                <folder>
                    <description>Program Libraries</description>
                    <destination>${installdir}/lib</destination>
                    <name>programlibraries</name>
                    <platforms>linux</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libswscale.so.2</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavcodec.so.53</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavdevice.so.53</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavformat.so.53</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavutil.so.51</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-io.so</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-signal.so</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-util.so</origin>
                        </distributionFile>
                    </distributionFileList>
                </folder>
                <folder>
                    <description>Program Files</description>
                    <destination>${installdir}/bin</destination>
                    <name>programfileswindows</name>
                    <platforms>windows</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/mhiveservice.exe</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/mhive.exe</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/swscale-2.dll</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/avcodec-53.dll</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/avdevice-53.dll</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/avformat-53.dll</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/avutil-51.dll</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-io.dll</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-signal.dll</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-util.dll</origin>
                        </distributionFile>
                    </distributionFileList>
                    <actionList>
                        <changePermissions permissions="0755" files="${installdir}/bin/*"/>
                    </actionList>
                </folder>
                <folder>
                    <description>Program Files</description>
                    <destination>${installdir}/bin</destination>
                    <name>programfilesosx</name>
                    <platforms>osx</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>${mhive_src_dir}/src/mectl</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/mhive</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/bin/mhiveservice</origin>
                        </distributionFile>
                    </distributionFileList>
                    <shortcutList>
                        <shortcut>
                            <comment>Text that will appear on Tooltip</comment>
                            <exec>${installdir}/${uninstallerName}</exec>
                            <icon></icon>
                            <name>Uninstall ${product_fullname}</name>
                            <path>${installdir}</path>
                            <platforms>all</platforms>
                            <runAsAdmin>0</runAsAdmin>
                            <runInTerminal>0</runInTerminal>
                            <windowsExec></windowsExec>
                            <windowsExecArgs></windowsExecArgs>
                            <windowsIcon></windowsIcon>
                            <windowsPath></windowsPath>
                        </shortcut>
                    </shortcutList>
                </folder>
                <folder>
                    <description>Mac OSX Library Files</description>
                    <destination>${installdir}/lib</destination>
                    <name>libraryfilesosx</name>
                    <platforms>osx</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libswscale.dylib</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavcodec.dylib</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavdevice.dylib</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavformat.dylib</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libavutil.dylib</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-io.dylib</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-signal.dylib</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/install/lib/libmhive-util.dylib</origin>
                        </distributionFile>
                    </distributionFileList>
                </folder>
                <folder>
                    <description>Resource Bundles</description>
                    <destination>${installdir}/res</destination>
                    <name>res</name>
                    <platforms>all</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>${mhive_src_dir}/res/messages.xml</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/res/profile_creator.xml</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>${mhive_src_dir}/res/setup.xml</origin>
                        </distributionFile>
                        <distributionDirectory>
                            <origin>${mhive_src_dir}/res/comp</origin>
                        </distributionDirectory>
                    </distributionFileList>
                </folder>
                <folder>
                    <description>Web Resources</description>
                    <destination>${installdir}</destination>
                    <name>web</name>
                    <platforms>all</platforms>
                    <distributionFileList>
                        <distributionDirectory>
                            <origin>${mhive_src_dir}/web</origin>
                        </distributionDirectory>
                    </distributionFileList>
                </folder>
                <folder>
                    <description>License</description>
                    <destination>${installdir}</destination>
                    <name>license</name>
                    <platforms>all</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>${mhive_src_dir}/LICENSE</origin>
                        </distributionFile>
                    </distributionFileList>
                </folder>
                <folder>
                    <description>Presets</description>
                    <destination>${installdir}</destination>
                    <name>presets</name>
                    <platforms>all</platforms>
                    <distributionFileList>
                        <distributionDirectory>
                            <origin>${mhive_src_dir}/presets</origin>
                        </distributionDirectory>
                    </distributionFileList>
                </folder>
            </folderList>
            <startMenuShortcutList>
                <startMenuShortcut>
                    <comment>Uninstall ${product_fullname}</comment>
                    <name>Uninstall ${product_fullname}</name>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
                    <windowsExecArgs></windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}/</windowsPath>
                </startMenuShortcut>
                <startMenuLinkShortcut>
                    <comment>open the Administration Interface in the Webbrowser</comment>
                    <name>Administration</name>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <url>http://localhost:8080/</url>
                    <windowsIcon></windowsIcon>
                </startMenuLinkShortcut>
                <startMenuShortcut>
                    <comment>starting the Media Encoding Cluster Server</comment>
                    <name>start Server</name>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}/bin/mhive</windowsExec>
                    <windowsExecArgs>-r</windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </startMenuShortcut>
                <startMenuShortcut>
                    <comment>start the Media Encoding Cluster Client</comment>
                    <name>start Client</name>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}/bin/mhive</windowsExec>
                    <windowsExecArgs>-i</windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </startMenuShortcut>
            </startMenuShortcutList>
        </component>
    </componentList>
    <parameterList>
        <directoryParameter>
            <name>installdir</name>
            <description>Installer.Parameter.installdir.description</description>
            <explanation>Installer.Parameter.installdir.explanation</explanation>
            <value>${platform_install_prefix}/${product_shortname}-${product_version}</value>
            <default>${platform_install_prefix}/${product_shortname}-${product_version}</default>
            <allowEmptyValue>0</allowEmptyValue>
            <ask>yes</ask>
            <cliOptionName>prefix</cliOptionName>
            <mustBeWritable>yes</mustBeWritable>
            <mustExist>0</mustExist>
            <width>30</width>
        </directoryParameter>
        <parameterGroup>
            <name>Installation_type</name>
            <title>Install Client or Server instance</title>
            <explanation>how should this node act as?</explanation>
            <value></value>
            <default></default>
            <ask>0</ask>
            <parameterList>
                <choiceParameter>
                    <name>mhive_mode</name>
                    <title>run as server</title>
                    <description></description>
                    <explanation></explanation>
                    <value></value>
                    <default></default>
                    <allowEmptyValue>1</allowEmptyValue>
                    <displayType>radiobuttons</displayType>
                    <width>30</width>
                    <optionList>
                        <option>
                            <description>this will install the Software as Server</description>
                            <image></image>
                            <text>install as Server instance</text>
                            <value>server</value>
                        </option>
                        <option>
                            <description>this will install the Software as Client</description>
                            <image></image>
                            <text>install as Client instance</text>
                            <value>client</value>
                        </option>
                    </optionList>
                </choiceParameter>
                <booleanParameter>
                    <name>install_service</name>
                    <description>install Service</description>
                    <explanation>this starts the Programm as Service in the background when the System starts, to install as Service you must be a privileged User, on Unix is this root</explanation>
                    <value>yes</value>
                    <default>no</default>
                    <displayStyle>checkbox-left</displayStyle>
                    <ruleList>
                        <compareText>
                            <logic>equals</logic>
                            <text>${installer_root_install}</text>
                            <value>1</value>
                        </compareText>
                    </ruleList>
                </booleanParameter>
            </parameterList>
        </parameterGroup>
        <parameterGroup>
            <name>server_mode</name>
            <title>install Server instance</title>
            <explanation></explanation>
            <value></value>
            <default></default>
            <ask>0</ask>
            <parameterList>
                <stringParameter>
                    <name>mhive_port</name>
                    <title>Mhive Port Number</title>
                    <description>MHive Port number</description>
                    <explanation>Type in the port number on which the server and the clients are communicating.</explanation>
                    <value>20200</value>
                    <default>20200</default>
                    <allowEmptyValue>0</allowEmptyValue>
                    <width>30</width>
                </stringParameter>
                <stringParameter>
                    <name>web_port</name>
                    <title>Web Port Number</title>
                    <description>Web Admin Port number</description>
                    <explanation>Type in the port number on which on which you will access the Web Administration Interface.</explanation>
                    <value>8080</value>
                    <default>8080</default>
                    <allowEmptyValue>1</allowEmptyValue>
                    <width>30</width>
                </stringParameter>
                <directoryParameter>
                    <name>tmp_directory</name>
                    <description>Temporary Directory</description>
                    <explanation>Select a directory in which the encoded chunks can be temporary saved until they will be exported to the Files.</explanation>
                    <value>${installdir}/tmp</value>
                    <default>${installdir}/tmp</default>
                    <allowEmptyValue>0</allowEmptyValue>
                    <ask>0</ask>
                    <mustBeWritable>1</mustBeWritable>
                    <mustExist>0</mustExist>
                    <width>30</width>
                </directoryParameter>
            </parameterList>
            <ruleList>
                <compareText>
                    <logic>equals</logic>
                    <text>${mhive_mode}</text>
                    <value>server</value>
                </compareText>
            </ruleList>
        </parameterGroup>
        <parameterGroup>
            <name>client_mode</name>
            <title>install Client instance</title>
            <explanation></explanation>
            <value></value>
            <default></default>
            <ask>0</ask>
            <parameterList>
                <choiceParameter>
                    <name>use_node_discovery</name>
                    <description></description>
                    <explanation></explanation>
                    <value></value>
                    <default></default>
                    <allowEmptyValue>1</allowEmptyValue>
                    <displayType>radiobuttons</displayType>
                    <width>30</width>
                    <optionList>
                        <option>
                            <description>the Client node will use the Auto Node Discovery feature to find the first available server, the entered Host Address below will be ignored.</description>
                            <image></image>
                            <text>use Auto Node Discovery</text>
                            <value>yes</value>
                        </option>
                        <option>
                            <description>the Client Node will connect to the Server  Address entered below</description>
                            <image></image>
                            <text>use a specific Server</text>
                            <value>no</value>
                        </option>
                    </optionList>
                </choiceParameter>
                <stringParameter>
                    <name>host_name</name>
                    <description>Host Address</description>
                    <explanation>Enter the Host Name or IP address of the server to connect to.</explanation>
                    <value>localhost</value>
                    <default>localhost</default>
                    <allowEmptyValue>1</allowEmptyValue>
                    <width>30</width>
                </stringParameter>
                <stringParameter>
                    <name>host_port</name>
                    <description>Host Port number</description>
                    <explanation>enter the Port number from the MHive Server to connect to(default 20200)</explanation>
                    <value>20200</value>
                    <default>20200</default>
                    <allowEmptyValue>0</allowEmptyValue>
                    <width>30</width>
                </stringParameter>
            </parameterList>
            <ruleList>
                <compareText>
                    <logic>equals</logic>
                    <text>${mhive_mode}</text>
                    <value>client</value>
                </compareText>
            </ruleList>
        </parameterGroup>
    </parameterList>
    <platformOptionsList>
        <platformOptions>
            <platform>linux</platform>
        </platformOptions>
    </platformOptionsList>
</project>