Page 1 of 1

Shortcut in Install Removes Existing Pinned Shortcut

Posted: Mon Dec 03, 2012 11:20 am
by Sheri_Steeves
Hello,

I have a shortcut to the Windows services applet in my install (services.msc).

What I am finding is that if I already have the Services applet pinned to my Windows 7 taskbar ( Control Panel - System and Security - Administrative Tools, right-click Services shortcut and select Pin to Taskbar), running my installer will remove the pinned shortcut.

How do I install a short cut in my Start Menu folder to the Services applet without removing the user-customized pinned shortcut.

Thanks,

Sheri

Re: Shortcut in Install Removes Existing Pinned Shortcut

Posted: Mon Dec 03, 2012 1:15 pm
by FrancescoT
Dear Sheri,

I'm supposing this happen when you unistall - reinstall your application with an update.

Unfortunately, doesn't exist a ready to use command for that.

I suppose that the only way you have to achieve this, it is to first obtain if the application is pinned and then, re-pin it again via shortcut command.
Sadly, I believe that the only method to obtain the actual pinned status parameter is through WIN API, for more info please refer to:
http://msdn.microsoft.com/en-us/library/dd378460(VS.85).aspx

Most of the data are stored in the registry under: "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\"
.. but it's not easily editable.

Hope this helps you.

Regards

Re: Shortcut in Install Removes Existing Pinned Shortcut

Posted: Fri Apr 12, 2013 2:44 am
by tofutim
Hi we just switched to Native and had a user complain about this happening. They had a number of pinned start menu items and the installer wiped them all out of the start menu. Can you advise? (We had to switch to the Native Engine because a user had a French Start Menu and we were getting an illegal character issue.)

Re: Shortcut in Install Removes Existing Pinned Shortcut

Posted: Fri Apr 12, 2013 9:32 am
by FrancescoT
Dear Tofutim,

during package removal, by design and even with Windows installer, any component used by the application is removed (including shortcuts).

(We had to switch to the Native Engine because a user had a French Start Menu and we were getting an illegal character issue.)

did you read my reply to your other post?

Regards.