This guide is for installing the iLok License Support Installer silently for use within CircleCI, it is split into two sections you need to generate a .iss file and the second is to use the file to silently install the software.
Generating the .iss file
You will need to re-run a windows job with SSH for the RDP step later on.
The iLok license support install software can be downloaded here.
To download this within a CircleCI job you can use the following command:
-run: Invoke-WebRequest -Uri https://installers.ilok.com/iloklicensemanager/LicenseSupportInstallerWin64.zip -OutFile C:\Users\circleci\License.zip
This will download the install to the location C:\Users\circleci\License.zip
Once this is complete you can use the following command to expand the .zip
- run: Expand-Archive -Path C:\Users\circleci\License.zip -DestinationPath C:\Users\circleci\
You will now have the expanded directory located at C:\Users\circleci\
At this point, you will need to connect to the windows machine using RDP using our guide linked here.
Once connected to the machine over RDP you will need to run the program using the -r argument on the installer .exe to generate the .iss file, you will require RDP as the installer requires the GUI to complete the install.
You can use the following command on a PowerShell window to start the installer.
& 'C:\Users\circleci\LicenseSupportInstallerWin64_v5.6.3_46ee731e\License Support Win64.exe' -r
You can also specify where to store the .iss file with the -f1 option (i.e. License Support Win64.exe -r -f1“C:\Temp\SilentInstall.iss”).
At this point, you should have a file called setup.iss located under C:\Windows or where you have specified if using the -f1 parameter.
You can copy and paste this file from the RDP session to your local machine by either dragging and dropping or using the copy-and-paste function.
You will need to upload this file to a location that is accessible by a CircleCI job for use on the silent install. We would recommend adding this to your VCS and using the special checkout step to pull this file. The second part of this guide will assume the file is accessible from the top level of your VCS.
The following config.yml will complete the silent install and each step is explained below
Invoke-WebRequest -Uri https://installers.ilok.com/iloklicensemanager/LicenseSupportInstallerWin64.zip -OutFile C:\Users\circleci\License.zip
Expand-Archive -Path C:\Users\circleci\License.zip -DestinationPath C:\Users\circleci\
& 'C:\Users\circleci\LicenseSupportInstallerWin64_v5.6.3_46ee731e\License Support Win64.exe' -s -f1“C:\Users\circleci\project\setup.iss”
The checkout step pulls down the contents from your VCS into the C:\Users\circleci\project\ folder in the example above the setup.iss file is located at the top level.
The Invoke-WebRequest and Expand-Archive commands are the same commands from the generating the .iss file section above.
The final line of the command section does the silent install by having the License Support installer and “.iss” file defined if your setup.iss that was generated is located in another location please change the final section to the full directory of the file.
It will run “License Support Win64.exe” using the -s switch along with pointing it to the “.iss” file on the command line which will silently install the software.