Orphaned Shortcuts
I got a package that I am assigning to users through Group Policy which then installs when they launch it from the shortcut in the Start Menu.
Problem is that when it falls out of scope for them, the package uninstalls fine but there are shortcuts left in the Start Menu with no icons and that do not work. I've had a look at the tables in the MSI and it appears that they should be removed.
Any ideas on how to make sure these get removed?
Thanks,
Doug.
Problem is that when it falls out of scope for them, the package uninstalls fine but there are shortcuts left in the Start Menu with no icons and that do not work. I've had a look at the tables in the MSI and it appears that they should be removed.
Any ideas on how to make sure these get removed?
Thanks,
Doug.
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
The Packeteer
18 years ago
Posted by:
dgdavis
18 years ago
The shortcuts get removed fine when I just do a normal install then remove using an Admin account. This makes me think that it's something to do with the fact it's advertised. There's also a roaming profile and redirected folders involved. It's not a permissions thing, as I can happily remove the shortcuts as the user after the uninstall. I've also checked in Application Data\Microsoft\Installer and there is no folder there containing the advertised shortcuts so it's not like it's being left behind there.
Any other ideas?
Any other ideas?
Posted by:
The Packeteer
18 years ago
Posted by:
nheim
18 years ago
Posted by:
dgdavis
18 years ago
OK. After some thought I worked out what was going wrong - it was all related to a forced reboot. Because I had to use REBOOT=Force to ensure a service was being installed, when the uninstall was occurring at user logon this was again kicking in thus preventing a full logon for the user and causing the shortcuts to be orphaned. Removing the forced reboot solved the shortcuts issue, and I have figured out how to deal with the service using the ServiceInstall and ServiceControl tables, but I now have a new niggling issue:-
The Start Menu shortcuts discussed previously look and work fine when advertised. Click on one, and the app installs. Go back into the Start Menu after the app has installed and all the shortcuts have lost their icons. A reboot fixes this, but I don't really need to reboot as the app works. Any reason for this lack of icons? If not, can someone tell me how to force a reboot at install time only & not during uninstall?
Thanks.
The Start Menu shortcuts discussed previously look and work fine when advertised. Click on one, and the app installs. Go back into the Start Menu after the app has installed and all the shortcuts have lost their icons. A reboot fixes this, but I don't really need to reboot as the app works. Any reason for this lack of icons? If not, can someone tell me how to force a reboot at install time only & not during uninstall?
Thanks.
Posted by:
nheim
18 years ago
Hi Doug,
good to see you work out your first problem.
To reboot at the end, set the condition of the 'ScheduleReboot' sequence in the 'InstallExecuteSequence' table to your needs.
But is this really necessary? Try to refresh the desktop icons, e.g. with this utility: http://camtech2000.net/Programs/refrsh10.zip
Maybe, a reboot won't be needed afterwards.
Regards, Nick
good to see you work out your first problem.
To reboot at the end, set the condition of the 'ScheduleReboot' sequence in the 'InstallExecuteSequence' table to your needs.
But is this really necessary? Try to refresh the desktop icons, e.g. with this utility: http://camtech2000.net/Programs/refrsh10.zip
Maybe, a reboot won't be needed afterwards.
Regards, Nick
Posted by:
dgdavis
18 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.