/build/static/layout/Breadcrumb_cap_w.png

Need Package to Uninstall Shortcuts from User Profile

First, a little background information:

My department repackages software for a network that consists of approx. 2500 machines. We previously installed software to the machine and the shortcuts would go on the user's profile. We are moving away from that and just installing everything on the All User's profile. The problem we are running into is when we install an updated software version of something that a user previously had installed, their profile's shortcuts override the new All User's shortcuts.

Does anyone have a VB script that can be used as an MSI's Custom Action in an advertised shortcut that will remove old shortcuts everytime a user clicks on it?

Any help in scripting it or in where it should be in the install sequence would be greatly appreciated.

Thanks!

0 Comments   [ + ] Show comments

Answers (4)

Posted by: WiseUser 15 years ago
Fourth Degree Brown Belt
0
I don't believe that a CA is what you need since the users aren't presented with the right shortcuts in the first place.

What you need is a script which runs when the user logs in. It should do the following:

1) Search the AllUsers' start menu for shortcuts and place their names (and relative path) in an array.

2) Search the current users' start menu for shortcuts and check whether the name exists within the array - if so, delete the shortcut.
Posted by: xythex 15 years ago
Orange Senior Belt
0
Or write a script that checks every folder in Documents and Settings for said shortcuts and deletes them before you push out your new software. You should then be able to just push this out once per program as long (and its sounds like you do) you know what shortcuts you're looking for.
Posted by: WiseUser 15 years ago
Fourth Degree Brown Belt
0
ORIGINAL: xythex

Or write a script that checks every folder in Documents and Settings for said shortcuts and deletes them before you push out your new software. You should then be able to just push this out once per program as long (and its sounds like you do) you know what shortcuts you're looking for.


Unless they use roaming profiles.
Posted by: xythex 15 years ago
Orange Senior Belt
0
Then its even easier. Run your script against the network profiles and update the time on the ntuser.dat so that your changes are replicated next time their profiles sync.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