Wix change exe installer icon - c#

Well, I wrote an add-on to excel and created a msi installer for it using wix toolset. The problem is that I would like to change the installer icon, but from what I read msi installer icons can not be changed and I wanted to ask you whether it is possible to change the installer from msi to some other (eg on exe) and then change the installer icon?
[Update]
I've already change msi file to exe using wix bootstrap, but still i don't know how could i change this icon.
Thanks for all the tips / help.
This problem is not duplicate of Change exe icon based on define C#
my problem is not a duplicate of the post that was indicated, because it is a wix project and the given solution is for wpf, winforms projects.
In my project, there is no csproj file, only wixproj, which does not even have the <ApplicationIcon> tag.
Project properties are also different because there is no context in the build tab.

You cannot change the icon displayed by Windows for *.msi file.
For bundle exe's use
<Bundle ... IconSourceFile='path\to\product.ico'>
This will also change the icon in the "Add/Remove Programs" (which is probably good).

Related

How to set the short-cut icon generated by installation of an .msi using a VS2017 Deployment Project

I have been tasked to change the Icons associated with a WPF VS2017 application that I did not create. I am trying to change the desktop short-cut icon that is automatically loaded on installation of the app's .msi.
This solution uses a Visual Studio Installer Project to generate the deployment .msi.
I have tried to change the file reference in the deployment project, but it seems to hang on to the original icon.
I have even gone to the extent of renaming the new .ico file with the original .ico filename and putting it into the directory where the original was located, but the .msi continues to load the old icon to the desktop on the application's installation.
Is there user documentation (not tutorials) on the Visual Studio Installer add-on?
More directly, how is the desktop short-cut icon specified in the deployment project?
Extensive web searching and experimentation have not presented an answer.
The installer project has a "file system" view.
Click round on your files under setup and it should appear in your code editing area.
Under File system on target machine will be folders.
These might have been configured to explicitly add a specific icon for the shortcut.
Click users desktop in the left panel.
You will have a shortcut in the right.
Select this and take a look at properties.
There's an Icon property which is probably set. Click the icon, browse and choose the one you want. This should be in the list of setup files.
If not, check your main entry point project has an icon set.
Choose it's properties > Application
In there under Icon and Manifest set the ico file.
Then try again.

MSI installer with c# WPF VS 2015

I have created a simple wpf application in c# with only one window, MainWindow.xaml. There is no database, not even textboxes, not a single line of code added by myself.
file structure wpf project
I also created an MSI setup project:
setup project
Building of either project works without problem. However, after installation, when I try to run the programme crashes without any error message. All that I see is that the circle-turned cursor is spinning and the windows explorer window can no longer be closed.
Operating system is Windows 10. Anyone has had a similar experience? Looks like a bug in the MSI installer.
Check all the .dll's are included in the installer. Often not all of them are and you need to manually include them. You can compare what's in the install (C:\Program Files...) directory compared to what's in the project bin directory. Often times items like "PresentationFramework.Aero.dll" aren't included and you get a missing .dll error.
If this is the case, you can copy over some of the .dll's until it works. Then add those to the installer.

Installer - How to get exe to run stand alone

I have created a winforms project, and created an installer for it.
When installed i can run the exe from the install location, however if i create an entry in my install package to add the project output (the exe) to the users programmes menu or desktop then it fails
Does anyone know why this might be?
Thanks for your time
If this is a VS Deployment project, you don't add the project output directly, you create a shortcut from within the File System Viewer pointing to the primary output (which you will probably find in the 'Application Folder' in the shortcut dialog). You can then assign the shortcut a name and icon etc.
You need both the EXE and the MSI.

Where and how, to find the installer file after creating and adding set up project to a solution having a windows application?

HI,
I have a windows application in C#. I created and added a set up project to this solution. Then, built the solution. I refered to this link http://www.codeproject.com/KB/install/SetupAndDeployment.aspx. I even added the shortcut of "Primary output of my application" to "User's Desktop" folder. But I am not able to find the installer file in Desktop, so that I can "double click" this installer file and install my Windows application.
KINDLY HELP ME WITH THE PROCEDURE THAT NEEDS TO BE FOLLOWED AFTER CREATING A SET UP PROJECT, ADDING IT TO A SOLUTION AND BUILDING THE SOLUTION. WHERE AND HOW TO FIND THE INSTALLER FILE. IS THERE ANYTHING THAT I AM MISSING.
The installer file should be located in the bin folder of your installer project. Right click on the project in the project tree, and select "Open folder in windows explorer", and you'll find the bin directory.
The link on the desktop will only be present once the installer file has been run.
Whether this is 100% applicaple I don't know but it's something I'd think is worth a try which is if u know what the installer file is called why not do a search for that file to see if it's been stored somewhere else?
I apologise If I am stating the obvious to you, I have probably misunderstood your question if i am.
When you make a setup project the built setup files are in the Debug or Release folder of the setup project depending on your build settings
-setup.msi
-setup.exe for example
clicking setup.exe will run the install the application
You copy them to the user's desktop and click to install your application?

Is it possible to change the setup.exe and setup.msi icons to a different icon?

VS 2008 SP1.
I have created a setup project for our client. The icons for the setup.exe and setup.msi are the standard icons.
Our client doesn't want this these icons. They want to have icons that look like they logo.
Is it possible to change the *.exe and *.msi icons to something different?
You can change the setup.exe icon, but I'm not sure about the *.msi. I haven't tested this with it.
Build the setup project in Visual Studio
Open the setup.exe file you just built, File -> Open -> File
Right click the Icon node in the file explorer window and you can change and save.
Import the icon your want in the popup dialog, and make sure the ID of the icon is the smallest one.
A quick Google search pulled up some other approaches, so if this won't work for your particular case, check some of these out.
It is not possible to change the icon of the msi. It does not have an icon set on it. It is just a document that is handled as install package if you have Windows Installer installed. If not, you will actually just see the windows default icon for unknown file types!
For the setup.exe, you can do it by editing the icon(s) on the exe after it is build. Answer from mc2thaH (steps 2-4) is one approach.
Another tool for icon editing is Greenfish Icon Editor Pro, which is a very good free icon editor with full support for 32bit image editing. Download here.
msi cant be edited. At the same time setup exe doenst have all the valid informations. The best way to handle this is to have an msi to exe converter. EgeUE-MSI-to-EXE is a good converter which need not be installed. It converts msi to exe on the fly. Now you can edit the icon of this exe from your visual studio as explained by #mkchandler. Bear in mind that the logo you are going to import has to be .ico file to avoid further complications. I did not get a jpg or bmp image working as the icon. ico works fine like a breeze..

Categories

Resources