FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
origin.xml 2.50 KiB
<?xml version="1.0" encoding="UTF-8"?>
<packages:packages xmlns:packages="http://www.wpkg.org/packages">
  <package id="origin" name="Origin" revision="%version%.1" priority="0" reboot="false">

    <variable name="year" value="2020" />
    <variable name="version" value="9.7" />
    <variable name="short_vers" value="97" />

    <variable name="origin_install_iss" value="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\origin\%year%\install.iss" />
    <variable name="origin_network_licensefile" value="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\origin\use_server.lic" />

    <check type="uninstall" condition="exists" path="Origin %year%"/>

    <install cmd='cmd /c "echo %origin_install_iss% not found &amp; exit 1" '>
       <condition>
          <check type="logical" condition="not">
              <check type="file" condition="exists" path="%origin_install_iss%" />
          </check>
       </condition>
    </install>

    <!-- N.B. the setup.iss is in %WPKGINSTITUTION%-config because it has serial numbers, licensing info etc. 
         But we keep uninstall.iss in the commonual %WPKGSOFTWARE% because it effectively just says "delete everything" -->
    <install cmd='%WPKGSOFTWARE%\origin\%year%\setup.exe /s /f1"%origin_install_iss%" /f2"%WPKGLOGDIR%\origin%short_vers%_install.log"' />

    <!-- https://www.originlab.com/doc/License/Multi-userDeployment -->
    <install cmd='cmd /c if not exist "%allusersprofile%\originlab\license\" mkdir "%allusersprofile%\originlab\license\"' />
    <install cmd='cmd /c copy /y "%origin_network_licensefile%" "%allusersprofile%\originlab\license\" '>
      <condition>
         <check type="file" condition="exists" path="%origin_network_licensefile%" />
      </condition>
    </install>

    <!-- try to remove old versions  -->
    <remove cmd='"%WPKGSOFTWARE%\origin\9.1\setup.exe" /s /f1"%WPKGSOFTWARE%\origin\9.1\uninstall.iss" /f2"%WPKGLOGDIR%\origin91-uninstall.log"'><exit code="-2147213312"/> <!-- not installed --></remove>
    <remove cmd='"%WPKGSOFTWARE%\origin\9.4\setup.exe" /s /f1"%WPKGSOFTWARE%\origin\9.4\uninstall.iss" /f2"%WPKGLOGDIR%\origin94_uninstall.log"'><exit code="-2147213312"/> <!-- not installed --></remove>

    <!-- finally remove this version. -->
    <remove cmd='"%WPKGSOFTWARE%\origin\%year%\setup.exe" /s /f1"%WPKGSOFTWARE%\origin\%year%\uninstall.iss" /f2"%WPKGLOGDIR%\origin%short_vers%-uninstall.log"'><exit code="-2147213312"/> <!-- not installed --></remove>

    <upgrade include="remove" />
    <upgrade include="install"/>

  </package>
</packages:packages>