Login to participate
Endpoint Management & Virtualization DownloadsRSS

SendToLayer 1.3 (beyond Nirvana)

toralf's picture

Capture an executable to a new SVS layer with only 3 mouse clicks. Simple, elegant, and efficient -- traits we all look for in a, er, system utility. [Updated to support drag-n-drop and autostart (see update history for a complete list).]

Select a program to be installed and choose to send it to a new SVS layer, all currently active layers will be deactivated (if possible), the capturing starts and at the end the previously active layers will be activated again. Hence a new layer is only 3 mouse clicks away. In the case that some layers are active 2 additional mouse clicks are needed. Isn't that simple? Nothing to worry about, quick and easy.

Why:

Since I download quite a lot of large and small programs from the Internet for testing, it always gave me trouble to install them, test them and uninstall them when they weren't worth worth keeping. Now with SVS I do not worry about this any more. They are gone in seconds -- without a trace.

But the process to capture the installation of a program was not automated enough for my needs. So I searched and found some apps/scripts, using the SendTo in the windows explorer, see further below. After testing, I decided to write my own utility; Thin, efficient and user friendly were the goals. Judge for yourself.

usage: ThisApp.exe <FullPathOfFileToCapture>

Where:

Place this app anywhere you like in the base of your system (not on a layer). To get the best out of it, place a shortcut to this app (a link file) in "C:\Documents and Settings\<UserName>\Send To" and name the shortcut to your own preferences. A suggestion for the shortcut name: "New SVS Layer"

How: Workflow of this app

It checks, if ...

  • user is admin (required by SVS)
  • file to be captured exists and is an executable (exe or msi)
  • SVSCMD exists in the path
  • some layers are activated

If some layers are activated it asks to deactivate all active layers automatically, otherwise it doesn't start capture process.
It then ...

  • checks if the file still exists, i.e. it is not on a layer
  • derives the new layer name from the selected file name: "<FileName> (via SendTo, <CurrentDateTime>)"
  • starts capture process for selected file to new layer via SVSCMD
  • waits for capture process to end
  • gives feedback (tool tip) that the installation process has been captured and mentions the new layer name
  • If there have been active layers deactivated, it asks if the previously active layers should again be activated automatically (Yes/No)

If anything doesn't work as expected the app will show a tool tip or message box to inform the user.

This app consists of only a single executable. It doesn't change the system nor has it dependencies, besides an installed SVS with SVSCMD available.

Then:

I hope this utility will lower the threshold for beginners to start with SVS and to automate and simplify the workflow to install a program to a layer.

Capturing programs can't be much simpler then this.

Tested on: WinXP Pro SP2 with SVS 2.1 Beta 1 on a local system only

Script language: AutoHotkey, Version 1.0.46.03, www.autohotkey.com

There are other apps/scripts, with the same purpose, e.g.

  • the app "SendTo SVS" by Thunder-man. It offers more options. But if you want to install a program quickly, it is less hassle (typing and clicking) with this app, since you are only asked for really needed information and the workflow should suite to most program installations.
  • the VBS-script "SendTo Scratch Layer.vbs" by tperkins. Unfortunately it crashes on non-executable files and uses a fixed layer name.

History of Changes

Version 1.3

  • gui supports drag and drop to add more files.
  • gui can be resized.
  • New button to remove a file.
  • "Start Automatically" flag can be set via checkbox.

Version 1.2 (aka Nirvana)

  • added command file (*.cmd) to be allowed for capturing. (thanks Jordan)
  • multiple selected files (exe,msi,bat,cmd) get captured via temporary batch file into single layer. (thanks rajat)
  • a gui askes for layer name and order of the files (only for multiple files).

Version 1.1

  • added batch file (*.bat) to be allowed for capturing (thanks rajat)

Version 1.0

  • initial release
License: AJSL
By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License
Support: User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.
erikw's picture

send to layer

This is a very useful way of creating layers, and using them.

The SvS adept will find it very helpful.

Thanxssss
Erik

