Making your Applications Portable with Novell ZAV 9 Lecture ZEN07 Novell Training Services ATT LIVE 2012 LAS VEGAS www.novell.com
Legal Notices Novell, Inc., makes no representations or warranties with respect to the contents or use of this documentation, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc., reserves the right to revise this publication and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. Further, Novell, Inc., makes no representations or warranties with respect to any software, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc., reserves the right to make changes to any and all parts of Novell software, at any time, without any obligation to notify any person or entity of such changes. Any products or technical information provided under this Agreement may be subject to U.S. export controls and the trade laws of other countries. You agree to comply with all export control regulations and to obtain any required licenses or classification to export, re-export or import deliverables. You agree not to export or re-export to entities on the current U.S. export exclusion lists or to any embargoed or terrorist countries as specified in the U.S. export laws. You agree to not use deliverables for prohibited nuclear, missile, or chemical biological weaponry end uses. See the Novell International Trade Services Web page (http://www.novell.com/info/exports/) for more information on exporting Novell software. Novell assumes no responsibility for your failure to obtain any necessary export approvals. Copyright 2012 Novell, Inc. All rights reserved. No part of this publication may be reproduced, photocopied, stored on a retrieval system, or transmitted without the express written consent of the publisher. Novell, Inc., has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed on the Novell Legal Patents Web page (http://www.novell.com/company/legal/patents/) and one or more additional patents or pending patent applications in the U.S. and in other countries. Novell, Inc. 404 Wyman Street, Suite 500 Waltham, MA 02451 U.S.A. www.novell.com Online Documentation: To access the latest online documentation for this and other Novell products, see the Novell Documentation Web page (http:// www.novell.com/documentation). Novell Trademarks For Novell trademarks, see the Novell Trademark and Service Mark list (http://www.novell.com/company/legal/trademarks/tmlist.html). Third-Party Materials All third-party trademarks are the property of their respective owners. 2
SpoonReg is a tool that provides a simple command-line interface for deploying virtual applications and managing the virtual desktop environment. Users and administrators can use SpoonReg to register virtual applications for a single user or, in the case of administrator, a group of users or devices. SpoonReg can be used to deploy a manage virtual applications and layers built using ZENworks Application Virtualization. After virtualizing an application with ZENworks Application Virtualization, it is often desirable to make the application Start Menu icons, shortcuts and file associations available on the users desktop. SpoonReg allows you to register virtual applications created with ZENworks Application Virtualization in the shell, creating all of the shell associations that would generally be created during a standard install process. Unlike performing an installation, however, registation and un-registration can be performed almost instantaneously. SpoonReg also provides the ability to create, reset and remove application sandboxes, virtal environement bubbles where the virtualized application resides. Sandbox management provices fine-granined control over application linking and intercommunication.
SpoonReg is a tool that provides a simple command-line interface for deploying virtual applications and managing the virtual desktop environment. Users and administrators can use SpoonReg to register virtual applications for a single user or, in the case of administrators, a group of users or devices. SpoonReg can be used to deploy and manage virtual applications and layers built using ZENworks Application Virtualization. After virtualizing an application with ZENworks Application Virtualization, it is often desirable to make the application Start Menu icons, shortcuts, and file associations available on the users' desktop. SpoonReg allows you to register Novell virtual applications in the shell, creating all of the shell associations that would generally be created during a standard install process. Unlike performing an installation, however, registration and un-registration can be performed instantaneously. SpoonReg also provides the ability to create, reset, and remove application sandboxesvirtual environment "bubbles" where the virtualized applications reside. Sandbox management provides fine-grained control over application linking and intercommunication. Registering virtual applications using SpoonReg SpoonReg provides a simple command-line interface for managing the virtual desktop environment. This section describes basic SpoonReg command-line syntax, including steps for registering, updating, and unregistering virtual applications.
Command-line syntax AppSpec An AppSpec is a path (relative or fully qualified) to a virtual executable or layer built with ZENworks Application Virtualization. SandboxSpec A SandboxSpec is the name or path of a virtual sandbox. Registering a virtual application To register an application, use the command: SpoonReg.exe AppSpec This command creates all Start Menu items, desktop shortcuts, and file associations associated with the virtual application executable. By default, registration will create a local cached copy of the virtual application executable and use the user's local profile as the sandbox location. Note: The sandbox location specified during the virtual application build is ignored when registering applications using the SpoonReg tool. Advanced registration options Command-line parameters can be used to control the caching behavior and sandbox where the virtual application should be registered: SpoonReg.exe[Options] AppSpec[@SandboxSpec] /nocache The virtual application executable will not be copied to the client machine. All shortcuts and file associations will point to the full path as given by AppSpec. SandboxSpec This parameter refers to the name and path to an existing sandbox. If this parameter is specified and a sandbox with that name exists, the application will be registered into that sandbox. (See the Sandbox management topic in this section for additional details.)
Updating registration settings Application registration settings can be changed by re-executing the registration command with the desired options: SpoonReg.exe[Option] AppSpec[@SandboxSpec] Updating SpoonReg Parameters /nocache Disable caching of the specified application (reverses the /cache setting). /remote Same as /nocache. /cache [move] Enable caching of the specified application (reverses the /nocache setting). The optional move flag deletes from the current location. /local [move] Same as /cache. /checkforupdates User will be prompted to update the application if updates are available (default behavior). /noupdatecheck User will not be prompted to update the application. /noupdate Application will not be updated (only valid in combination with /noupdatecheck). /autoupdate Application will be updated without prompting user (only valid in combination with /noupdatecheck). Unregistering a virtual application Unregistering a virtual application reverses the registration process, removing the virtual application, Start Menu icons, shortcuts, and file associations. To unregister a virtual application, use the following command:
SpoonReg.exe /unregisterappspec[@sandboxspec] It is also possible to unregister all applications with the single command: SpoonReg.exe /unregisterall
Virtual EXE s created with ZAV are portable by default. You can simply copy that application to a local drive, shared network resource, burn it to a DVD or copy it to a USB drive and execute it and the application will run. What is not portable by default is the Sandbox Location. You need to decide if you want the sandbox location to follow the application, like on a USB drive, or if you want the sandbox location written to the default @APPDATALOCAL@ directory. Depending on what your needs are for the application is going to determine where you should have the sandbox located. When Publishing to a USB Drive it is suggested that you set the sandbox location to @APPDIR@\Novell\SANDBOX\@TITLE@\@VERSION@. This will create the sandbox on the USB drive (regardless of the assigned drive letter) and then the sandbox will follow the application as you run the application from multiple machines.
The Publish to USB feature publishes virtual applications to USB storage devices. When the USB storage device is attached to a host system, the virtual application automatically registers the Setup information to the host shell environment. This information is automatically unregistered when the USB device is removed from the host system. Follow the steps below to deploy virtual applications on USB devices: 1. Open an existing virtual application configuration. 2. Attach a USB storage device to the host system. 3. Click Publish to USB, select the USB storage device, and click Publish. 4. After the virtual application is published to the USB storage device click OK. Follow the steps below to use virtual applications that are published to USB storage devices. 1. Attach the USB storage device to the host system (If prompted by AutoPlay, choose the XUsb.exe option. XUsb will then register the file associations and shortcuts associated with the virtual application.) 2. Remove the USB storage device to unregister the virtual application from the host system NOTE: If AutoPlay is disabled on the host system, open the USB storage device s contents and manually run XUsb.exe
When you publish an application to a USB drive several files are placed on that USB drive. Autorun.inf This file contains the instructions for Autoplay to run XUsb.exe when the USB drive is inserted. XUsb.exe XUsb.exe is similair to SpoonReg. It resgisters the applications contained in the default.xlcient file with the windows shell. This creates the Associations and shortcuts
default.xclient XML File Contains Intructions for the sandbox location and application registration in the windows shell. studiodependencies.xlayer Required file for XUsb.exe to run Sandbox Location of the Sandbox for the applications published to the USB drive. Located on the USB Drive in the Spoon\Sandbox directory. Applications Applications are published as SVM s on the USBdrive in the applications subdirectory