Solved

Prevent a Windows ICON from automatically updating

Posted on 2011-09-08
4
322 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
  • 2
4 Comments
 
LVL 19

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now