Regards Erik www.DinamiQs.com Dinamiqs is the home of VirtualStorm (www.virtualstorm.org)

*************************************************************
If your issue has been solved, Please mark it as solved
******************

riva11's picture

Nice idea Toralf, it saves

Nice idea Toralf, it saves time in the installation and SVS layer creation.

Thanks and kind regards

mb773's picture

Perfect and simple, thanks

Perfect and simple, thanks for this tool.

MB

rajat's picture

.bat support

hi toralf,

I recently found out that though it's not very well known, SVS supports .bat files as well (besides .exe and .msi) as installation files.

As your tool rejects them, I suggest adding its support as well to the code, for multi-installation capture in a single layer.

Oh!!! I just thought of this!
how about when a user selects more than one .exe and .msi file and sends to your tool, your tool creates a temporary .bat file and uses it as installer! ..lazyboy's nirvana! :)

-rajat

toralf's picture

Thanks for Tip

Hi Rajat,
I knew we would become a great team again. :)

Thanks for the tip. I'll create an update soon.

As for your nirvana wishes: I'll look into it. Questions I have right away: 1) All files will be installed in a single layer, which name should be used? 2) In which order should the files get installed?

I guess there are better tools available here on the juice that can already do this.

Ciao
toralf

rajat's picture

Your Questions?!

toralf,

1) This should be easy... just picking the first off the list should do.

2) I honestly didn't think about this! But how about a listbox containing selected installables with up/down buttons to change order?

If the above seems outside the scope of your tool, I understand. Just .bat support can do for now! :)

Thanks

toralf's picture

Batch files are supported

Batch files are supported now.

I found the SVS multi install app by Starf0x. But I guess from what I know on your preferences, that this is not what you are looking for. Since I couldn't find another tool, I'll add it, with a GUI to specify the name and the order of the files.

Ciao
toralf

rajat's picture

Thanks

Thanks toralf! that was quick.

Jordan's picture

I use .bat and .cmd files

I use .bat and .cmd files for capturing test cases quite often (I like to do silent installs), and that lazy-boy's Nirvana like Rajat suggested would be awesome. I'd use it.

If a forum post solves your problem please flag is as the solution

toralf's picture

Nirvana is near

Ok, it's coming. I'll start today. Maybe on the weekend it can be released.

I didn't know about .cmd files. Do they work with SVSCMD directly too?

Ciao
toralf

Jordan's picture

Yep. I run them about

Yep. I run them about twice a week to test basic capture/import/export commands on new SVS builds.

If a forum post solves your problem please flag is as the solution

Jordan's picture

Wow that was quick.

Wow that was quick.

If a forum post solves your problem please flag is as the solution

knightnet's picture

Template?

Nice tool!

One of the things I do is to always start from a template that has my standard excludes in it, this ensures that I never forget to exclude TEMP, etc.

Is there any chance that this could be updated to include an optional template?

Regards,
Julian

Julian

toralf's picture

Nice Idea

Thanks knightnet,

It seems to be a good idea. But how do you use your template now? After you have used it, it is gone, isn't it?

Could you please describe how you do it now?

BTW: Since global excludes are coming soon, will they make your request obsolete?

Thanks
toralf

Ciao
toralf

olliebean's picture

Doesn't seem to do anything

Although I get the tooltip saying that the installation has been captured, in fact nothing has happened. Any ideas what I'm doing wrong? I've tried with the Send To method and with Drag and Drop.

toralf's picture

Reproduce?

Hi olliebean,

Sorry, I have no idea what went wrong. Can someone reproduce it? I can't.

Ciao
toralf

Ciao
toralf

olliebean's picture

Source?

Is there any chance you could make the AHK source available? Maybe I could figure out why it isn't working properly on my machine.

jjarmak's picture

Doesn't seem to do anything

I get the tooltip saying that the installation has been captured, in fact nothing has happened.

I've tried with the Send To method.

What path do you have your Windows directory? Might be that or possibly firewall related maybe?

I don't know as I'm having the same problem.