Difference between revisions of "SAS license renewal"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Created page with "Deploying a new SAS license file (SID file) silently is described at http://support.sas.com/documentation/installcenter/en/ikwinri/64446/PDF/default/setinit.pdf] The SID file n...")
(No difference)

Revision as of 12:11, 17 April 2013

Deploying a new SAS license file (SID file) silently is described at http://support.sas.com/documentation/installcenter/en/ikwinri/64446/PDF/default/setinit.pdf]


The SID file name is in the format SAS93_order-number_site-number_host-platform.txt

You can deploy SID files by WPKG using this package:

  <package id="saslicense" name="SAS License file" reboot="false" priority="100" revision="%version%">
  <variable name="version" value="20130413" />
  <variable name="sasversion" value="9.3" />
  <variable name="sas_sidfile_x86" value="SAS93_order-number_site-number_host-platform.txt" />
  <variable name="sas_sidfile_x64" value="SAS93_order-number_site-number_host-platform_X64.txt" />
  <variable name="jmp_sidfile_x86" value="JMP902_order-number_site-number_host-platform.txt" />
  <variable name="jmp_sidfile_x64" value="JMP902_order-number_site-number_host-platform_X64.txt" />
  
  <!-- Create need systemprofile folder if it not exist --> 
  <install cmd='%COMSPEC% /c if not exist "%windir%\system32\config\systemprofile" mkdir "%windir%\system32\config\systemprofile"' />
  
  <install cmd='"%PROGRAMFILES%\SASHome\SASRenewalUtility\%sasversion%\SASRenew.exe" -s "datafile:%SOFTWARE%\sas\renewal\%sas_sidfile_x86%"' />
  <install cmd='"%PROGRAMFILES%\SASHome\SASRenewalUtility\%sasversion%\SASRenew.exe" -s "datafile:%SOFTWARE%\sas\renewal\%jmp_sidfile_x86%"' />

  <upgrade include="install" />
	
  <remove cmd="cmd /c echo off" >
    <exit code="any" />
  </remove>
  
 </package>

Deployment of JMP SID files not tested, but it should work too.