Capturing Multiple Program Installations into a Single Layer
Support Pro Jesse Foster shares some incredibly useful layer creation tips in this article. Jesse documents five ways to capture multiple programs into a single Software Virtualization Solution (SVS) layer. It's a keeper.
There are many ways to capture multiple programs into a single Software Virtualization Solution (SVS) layer. The following may not be a complete list of every method possible but hopefully will provide enough information to create the multiple program layers you are looking for.
This article documents the following five methods:
- Global Capture option
- Single Program Capture option using cmd.exe
- Single Program Capture option using a batch file
- Single Program Capture option using a command file
- Update Existing Layer
The steps outlined assume a basic working knowledge of the Software Virtualization Solution Admin console and virtual software layer creation.
Global Capture option
For many, the most obvious method is to perform a Global capture. The downside to a Global capture is that all changes made in the registry and file system while in capture mode are captured to the layer, not just the files and registry settings pertaining to the program(s) you want to capture.
Procedure
In Software Virtualization Solution Admin:
- Click File > Create New Layer.
- Select Install application.
- Click Next.
- Type in a name for the layer.
- Click Next.
- Select Global capture.
- Click Next.
- Click Finish.
Capture mode will start and any file or registry changes will be captured to the layer.
- Run the installers for each of the programs you want to install.
- After all the program installations are complete, double-click the animated lightning icon in the system tray to exit capture mode.
Single Program Capture option using cmd.exe
By using cmd.exe (a.k.a. DOS command prompt) you can manually launch multiple installers one at a time and still benefit from the "clean" layer created using the SVS Single Program capture option.
Procedure
In Software Virtualization Solution Admin:
- Click File > Create New Layer.
- Select Install application.
- Click Next.
- Type in a name for the layer.
- Click Next.
- Select Single program capture.
- Under Program name type in (or browse to) the path for cmd.exe (for example C:\Windows\system32\cmd.exe).
- Click Next.
- Click Finish.
Capture mode will start and a command window will open. Anything done from this command window will be captured in to the layer.
- Start your installers from the command window and the programs will be captured to the layer.
Capture mode will end only when the command window and any child processes launched from this window or from your installers have exited. If capture mode does not end after the installation programs have completed and the command window is closed, check for and end any child process the program installers launched. For example, some installers execute a "quick launch" program and place an icon in the system tray.
Single Program Capture option using a batch file
By using a batch file you can capture multiple programs into a single layer using Single Program Capture without having to launch each installer manually from the command line.
Procedure
- Create a batch (.bat) file containing the command lines for launching each of the programs you want to capture to a single layer.
In Software Virtualization Solution Admin:
- Click File > Create New Layer.
- Select Install application.
- Click Next.
- Type in a name for the layer.
- Click Next.
- Select Single program capture.
- Under Program name type in the path for your batch file.
- Click Next.
- Click Finish.
Capture mode will start and your batch file will be launched. Capture mode will end after the batch file has been processed. If capture mode does not end after the batch file has completed, check for and end any child process the program installers launched. For example, some installers execute a "quick launch" program and place an icon in the system tray.
Single Program Capture option using a command file
By using a command file you can capture multiple programs into a single layer using Single Program Capture without having to launch each installer manually from the command line.
Procedure
- Create a command (.cmd) file containing the command lines for launching each of the programs you want to capture to a single layer.
In Software Virtualization Solution Admin:
- Click File > Create New Layer.
- Select Install application.
- Click Next.
- Type in a name for the layer.
- Click Next.
- Select Single program capture.
- Under Program name type in the path for your command file.
- Click Next.
- Click Finish.
Capture mode will start and your command file will be launched. Capture mode will end after the command file has been processed. If capture mode does not end after the command file has completed, check for and end any child process the program installers launched. For example, some installers execute a "quick launch" program and place an icon in the system tray.
Update Existing Layer
If you already have a layer created and configured the way you like but want to add additional applications, you can use the Update Existing Layer function.
Procedure
In Software Virtualization Solution Admin:
- Click File > Update Existing Layer.
- Select the layer you want to update from the list.
- Click Next.
- Select Single program capture.
- Under Program name browse to or type in the path for installer file you want to use.
- Click Next.
- Click Finish.
Capture mode will start and the program installer specified will be executed. Capture mode will end after the new program installer has finished.
If you want you can repeat the steps above or combine this method with the others described in order to add multiple programs to the existing layer.
Can you combine existing layers?
What if you already have multiple layers and you want to merge them into one layer? Is that possible?
Layer Merge
There's a rather lengthy post here that explains our plans around layer merge.
Scott Jones
Product Manager
Altiris, Inc.
In Theory
You could manually copy the files and registry settings from the redirect areas of one layer into the other. If you have conflicting files or registry keys, you would need to make a decision as to which to keep.
It would probably just be easier to reinstall the second program into the first layer using the Update Existing Layer function.
Another Method
It was not out when I wrote this article, but you can also use Program Launcher with Single Program Capture to add a GUI interface to capturing multiple programs to a single layer.
Find more information about this at the following link:
http://juice.altiris.com/download/165/program-laun...
Yet Another Method
If you have Wise Package Studio 7, I'm sure you know you can use it to create SVS layers.
Using WPS7 to create layers, in both Single Program Capture as well as Global capture, once you have started the capture, you can run as many installers as you like and they will all be captured to the same layer.
Question: Can I use this
Question: Can I use this way also to install program that needs an update to work?
I have my GPS navigator software that needs to be installed and then updated with the latest version to run without any issues.
Thanks
Paolo
Yes
These methods are perfect for what you are talking about.
Scripter's way of thinking.
This makes so much sense to me.
If you are the type of person which comes from the old school side of scripting. This would be the best way to create the layer.
Would you like to reply?
Login or Register to post your comment.