If the user has chosen to add the desktop shortcut, we need to determine the location of the desktop folder where we will create the shortcut. Our installer class needs a way of finding out what choices the user has made for the current installation.įor the checkboxes that we will add to the Setup project to allow the user to choose to install the shortcuts, the parameter value will be "1" if the checkbox is checked, and an empty string if the checkbox is unchecked. When you implement your own Installer class, you can override one or more of the Install, Commit, Rollback and Uninstall methods of the base Installer class. The Windows Script Host is a COM component, so you need to add a reference to it in the project for the main assembly of your application. The source code for this article provides a simple Win Forms application that includes an Installer class to create the shortcuts, and a Setup project that includes a dialog to ask the user if they want to create the shortcuts. The solution provided here uses an Installer class that is added to the application being deployed. A bit of searching showed that many others have found this technique does not work and asked for a solution. Recently I was asked to modify the installer for an application so that the user could choose whether to add a shortcut on their Desktop. Create an installer that allows the user to choose whether to create shortcuts on the desktop or in the quick launch bar. A final approach would be to simply browse to the OUTLOOK.EXE file in its installation directory and use the right click option there to create a Desktop shortcut. As mentioned before, this will also work for every other application of course and you don’t actually have to pin it to your Taskbar first if you have the application running already. To pin Outlook to your Taskbar, right click on Outlook in the Start Menu and choose: Pin to Taskbar. Maybe the easiest way to go, would be to right click Outlook in the Start Menu and from the context menu that pops up choose: Open File Location. I’ve got a new installation of Outlook on Windows 10 and I’d like to place a shortcut for Outlook on my Desktop.Ĭreating a Desktop shortcut for Outlook in Windows 8 or Windows 10 is indeed not that straightforward.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |