Pin to start menu

Got a problem you cannot solve? Try here.
Post Reply
justminime
Posts: 21
Joined: Sun Dec 20, 2009 7:56 am

Pin to start menu

Post by justminime »

Huston weve get a problem...


When i choose to pin to start menu on windows xp and run the setup once everything works great...
When i run the setup again upgrade i get to see the shortcut and and an exe file.

you can see in the attached that their prperties is diffrent (sorry for the ugly arrows)
i made only the first short cut, the second appeared after reinstalling
you can reproduce it by building a program and choosing to pin it to start menu, run it, compile it again ( to create an update) and run it again.

How can i solve this?
Attachments
double icons
double icons
Untitled-1.jpg (238.67 KiB) Viewed 5282 times
CFConner
Posts: 85
Joined: Wed Jan 21, 2009 4:14 pm
Location: Syracuse, NY

Re: Pin to start menu

Post by CFConner »

You need to remove the shortcut on uninstall (upgrade) then allow the upgrade to put it back. For me, I have the "Previous version uninstallation" shows up when I upgrade and it removes everything properly then installs the update.

Perhaps you want to do a patch instead?

=-Chris
justminime
Posts: 21
Joined: Sun Dec 20, 2009 7:56 am

Re: Pin to start menu

Post by justminime »

Hi Chris

I made the simplest default setup, one pinned file .
all the default values include pr requisets uninstall (did not touch a thing) it asked to uninstall in order to upgrade and after uninstalling there was still an image of the icon in start menu... not leading to anything and not shown in any file.

strange but it is really easy to reproduce...
and i dont want to use patch... I prefer to know the user has all the latest files....

thanks for the reply

Erez
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Pin to start menu

Post by mills »

I've reproduced this. It appears that the problem is with (Un)Install MSI. Apply Uninstall appears to remove the pin properly.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Pin to start menu

Post by mills »

I found that these pinned shortcuts are being handled by registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Start Page

It turns out that pinning to start menu is not something that's supposed by Windows Installer (thus the problem appears when you run (Un)Install MSI), but it is integrated into Apply Changes.

You could possibly write a DLL that edits the registry to have the pin removed.
http://www.appdeploy.com/messageboards/ ... ey=&#21051
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Post Reply