From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

To Stata's credit they have made it easy to install Stata. They provide an MSI that is happy being installed with the /qn switch and you can select the exact version of Stata to install. However there is no official way to license Stata. Whne you license Stata it creates a LICENSE.LIC file in it's directory, simply copying it on install seems to do the trick, although you will need to be careful with your licensing.

Select the package you need according to and drop it in the ADDLOCAL value.

<?xml version="1.0" encoding="UTF-8"?>
            name="Stata 13"
        <variable name="PKG_VERSION"     value="13.0" />
        <check type="uninstall" condition="version" path="Stata 13" version="%PKG_VERSION%" />
        <install cmd='msiexec /i %SOFTWARE%\stata\stata13\Stata13MSI.msi /qn ADDLOCAL=Ado,Core,StataIC64' />
        <install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\stata\STATA.LIC" "C:\Program Files (x86)\Stata13\"' />
        <upgrade include="install" />
        <remove cmd='' />