How to deploy SoftGrid MSI’s under Limited User context
A downside to the MSI deployment model is that it needs Administrator privileges to install, not so much for the SoftGrid part (i.e. adding and loading the application) but for the MSI part. In this post I will explain how to get the MSI to install / uninstall to work under Limited User context and to make it suitable for CD/DVD deployment for example.
Disclaimer: only use this post for test purposes, not for production environment.
For this post I used an MSI generated by the Microsoft Application Virtualization Sequencer version 4.5.0.606
Step 1. Removing the Launch Condition
If you run the MSI with Limited User privileges it will result in an error stating “You must be an administrator to install application”. This error has nothing to do with the MSI actually executing operations that require this. It’s the result of a launch condition in the MSI which just checks it.
After removing the Privileged launch condition the MSI launches and you can click through the setup screens. However you will receive the error: “You do not have sufficient privileges to complete this installation for all users. Log on as Administrator and complete the installation”.

By default the MSI installs the package for all the users on the machine provided the user has administrative privileges.
To change this behavior do the following:
Now the MSI installation finishes, but the SoftGrid application is actually not loaded. This is because it’s being added with the /GLOBAL parameter, which if present, indicates that the association applies to all users. The Limited User doens’t have privileges to do so.
Locate the CustomAction table in the MSI and edit the following CustomActions:
It’s also needed to give the user some additional permissions in the Microsoft Application Virtualization Client Console (sftcmc.msc):

