Packaging Intergraph Smart Licensing Client
Steps:
- Run Intergraph Smart Licensing Client installer and complete the installation process, selecting the desired options
- Prevent the application from starting automatically by deleting it from the Run registry key:
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "ISLClient" -Force
- Set the Intergraph Smart Licensing Client service to Manual:
Set-Service "Intergraph Smart Licensing Client" -StartupType Manual
- Remove the Microsoft SQL Server key from the Local Service registry hive:
Remove-Item -Path "REGISTRY::HKEY_USERS\S-1-5-19\SOFTWARE\Microsoft\Microsoft SQL Server" -Recurse -Force
- Save the package
- Create a post-activation Powershell script to perform the following:
- Set the Intergraph Smart Licensing Client service to run as Local System
- Start the Intergraph Smart Licensing Client service
- Launch the Intergraph Smart Licensing Client application
Start-Process "C:\Windows\System32\sc.exe" -Wait -WindowStyle Hidden -ArgumentList 'sc config "Intergraph Smart Licensing Client" obj="LOCALSYSTEM"'
Get-Service "Intergraph Smart Licensing Client" | Start-Service
Start-Process "C:\Program Files\Intergraph Smart Licensing\Client\ISLClient.exe"
- Add the post-activation script to the package and save it
- Publish and deploy the application to end users