If you packaged an application using App-V 5 SP2 and you use folder redirection for AppData Roaming on a RDS server then you may get the following error when starting the application in seamless mode (e.g. through XenApp):
There are several causes that may bring to this error and the best way to start your troubleshooting is using the EventViewer (one of the causes is documented here). In fact, by enabling the Analytic and debug logs you will be able to get a big amount of information related to the App-V client activity:
There is a nice script that automatically enables or disables all App-V logs and it can be found here
In my specific case, I was streaming an App-V application to a Citrix XenApp 6.5 server and publishing it as a published application through XenApp. When starting the application I got the ‘The application failed to launch’ pop-up and the EventViewer got populated with the following two errors:
The application was not being able to access and create some important folders inside the %userprofile%/AppData/Roaming folder; furthermore, the application was able to work if AppData Roaming folder redirection was removed.
I eventually found out that this was due to the fact that the ‘Move the contentsof AppData(Roaming) to the new location’ option was disabled in the GPO section of the AppData(Roaming) folder redirection properties. The solution is quite simple and it consists in enabling the setting below:
With this settings enabled, the folders required by the streamed application are correctly created inside the %userprofile%/AppData/Roaming folder and the application is able to start and run without issues.