Solved

Prevent a Windows ICON from automatically updating

Posted on 2011-09-08
4
326 Views
Last Modified: 2012-05-12
I have an application I maintain for a company.  The users run the application from an icon on their desktops.

Today I updated the application.  It is an Access application split into a database backend and an accde front-end.  I updated the front-end today.  The accde resides on the server and is run from there.
It is for a small shop generally 2-3 users at a time not much contention.

Steps I did today
Downloaded the new version with a temporary name (Dev_App.accde)
Moved the existing version to another directory
Renamed the new version (Prod_App.accde)
Relinked the tables to the database
Ensure permissions were set correctly

Had a user test the new version.
They got an error.
I checked their icon and it was now pointing to the old version in the new directory which they didn't have permissions to.
I fixed the icon to point to the correct version and starting directory and they ran fine

Why did the icon update?
Can it be set to not update since this is the way we will manage changes in the future?
I used the above method since we have had issues in the past with permissions and I had to revert to the older version.


mlmcc
0
Comment
Question by:mlmcc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
marsilies earned 423 total points
ID: 36513363
The "icon" is a shortcut, that points to a target. In this situation, it's using the Windows Distributed Link Tracking client and server services in order to track the original target file when you move it.

http://www.sevenforums.com/network-sharing/126501-can-i-disable-distributed-link-tracking-client-service.html
http://support.microsoft.com/kb/312403
http://en.wikipedia.org/wiki/File_shortcut#Microsoft_Windows

One possible workaround would be to disable this service. However, that means shortcuts are more likely to break. Another option would be to change the steps you take:

Download the new version with the same name  (Prod_App.accde), but in a different directory (e.g. "Dev Folder").
Copy the existing version to another different directory (e.g. "Backup Folder")
Copy the new version to the original location, overwriting the old one.
Relink tables and ensure the permissions are set correctly.

Since the shortcut stays linked to the original file, and you overwrote it instead of moving it, the shortcut should still link to the new file.
0
 
LVL 100

Author Comment

by:mlmcc
ID: 36514129
I figured that would probably be the way to do it.  I just hadn't noticed that icons "self-updated" to follow the target.  I know other links don't like recent documents.  Or is that service only on servers and networked machines.

mlmcc
0
 
LVL 2

Expert Comment

by:nat_nz
ID: 36514854
right click the short cut, make read only
0
 
LVL 100

Author Comment

by:mlmcc
ID: 36584980
For future upgrades we will follow the recommendation to make a copy of the old rather than renaming it and do a direct replacement of the existing files

mlmcc
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question