Welcome to Symantec Connect.  Log in or register to participate.
Login to participate
Endpoint Management & Virtualization BlogsRSS

A Novel way to Group and Activate/Deactivate Layers

Thunder-man's picture

We found Thunder-man, a Deutsch speaking SVS fan with some great ideas, posting random tips in the support forums.

In this example of his brilliance, Thunder-man illustrates his way of both grouping layers and using scripts to activate and deactivate layers. Genießen Sie.

Here is a way to "Group Layers" and Activate / Deactivate.

Figure 1

Click to view.

First, right-click on the desktop, and make an SVS Program Folder Program for the Desktop:

Open the SVS Program folder, and make other Folders, e.g.:

Open Internet Folder

Make the Files Firefox Activate.bat and Firefox Deactivate.bat

Right click to create a new Text document

Rename the new file to Firefox Activate.bat

Also make a text documet for Firefox Deactivate.bat

Next, right click to edit Firefox Activate.bat

Right click to edit Firefox Deactivate.bat

You should have the Folder:

Programme SVS
...Grafik
...Internet
Firefox Activate.bat
Firefox Deactivate.bat
...Tools

Now you can drag and drop the SVS Program Folder to Start Programs (hold CTRL Key)

Lastly, we must work on the HKEY_LOCAL_MACHINE\SYSTEM\Altiris\FSL to hide / Firefox Activate.bat and Firefox Deactivate.bat when the Layer is activated or deactivated.

See "How to Launch an Application or Run a Script when a Layer's State Changes"

Make OnPostActivate (MULTI_SZ) and OnPostDeactivate (MULTI_SZ)

Open regedit (Start / Programs / execute)

HKEY_LOCAL_MACHINE\SYSTEM\Altiris\FSL\1 (replace 1 with the layer number - For me, it's 10)

Open OnPostActivate (MULTI_SZ)

Change the Pfad. Mine looks like this:

Next open OnPostDeactivate (MULTI_SZ)

attrib +h (is ro hide File)
attrib -h (...)

See this tip for using StartXplorer by Mike Lin. Also PathCopyEx is the simpliest way to copy the paths for Firefox Activate.bat and Firefox Deactivate.bat. I've used this program for several years.

Reminder: You must change the Pfad.

I plan to try these utilities to help implement this process without DOS:

Hide.exe
Cmdow
Thunder-man's picture

Tool "Bat To exe"

I found a Tool "Batch2Exe Converter" http://www.f2ko.de/English/b2e/index.php

This converts a *.bat to *.exe
With Icon.

So we can have e.g. Firefox Activate.exe and Firefox Deactivate.exe

Like this,

Sorry for my bad English…
SVSLoad.com

riva11's picture

Really many thanks

Really many thanks Thunder-man for this great link !
I don't remember how many times I tried to find a batch tool compiler.

PM

Thunder-man's picture

@riva11

Cool, which this contribution helped.

Greetings from Germany
Frank

Sorry for my bad English…
SVSLoad.com

olliebean's picture

A couple of further ideas

I do essentially the same thing, but with a couple of differences. Firstly, I use shortcuts rather than batch files. If you create a shortcut to SVSCmd.exe, you can edit its properties and add the required command line (for example, '"Firefox 1.5" A' to activate the Firefox layer) to the end of the target. The advantage of this is that you can change the icon to something appropriate. Also you can change the properties to make it run minimised, so you don't get the command window flashing up on screen.

The other difference is that I use the layer itself to hide/unhide the shortcuts. So, I'll move the Deactivate shortcut into the layer, so that it only shows up when the layer is activated; and I'll add a Delete entry to the layer for the Activate shortcut, so it disappears when the layer is activated.

Thunder-man's picture

Good idea

I had the problem not to be able to hide shortcuts. It in the Layer to pack is a good idea.

Shortcuts or batch?

I make now differently. With *.exe files, which via one *.ini file are steered.

The exe file is universal and reads the Layername from the *.ini file.
Now I do not have DOS box more.

To change icon has I unfortunately still no freeware found...

I uploaded the files. (Are not approved yet)

Sorry for my bad English…

Sorry for my bad English…
SVSLoad.com

richard's picture

... or do it the professional way

I agree that doing things with SVS layers from the start menu is a good idea.

If you would like to use shortcuts to import / activate SVS applications (and more...) in a corporate environment, please take a look at www.scense.nl

With Scense it is possible to centrally manage all your SVS Applications on all workstations and terminal servers.