Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to change icon of msi installer package in vs2008 and change user interface screen after creating package for c# projects
 

How to change icon of msi installer package in vs2008 and change user interface screen after creating package for c# projects

I have created Package by using msi installer. Now i want to change the icon of msi file and also i want to change the default user interface. I have tried 3rd party tool for this which is trail version. I want in VS2008Is there any way to change that by using VS2008. Plz help me regarding this query.

Thanks in advance.

  • Moved byMike Fourie Wednesday, June 03, 2009 8:13 PMBetter forum for answer (From:MSBuild)
  •  
IbrahimKhan  Monday, June 01, 2009 1:14 PM

Hi IbrahimKhan,

The default icon of MSI packages is associated by Windows Installer which is a system component. It's not package specific.
But we can change the icon associated with all MSI packages on a machine.

If you're using Windows OS prior to Vista, open Windows Explorer and select menu "Tools|Folder Options". In the Folders Options dialog, switch to the File Types tab. Select the .msi file type in the listbox and click the Advanced button below. In the Edit File Type window, click the Browse button to browse to the icon you want.

If you're using Windows Vista, you have to modify the registry editor manually to change file type icon.
1. Click on Start, and in the Start Search field type "regedit.exe" and then press Enter.
2. If prompted by User Account Control, provide consent or provide the appropriate credentials.
3. In the Registry Editor, navigate to HKEY_CLASSES_ROOT\Msi.Package\DefaultIcon key. Change the data of the (Default) Value to the path of the icon you want.
4. Once you have finished, close the Windows Registry Editor and log off of Windows and back in for the changes to take effect.

As for your second question, Visual Studio doesn't provide the functionality to customize the installation dialogs. You need to use the tool Orca to create the custom dialog based on a standard dialog. Visit the following link for more information on how to do it:
http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx

Hope this helps.

Sincerely,
Linda Liu


Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Thursday, June 11, 2009 9:04 AM

Hi IbrahimKhan,

The default icon of MSI packages is associated by Windows Installer which is a system component. It's not package specific.
But we can change the icon associated with all MSI packages on a machine.

If you're using Windows OS prior to Vista, open Windows Explorer and select menu "Tools|Folder Options". In the Folders Options dialog, switch to the File Types tab. Select the .msi file type in the listbox and click the Advanced button below. In the Edit File Type window, click the Browse button to browse to the icon you want.

If you're using Windows Vista, you have to modify the registry editor manually to change file type icon.
1. Click on Start, and in the Start Search field type "regedit.exe" and then press Enter.
2. If prompted by User Account Control, provide consent or provide the appropriate credentials.
3. In the Registry Editor, navigate to HKEY_CLASSES_ROOT\Msi.Package\DefaultIcon key. Change the data of the (Default) Value to the path of the icon you want.
4. Once you have finished, close the Windows Registry Editor and log off of Windows and back in for the changes to take effect.

As for your second question, Visual Studio doesn't provide the functionality to customize the installation dialogs. You need to use the tool Orca to create the custom dialog based on a standard dialog. Visit the following link for more information on how to do it:
http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx

Hope this helps.

Sincerely,
Linda Liu


Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Thursday, June 11, 2009 9:04 AM

Thanks for the reply.

But i am creating 2 products for which i want to give two separate icons. If i do that what u told above same icon will come for the 2 products.


Thanks for the Reply, IbrahimKhan.
IbrahimKhan  Thursday, June 11, 2009 10:16 AM
Exactly what icons are you referring to? The icons of MSI files belong to Windows, so you cannot change them. I'm wondering if what you really mean is the icon in Add/Remove Programs.
Phil Wilson
PhilWilson  Thursday, June 11, 2009 6:13 PM

You can use google to search for other answers

Custom Search

More Threads

• Setup Deployment project and Visual C++ Redistributable
• ClickOnce application deployment with username/password
• how to create a installer stub?
• HELP!!! Internet Explorer 7.0 will not load .dll's after upgrading to .Net 3.5SP1 on client PC's
• Click Once Install Problem on Client/Customer Side
• Enterprise Applications using WinForms/SmartClient/ClickOnce
• ClickOnce and Database files
• Setting Icon at Runtime
• Old Horse Or Dead Horse? How to properly deploy a ClickOnce application and .NET 3.0
• create text file on 'rebuild all'