How to Deploy Royal TS using SCCM Including License File

Few days ago one of my colleague asked me how to deploy Royal TS using SCCM. Since I already use Royal TS, I knew about the deployment. However he also mentioned that he wanted to deploy the license along with app using SCCM. I could remember my post on deploying winrar using SCCM. While deploying winrar, I had to ensure winrar is also licensed post deployment. That was easy because if you have the license file in same folder along with executable, winrar uses that license. However this was not the case with Royal TS app.

When you download Royal TS app, it’s an msi file. Deploying msi file using SCCM is very easy. But what about deploying license file along with Royal TS app using SCCM ?. I had to do some research about this and I came with this post.

As per this Royal TS article, the app can be licensed in two ways.

  1. Copy and deploy the code4ward.RoyalTS.Lic.V*.xml file to the %appdata%\code4ward using a log on script for each user.
  2. Copy and deploy the code4ward.RoyalTS.Lic.V*.xml file to the install directory of Royal TS (where RTS*App.exe/RoyalTS.exe is located).

If you look at point 1, the license file has to be copied over to %appdata%\code4ward folder. Now this is not easy because SCCM has to find out current user account. Then copy the file to appdata. This looked tedious to me and I believe this can be achieved using PowerShell.

The second method looked easy. To activate Royal TS, the xml file (license file) needs to be copied to folder where Royal TS executable is present. I thought maybe I could use a batch file to copy the license file to a folder. And yes that worked and we will use the same method in this post.

How to Deploy Royal TS using SCCM (Including License File)

Before we deploy Royal TS using SCCM, let’s look at some of the files. In the below screenshot, there are four files.

  • lic folder contains the actual license file. This file is in .xml format.
  • lic batch file contains the code to install Royal TS. It also contains the code to copy license file to destination computer.
  • Royal TS installer is the msi installer file.
  • Royal TS icon.

How to Deploy Royal TS using SCCM

The lic batch file contains Royal TS install command. The installer is a msi file and it’s easy to deploy. The next command copies the license file from sources folder to destination computer. The destination folder is C:\Program Files (x86)\code4ward.net\Royal TS V3\.

@echo off
msiexec /i "\\corpsccm.prajwal.local\Sources\Applications\RoyalTS\RoyalTSInstaller_3.03.61216.61216.msi" /q
copy "\\corpsccm.prajwal.local\Sources\Applications\RoyalTS\lic\*.*" "C:\Program Files (x86)\code4ward.net\Royal TS V3\" /y
exit

How to Deploy Royal TS using SCCM

The lic folder contains the actual license file. This file activates your Royal TS application. If you open the file with a notepad, you will see license info and other details. The file ends with V3 meaning I am using 3.x version of Royal TS.

How to Deploy Royal TS using SCCM

Deploy Royal TS using SCCM

To deploy Royal TS using SCCM, launch SCCM console. Right click Applications and click Create Application.

How to Deploy Royal TS using SCCM

Select Manually specify the application information. Click Next.

How to Deploy Royal TS using SCCM

Specify some information about the app and click Next.

How to Deploy Royal TS using SCCM

You can specify more info here, add an icon etc. Click Next.

How to Deploy Royal TS using SCCM

Deployment Types – Click Add button to add a new deployment type.

How to Deploy Royal TS using SCCM

Once again select Manually specify the deployment type information. Click Next.

How to Deploy Royal TS using SCCM

Specify Name and other details for this deployment type. Click Next.

How to Deploy Royal TS using SCCM

On the content menu, specify the commands as shown below. Click Next.

Installation Program - "\\corpsccm.prajwal.local\Sources\Applications\RoyalTS\lic.bat"
Uninstall Program - msiexec /x {129A5D3B-ADE2-4A33-A0E8-45696FFFD0F2} /q

To specify detection rule, click Add Clause. We will use product code to detect the presence of this app. Choose Setting Type as Windows Installer. Specify the product code. You can also click Browse button and select the msi file to get the code. Click OK.

Under User Experience, specify the desired settings. Set the installation program visibility to hidden. Because you don’t want user to see the installation progress. Click Next. On the rest of the pages, click Next.

Finally on Completion page, click Close.

Testing Royal TS deployment using SCCM

Our application is packaged, it’s time to test the deployment. Just a note here, distribute Royal TS app to distribution point(s). Next deploy the application to desired device collection.

On the client machine, launch software center and click on Applications. Locate Royal TS app and click Install. The installation occurs in the background. You can open appenforce.log file on client machine to monitor installation process.

How to Deploy Royal TS using SCCMAfter Royal TS is installed, launch the application. Click Help and open the license window. The license is successfully applied. This is because we not only deployed the app, we also copied over the license file to destination computer.

How to Deploy Royal TS using SCCM

6 COMMENTS

  1. You have a folder that says lic. But I do not know where to get this from as I do not see it. Found my license file though.

  2. Hi Prajwal, very neat deployment steps. Can we use this to deploy version 4.x ?. In our company we use the latest version of Royal TS.

LEAVE A REPLY

Please enter your comment!
Please enter your name here