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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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... |
|
#3
| |||
| |||
| 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." |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |
Our Partners |