Visual Studio 2010 Setup project msi file – change default icon for shortcut key

When we create Visual Studio 2010 setup project to make msi file for client installation, we do the following procedure.

1. Create primary output from our main project in the Application folder under File System on Target Machine.
2. Create shortcut key for primary output in the User’s Desktop folder or User’s Program Menu folder or both the mentioned folders.

Normally when we create shortcut key, we want to associate an icon of our own instead of default icon.

Even though we can add ico file to the Setup project but we can’t associate that icon in the properties window of shortcut key (the “OK” button is always disabled).

Workaround for this issue

First take a backup of your MSI file (Important).

Edit the MSI file with Orca tool.
Go to the “Icon” Table
Double click [Binary Data] value -> Browse and select the concerned ico file.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s