-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
WiX Cookbook
By :
In the previous recipes, we added a shortcut to our software on the Start menu. We can also add a shortcut to a web page—perhaps one where the user can find information about other related products. It's a great way to keep the resources front and center. In this recipe, we'll add a shortcut to the Start menu that opens the website, http://www.packtpub.com.
To prepare for this recipe, create a new setup project and name it WebPageShortcutInstaller.
Include an InternetShortcut element from UtilExtension to create a shortcut to a website, as shown in the following steps:
Add UtilExtension to the project by right-clicking on the References node in Solution Explorer and navigating to Add Reference... | WixUtilExtension.dll | Add | OK.
Add the util namespace to the Wix element:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
Use the Directory elements to...
Change the font size
Change margin width
Change background colour