IT Community - Software Programming, Web Development and Technical Support

Advertised shortcuts in the installers... how avoid it

This is a discussion on Advertised shortcuts in the installers... how avoid it within the C# Programming forums, part of the Software Development category; Advertised shortcuts in the installers... how avoid it Hi, I am very confused with this issue, I can't belive ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 05-24-2009, 08:45 PM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default Advertised shortcuts in the installers... how avoid it

Advertised shortcuts in the installers... how avoid it

Hi,

I am very confused with this issue, I can't belive that in the 2008 year there isn't yet a way to disable advertised shortcuts in the installers, then must be that I cant get see it! Because there's a option to put things in the SendTo folder... and this folder is for one purpose only... have to exists a option to get runs it well... or I think that...

I need create a shortcut in the user SendTo folder, but the shortcut that the msi creates ... is a advertised shortcut and doesn't work

http://www.prism.gatech.edu/~gtg120z...tsinSetup.html
JTB World Blog: Enable Target and Change Icon of shortcuts

So, this links explains how to use Orca (there's Orca for .net3.5?) for edit the msi, or how to pass parameters to the installer... and other madness... But... is imposible do it with Visual Studio??
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-24-2009, 08:46 PM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default Re: Advertised shortcuts in the installers... how avoid it

Hi,

There's no IDE support in Visual Studio setup projects to turn off advertised shortcuts so there is no answer except to use Orca or a post-build step to add DISABLEADVTSHORTCUTS=1 to the Property table in the MSI file. It works on the command line if you;d rather so that: msiexec /i <path to your msi> DISABLEADVTSHORTCUTS=1

I think you may be assuming that Visual Studio setups have support for all the features in Windows Installer, but they don't. If you want to control that type of detail, or build your own UI forms, create multiple features, run custom actions off buttons in the UI and so on then use a tool that supports that functionality (WiX, Wise, InstallShield, Advanced Installer, just to name a few other tools that create MSI files).
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-09-2009, 10:50 PM
passingthru passingthru is offline
D-Web Trainee
 
Join Date: Jun 2009
Posts: 1
passingthru is on a distinguished road
Default Re: Advertised shortcuts in the installers... how avoid it

To do this in a post-build step:

(copied from .exe shortcut restores deleted files in application folder)

"... Again, through the installation of the Windows Installer SDK you can obtain a file called WiRunSQL.vbs. Copy this file into your project directory. Now, in Visual Studio 2005, select your setup project in the solution explorer. Select its properties. In the property window, add the following script to PostBuildEvent property.

cscript //nologo "$(ProjectDir)WiRunSql.vbs" "$(BuiltOuputPath)" "INSERT INTO Property(Property, Value) VALUES ('DISABLEADVTSHORTCUTS', '1')"

This script will automatically run once the project has been built and will insert the DISABLEADVTSHORTCUTS true value into the application MSI property table. Basically the script does the same thing that we did using method 1. Now when you install your program using the application MSI, the program shortcuts created will all be regular, non-advertised, shortcuts."
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Shortcuts arjkhanna Operating Systems 65 01-07-2009 09:03 PM
Best Keyboard Shortcuts arjkhanna Computer Hardware 26 01-06-2009 08:45 AM
Keyboard Shortcuts Keys devarajan.v Operating Systems 8 02-10-2008 09:34 PM
Coldfusion Keyboard Shortcuts srikumar_l ColdFusion Programming 5 12-27-2007 07:47 PM
Linux installers swoosh The Lounge 0 03-14-2007 09:14 PM


All times are GMT -7. The time now is 08:20 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0