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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 01/05/2006 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
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.
Answered 01/06/2006 by: xythex
Orange Senior Belt

Please log in to comment
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.
Answered 01/06/2006 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
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.
Answered 01/06/2006 by: xythex
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity