A.10. Chapter 9: Deploying Virtual Applications

Customize package behavior with OSD file scripting.

Customizing OSD files can greatly enhance a sequencing engineer's efficiency and effectiveness. Placing flags on a system for administrative purposes, setting an environmental variable, or even wiping out the user state upon application close can all be done with just a few lines of code.

Master It

You need to delete all hidden temp files that a virtual application creates in c:\myapp\temp\ each time the user shuts down an application.

Solution

<DEPENDENCY>
        <SCRIPT TIMING="POST" EVENT="SHUTDOWN" WAIT="TRUE" PROTECT="FALSE">
                <SCRIPTBODY>
                        DEL /AH /Q c:\\MYAPP\\TEMP\\*.* \n
                </SCRIPTBODY>
        </SCRIPT>
</DEPENDENCY>

Deploy a stand-alone MSI architecture ...

Get Mastering Microsoft® Virtualization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.