Please reference the following article which provides details about silently renewing SAS 9.1/9.2/9.3/9.4 in a Windows 7 environment:
Please note that the process is the same for SAS 9.1/9.2/9.3/9.4 32Bit and 64Bit. The only difference is the path to the sasrenew executable. I will denote path differences in the sasrenew.exe path quick reference section of this post.
Creating the SAS Activation/Renewal Package (9.2 32Bit)
- Go to Software Library, Application Management, Packages.
- Select Create Package
- Package
- Package Name = SAS 9.2 32Bit Renewal (2014-2015)
- Description = I usually put the license expiration and a few details here.
- Manufacturer = SAS
- Language = English
- Version = 9.2
- Check This package contains source files
- Your source will be the sid_files folder of your SAS software depot which should contain you sid.txt license file.
- Next.
- Program Type
- Select Do not create a program. We will be creating 3 programs for this package in a bit.
- Next.
- Next
- Close
- Distribute the package to distribution point.
- Creating a program for the system profile folder (SAS versions < 9.4)
- Select the package you just created and choose create program.
- Program Type
- Select Standard program, Next.
- Standard Program
- Name = SAS system profile folder
- Command line = cmd.exe /c "mkdir %windir%\system32\config\systemprofile\Documents\"
- This directory is needed for sasrenew to work when installed under system account credentials. Please reference the SAS KB article referenced in the beginning for details. If you do not create this directory you have a few more options.
- Change your sasv9.cfg -SASUSER path to a location where system credentials have access.
- Create a command line task sequence that references this package and performs a run as with an administrative account that has rights to the -SASUSER path.
- Program can run = Whether or not a user is logged on
- Next.
- Requirements
- Estimated disk space = Unknown
- Maximum allowed run time = Unknown
- Next.
- Next
- Close
- Creating a program to copy the sid to the sasrenew directory on the endpoint.
- Select the package you just created and choose create program.
- Program Type
- Select Standard program, Next.
- Standard Program
- Name = SAS sid file copy
- Command line = xcopy ".\*" "C:\Program Files\SAS\SASFoundation\9.2(32-bit)\core\sasinst\sasrenew" /E /C /Y
- Program can run = Whether or not a user is logged on
- Next.
- Requirements
- Check Run another program first
- Package = SAS 9.2 32Bit Renewal (2014-2015)
- Program = SAS system profile folder
- Check Always run this program first
- Estimated disk space = Unknown
- Maximum allowed run time = Unknown
- Next.
- Next
- Close
- Creating a program to activate/renew SAS
- Select the package you just created and choose create program.
- Program Type
- Select Standard program, Next.
- Standard Program
- Name = SAS 9.2 32Bit Activation
- Command line = "C:\Program Files\SAS\SASFoundation\9.2(32-bit)\core\sasinst\sasrenew\sasrenew.exe" -s "datafile:C:\Program Files\SAS\SASFoundation\9.2(32-bit)\core\sasinst\sasrenew\sid.txt"
- Program can run = Whether or not a user is logged on
- Next.
- Requirements
- Check Run another program first
- Package = SAS 9.2 32Bit Renewal (2014-2015)
- Program = SAS sid file copy
- Check Always run this program first
- Estimated disk space = Unknown
- Maximum allowed run time = Unknown
- Next.
- Next
- Close
- Deploy the SAS 9.2 32Bit Activation program to your collection(s). There is no need to deploy the other programs, they will launch automatically when your main program sees the requirement to run the other two programs first.
Confirming SAS validation data and expiration
After you run this package on an endpoint you can confirm the SAS expiration by performing the following:
- Open SAS 9.2
- In the Editor type in the following
- proc setinit;
- alias;
- run;
- In the menu click submit (run icon)
- Validation data will appear in the log window
Sasrenew.exe path quick reference
- SAS 9.2 32Bit
- C:\Program Files\SAS\SASFoundation\9.2(32-bit)\core\sasinst\sasrenew
- SAS 9.2 64Bit
- C:\Program Files\SAS\SASFoundation\9.2\core\sasinst\sasrenew
- SAS 9.3 32Bit
- C:\Program Files\SASHome\x86\SASRenewalUtility\9.3
- SAS 9.3 64Bit
- C:\Program Files\SASHome\SASRenewalUtility\9.3
- SAS 9.4 32Bit
- C:\Program Files\SASHome\x86\SASRenewalUtility\9.4
- SAS 9.4 64Bit
- C:\Program Files\SASHome\SASRenewalUtility\9.4
No comments :
Post a Comment