Difference between revisions of "SAS license renewal"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 17: Line 17:
 
   <variable name="jmp_sidfile_x64" value="JMP902_order-number_site-number_host-platform_X64.txt" />
 
   <variable name="jmp_sidfile_x64" value="JMP902_order-number_site-number_host-platform_X64.txt" />
 
    
 
    
   <!-- Create need systemprofile folder if it not exist -->  
+
   <!-- Create needed systemprofile folder if it not exists -->  
 
   <install cmd='%COMSPEC% /c if not exist "%windir%\system32\config\systemprofile" mkdir "%windir%\system32\config\systemprofile"' />
 
   <install cmd='%COMSPEC% /c if not exist "%windir%\system32\config\systemprofile" mkdir "%windir%\system32\config\systemprofile"' />
 
    
 
    

Revision as of 13:23, 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" />
  <!-- Current date as version number, just update if a new license file should be applied --> 
  <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 needed systemprofile folder if it not exists --> 
  <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.