AppV Debugging

Services
e.g. AutoCad needing FLEXnet licensing service.

Services the app need may need [subinacl.exe] to modify the service permissions for 'Everyone' to be be able to start/stop etc INSIDE the packaged app. [This adds security registry keys to the service]. (Subinacl.exe is part of the [Windows Server 2003 resource kit].)

subinacl.exe /service "Flexnet licensing service" /grant=Everyone=F

where "Flexnet licensing service" represents the full 'DISPLAY_NAME' of the service. Keep the quotes.

OSD tips
For most things this is a place to quickly alter things to adjust how it works during testing, registry entries etc want to be 'set' in the actual sequencing.

Entries you will need to alter occur under

Registry changes
To make registry changes, again under  element. You can use this to override keys back to defaults when application fires up.
 * Note - Don't double backslash paths for the Value, as you would find in a .reg registry file

Pre launch script
To launch a script at startup before the actual packaged application starts, set a  element under the  element.

In this example it is launching a command prompt. This is the most useful tool for debugging!

Post launch script
To launch a script at shutdown similarily set a  element under the  element.

In this examples its stopping a service.

Child process terminate
Sometimes you need to terminate child processes, I lost my hdd with any examples on :(

The  XML Element can be added under the  element thus

Check path exists
(cmd /c = 

which is effectively same as

Disable virtualised side-by-side assemblies
Forces only using local side-by-side assemblies and not any ones in the virtualised package

Things that break


 * Programs creating symlinks, so the actual file isnt packaged.

=3rd party tools=

http://www.tmurgent.com/AppVirt/DeployNPublish.aspx

=Update Appv 4.6=

No longer need to alter the OSD, just get your actual app name with sftmime

SFTMIME QUERY OBJ:APP /SHORT

Then run sftray with the name

SFTTRAY /EXE cmd.exe /LAUNCH "The Raiser's Edge"

Win7 / 4.6 SP1

 * Disappearance of the Wow6432node key
 * Disappearance of the Classes/CLSID key
 * Regedit, renaming a key by only prefixing with hyphens (in USERS hive anyway) is ignored. e.g. AdobeSVG viewer, renaming the root /Adobe key /-Adobe has no effect.