Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to deal with Shortcuts and Deleted Files

Updated: 29 Jul 2010 | 2 comments
Screenbert's picture
0 0 Votes
Login to vote

I recently created an SVS Layer that included a shortcut pointing to an executable inside my layer. There is nothing strange about this, but for the purpose of a demo (to our director) I wanted to show how a user could delete an entire directory and have it restored simply by resetting a layer.

This is where the fun began. You delete the directory and attempt to use the shortcut. It shouldn't work...right? Wrong. Microsoft Windows has a great little technology for when you try to launch a shortcut and the file it refers to is missing. Windows searches for another executable with the same name. It also deletes the old shortcut and creates a new one with the same name. This means the shortcut is no longer part of the SVS layer.

After deleting the folder that the shortcut originally pointed to, my shortcut now pointed to a folder called "c:\fslrdr". This is the SVS redirection area where there is an executable with the same name. Even after deactivating the layer or resetting it, the shortcut pointing to the redirection area is still there instead of the shortcut that points to the correct folder and executable.

To prevent this from happening, you can keep the redirect area hidden from users. Many administrators might even prefer this functionality.

To hide the redirect area, open regedit and go to HKLM\SYSTEM\Altiris\FSL and create a new DWORD value named HideRedirectAreas and set the data value to 1. You will have to reboot the computer for this to take effect.

This will likely be fixed in upcoming updates, but it still might be useful to be able to hide the redirect area from users.

Screenbert

Comments

thecoup's picture
09
Aug
2007
0 Votes 0
Login to vote

Even worse when you launch an app in a deactivated layer.

I noticed the same shortcut behavior. But, in my case windows fixed my shortcut after I deleted a layer... and application still launched!

The .exe remained in c:\fslrdr. How is this possible?

Unfortunately, before I deleted the layer, I launched that application while the layer was deactivated. The shortcut was available on my quick launch bar. Windows found it, and replaced my shortcut.

Making matters worse, this activity caused SVS to leave the exe behind when I later deleted the layer. But it did delete the uninstall file.

So now I've got an application in an odd location and registry keys I don't want. Oh well...

erikw's picture
09
Aug
2007
0 Votes 0
Login to vote

causes problems

This is indeed Microsoft behaviour.
The tip to add hide redirect areas is a good one, but it does not solve the whole issue. It is best to leafe all shortcuts in the layer, and do not attempt to create new shortcuts outside the layer. This is also why it is not alway's a good idea to create to much exclusions. Exclusions also creates this problem.
In company enviroments it is best to create applikations groups in AD, and to add the group with the appropiate users inside it.
Then set rights on the shortcut and on the appropiate fslrdr directory for that app.
When the app is deactivated, take away the rights.
In our environments i alway's search the directory's that belong to the software that is no longer used, and then i delete them. manually.

Regards
Erik
www.svs4u.nl

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
***********