~ John Behneman | Senior Support Escalation Engineer

imageHello everyone, John Behneman here again. I ran across an interesting issue the other day and thought I would mention it here in case any of you happened to see it.

The issue involved Microsoft Application Virtualization 5.0 (App-V v5) and a sequenced application that would generate an error when launched on a client, essentially saying that the executable could not be found. When we looked at the shortcut it pointed to this:

[{UserProgramFiles}\program directory\<programName.exe>

Obviously when a user would attempt to start the application it would fail to find the executable because [{UserProgramFiles} is not a proper environmental variable. The question is why this happens.

It turned out that the default Sequencer exclusion items were preventing the program assets from being captured during the install. In our example, we had an application that would install its assets to the users local appdata directory as reflected in the exclusion report generated when the 5.0 sequencer created the package:

One or more files were excluded from the package because they are located in excluded paths. Missing files can cause unexpected application failures.

The following files were excluded:
C:\Users\JohnB\AppData\Local
C:\Users\JohnB\AppData\Local\Programs
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc\TIPQA Launcher
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc\TIPQA Launcher\OpenSSL License.txt
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc\TIPQA Launcher\TIPQALauncher.exe
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc\TIPQA Launcher\TIPQALauncherX.ocx
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc\TIPQA Launcher\libeay32.dll
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc\TIPQA Launcher\npTIPQALauncher.dll
C:\Users\JohnB\AppData\Local\Programs\TIP Technologies, Inc\TIPQA Launcher\ssleay32.dll

In our example here, the executable for our application (TIPQALauncher.exe) was not captured due to the default App-V 5.0 sequencer exclusions. Since the sequencer has nothing to link to it defaults to creating the "[{UserProgramFiles}]\TIP Technologies, Inc\TIPQA Launcher\TIPQALauncher.exe" string for the short cut.

Resolution

If you see a similar issue with your app, use the exclusion report to determine which default exclusion item to remove prior to sequencing the application. The TIPQALauncher application in my example here requires deleting the [{Local AppData}] exclusion prior to sequencing but your app might be different.

As a side note, a correct shortcut example for TIPQALauncher was:

"%ALLUSERSPROFILE%\Microsoft\AppV\Client\Integration\DF9538AF-C75C-4765-A915-FB8A28F65F0D\Root\VFS\Local AppData\Programs\TIP Technologies, Inc\TIPQA Launcher\TIPQALauncher.exe"

References

Creating and Managing App-V 5.0 Virtualized Applications: http://technet.microsoft.com/en-us/library/jj713438.aspx

John Behneman | Senior Support Escalation Engineer | Microsoft GBS Management and Security Division

Get the latest System Center news on Facebook and Twitter:

clip_image001 clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms- identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/