Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Advertised Shortcut
 

Advertised Shortcut

Hi,

I have created an application that uses a setup project. I have created a new version that removes the old version and installs like it should. The problem is that when i launch the new version it access the install msi file. This is an issue if someone deletes the msi file after installing.I thought itmight have something to do with visual studio creating advertised shortcuts so I downloaded Orca and added the DISABLEADVTSHORTCUTS=1 row to the property table. The problem is that once I run the updated msi file the desktop and the start menu shortcuts just dissapear.

Thanks for any suggestions
morning developer  Thursday, July 30, 2009 9:09 PM

Hi morning,

Could you please provide the detail steps of setting the DISABLEADVTSHORTCUTS property? I created a same project and did not meet your issue. Please follow this link to check the steps:
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/ea16bb03-e6ad-4008-b3aa-4b92da24e67f.

You can get more information about DISABLEADVTSHORTCUTS from:
http://msdn.microsoft.com/en-us/library/aa368297(VS.85).aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Monday, August 03, 2009 12:39 PM
Hi Aland Li

I opened the msi file inorcathat is created by visual studio. I select the properties table on the left side and and a new row. I enterDISABLEADVTSHORTCUTS and 1 for the value. Then I save and run the msi file. When I do this no shortcuts are available. If i run this without theDISABLEADVTSHORTCUTS row the shortcuts appear.

Thanks
morning developer  Tuesday, August 04, 2009 11:01 PM

You can use google to search for other answers

Custom Search

More Threads

• Issue with call of RegFree native code COM object from a native mode DLL
• Can i use a Batch file in a Custom Action?
• assign socket permission to ntd winform
• Application settings are overrun after a click-once update
• Saving Local Files from my Program
• Unable to continue. The application is improperly formatted
• List of downloadable FileGroups
• Best way to register a DirectShow filter from .NET installer?
• Installer to publish ClickOnce app
• visual studio setup and deployment error