Setup & deployment Project - Desktop shortcut - unable to edit target property
-
Hi All, For my .NET C# windows application, I am building the installation setup using "Setup & Deployment" project. At the end of installtion it places a shortcut on users's desktop ( the way I want) But the problem is if I want to specify some command line parameters I right click the shortcut--> go to properties, but what I see is "Target" as non-editable field. So to specify some command line params I need to go to "Program Files"/"Appl Folder" and create a new shortcut to the excutable to specify command line params. Any clues as to how I can set property such that at the end of installation the shortcut that installation places on desktop has editable "Target". Thanks Ruchi
-
Hi All, For my .NET C# windows application, I am building the installation setup using "Setup & Deployment" project. At the end of installtion it places a shortcut on users's desktop ( the way I want) But the problem is if I want to specify some command line parameters I right click the shortcut--> go to properties, but what I see is "Target" as non-editable field. So to specify some command line params I need to go to "Program Files"/"Appl Folder" and create a new shortcut to the excutable to specify command line params. Any clues as to how I can set property such that at the end of installation the shortcut that installation places on desktop has editable "Target". Thanks Ruchi
This is because the Windows Installer projects in VS.NET suck. Trust me - I've worked with Windows Installer for as long as it's been out and the Visual Studio projects are always poor. It is possible, just not using VS.NET. Good developer environments like Wise for Windows Installer[^] (cheaper, just as capable) and InstallShield Developer[^] (much more expensive, includes proprietary install projects, too) make this a trivial operation. If you want to do this, you must Orca afterward and modify MSI tables directly.
Microsoft MVP, Visual C# My Articles