Month: July 2015
If an App-V package has scripts to perform an operation, the application install may fail and show a dialog box similar to the image below.
Checking the AppEnforce.log file will reveal the error as below.
Publish-AppvClientPackage : Application Virtualization Service failed to complete requested operation.
Operation attempted: Publish AppV Package.
Windows Error: 0x2E4 – The requested operation requires elevation
Error module: Embedded Scripting. Internal error detail: 7D401E30000002E4.
Please consult AppV Client Event Log for more details.
In this case the problem is caused because the application is targeting the user and cannot execute the necessary PowerShell commands to run the script which has been embedded in the App-V package. This particular scenario utilizes a demo 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. targeting the computer) and not user published.
Updated 7/16/2015: As pointed out in the comments, the actual problem/solution was found. Instead of using the PublishPackage element of the UserConfig.xml script, use the AddPackage element of the DeploymentConfig.xml script. In that way the PowerShell commands have the permissions to execute.
When it comes to setting up a good configuration for an App-V 5.0 SP2 (or later) sequencer, the items below are typically what I like to establish. This list may not be fully complete and could be added to over time. Optionally, if you have any recommendations, please feel free to leave a comment below!
- Added a file named “ccmsetup” (no file extension) in C:\Windows, which helps prevent the ConfigMgr client from being installed
- Turn off or disable: Windows Defender, Windows Update checks, Windows Firewall, Action Center notifications, restore points, auto restart on BSOD, highlight newly installed programs, and Windows indexing/search also needs to be turned off (disable the service “Windows Search”)
- Turn on or enable: remote desktop, set the display to “best performance”, add the “Run” box on the start menu, set IE to open with a blank page (and not MSN.com), set the system tray to show all icons, task manager to hide when minimized, desktop background to solid white color (makes for cleaner screen snips), and change the IE taskbar shortcut from the x64 app version to instead use the x86 app
- Install additional software KB2775511 (for Win7 SP1), WMF 4.0, KB2533623, Microsoft Office, the latest version of Hyper-V integration services, and the current supported version (in the business) of Internet Explorer*
- Install all Windows updates
- Ensure there was no random startup software either in the Run/RunOnce registry keys and the Startup folder
* Note that as of January 12, 2016, IE 11 will be the minimum supported browser version for Win7 and newer operating systems. So if you haven’t started planning yet, it’s a good idea to begin soon.