App-V 5.0 Demo – Application Shims

Posted on Updated on

This is the walk-through for demo #2 in my Microsoft Master webcast on App-V 5.0 scripting.  For the full webcast information, visit

This demo is on scripting the install of an application shim (for app compatibility) when an App-V package is published to a system.  For this example, I used an all time favorite software of mine … SMS Installer.

1) SMS Installer requires elevated rights in order to execute.  So if the user is a non-admin such as for my demos, they cannot use the software.  Below is the screen shot of how this gets blocked.  Even if your end users have elevated rights themselves, you may be able to use a shim to correct any UAC elevation prompts.  Additionally, you can see the “shield” on the shortcut.


2)  Create shim with the Application Compatibility Toolkit – for more info on this process of creating a shim, visit

  • SMSINS32.exe
  • Run As Invoker
  • ForceAdminAccess


3)  Add the shim into the package scripts


4)  Update the DeploymentConfig.xml file from the package to install the shim




/q "[{AppVPackageRoot}]\..\Scripts\shim.sdb"

<Wait RollbackOnError="true" Timeout="30"/>



5)  Add the new application into ConfigMgr and publish to user.  For more info on doing this process, see an example from

6)  Voila!  You can now see that the “shield” is no longer on the shortcut and that the application runs successfully!



3 thoughts on “App-V 5.0 Demo – Application Shims

    Playback of Microsoft Master App-V 5.0 | MS Tech BLOG said:
    February 16, 2014 at 2:21 pm

    […] App-V 5.0 Demo – Application Shims | t3chn1ck […]

    […] that I do for customers to install an application compatibility shim as per my blog post “App-V 5.0 Demo – Application Shims“.  With this scripting, it’s best for the package to be globally published (i.e. […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s