Creating a .NET Windows Installer – Part 1 - Shortcuts
(Page 9 of 14 )
You can also add shortcuts. Typically, you will create these in the Desktop folder, the StartUp folder, the user's Favorites folder, or (most commonly) an application-specific sub-directory in the Programs menu.
To create a shortcut for the FontViewer application, you should follow these steps:
- Add the shortcut icon to the setup project.
- Create a folder for the application in the Programs menu (in this case, we call it FontViewer).
- Right-click on the new folder and select Create New Shortcut . A special window will appear prompting you to choose one of the files in the setup as the shortcut target.
- Once you choose the target, the shortcut will be added. You can rename it, and configure additional options using the Properties Window.
At this point, you have a fully functional simple setup. You can build it to a single .msi file, and use it to install the FontViewer application. A very simple interface will be used that provides a generic "welcome" window, prompts for a destination, shows a progress bar as it copies files and shortcuts, and ends with a generic message. You'll see how to modify some of these elements in the next section.Next: Customizing the User Interface >>
More C# Articles
More By Wrox Team