Pinned taskbar icon turns to default icon after update using msi file created by WiX - wix

I have a program that is built using a WiX project. When the application is installed the first time, I am able to pin it to the taskbar just fine. When an update is installed, the application still works, but the icon in the taskbar turns into the default icon (the file icon), not my program's icon.
While I go into the pinned icon's shortcut properties and click "Change Icon", it gives an error message stating the path can't be found. The path to the icon looks something like this:
"%SystemRoot%\installer{LONG GUID HERE}\ICON.EXE"
That long guid will change with each update release (and by update, I mean changing from version 4.5.5 to 4.5.6). The GUID corresponds to the Product ID in my Product element of the schema, which will never be the same, and updating doesn't update the icon path for icons pinned to the taskbar.
How do I get the icon pinned to the taskbar to update with future updates?
Also, How can I set the icon path to point to the location of my executable, which is how other programs like Firefox set their icons? Is this available in WiX?

By the way, I was able to solve this issue by removing the Icon element in my Product.wxs file:

Related

Create different theme for different instances of android studio

I will give my use case first. I have two similar android studio projects which needs to be opened always. Now what happens is, I often make changes in wrong project because there is no easy way to identify which project I'm on by simply looking at UI (other than looking at the project name on top- which will go away on full screen). So it would be great if I could use dracula theme on one project and default theme on other. Is there any way to achieve it.
There is a way to change the background color of project pane and recent files window.
Goto Preference -> Appearance & Behavior -> File Colors -> {Add project files and set color}
Got the solution from here
There is the ability to "to define any image as a background".
Set a background image for the current project only, or for any project you open or create anew.
To set a background image
1. Either press:
Shift twice (Searching Everywhere), or
Ctrl+Shift+A (Navigating to Action)
and start typing set back
2. In the dialog box that opens,
Specify:
the image you want to use as the background,
its opacity,
filling and placement options.
Choose to show background in:
the editor and tool windows, or
in the IntelliJ IDEA frame.
Selecting checkbox This project only:
Show background in the current project and ignore this background in the other projects.
https://www.jetbrains.com/help/idea/2016.2/setting-background-image.html

Icon is not shown in the taskbar

On other forms, the icon is shown in the taskbar but only in this form, the icon is not shown in the taskbar.
I also made sure that there is an icon in the form's property.
Right Click the Project file and Select Property as follows
Now Change the default Icon here
Have you run the program from the exe in the debug/release folder.
I've found that the icon doesn't show in the taskbar when run from the debugger.
Edit: Just realised how old this is.
Well, hopefully this will help someone else.
To change the main icon for your application, go to the "Application" tab under the project property page, and change the "Icon:" combo box.
You can change icon form from properties form like this picture.
You need to change icon of application from Project Properties -> Application -> Icon
In properties of the form, browse for an icon in the icon tab.
Make sure that the picture you are using is in .ICO format. Sometimes, in newer versions, the language accepts images other than .ICO format but can produce error and doesn't display correctly everywhere.
Make sure that the .ICO you have converted is in more than 1 or 2 sizes (.ICO files have many resolutions in just one file).
I hope you understand!
In addition to other answers here, make sure that the 'ShowInTaskbar' property on the form is set to true. Sometimes settings get toggled. Toggle it back.

Preference bundle icon for theos tweak

possibly an easy answer to this.?
I have a theos built tweak with a preference bundle displayed in the settings app.
This allows me to activate / deactivate my tweak.
My question is, how do you put an icon on the main settings app list along side the title.
I can put an icon by the switch, but thats it.
I have not included any code as the preference bundle is working, it just doesn't have an icon.
The default way to do this is to drag your icon named icon.png into /Resources/.
If you want, you can rename it by editing icon entry in your /layout/Library/PreferenceLoader/Preferences/<yourbundlename>.plist file.

Add Remove program Icon

I have a WIX Installer project, which installs my product.
The code was not written by me.
It shows an Icon in the Add/Remove programs. I want to know where is in the source code is it specified. That icon is of the main executable of my product.
I tried searching the code but could not find any ARPPRODUCTICON word in the whole code.
From where is the icon getting displayed in Add/Remove Programs?
The icon is set automatically by Windows Installer. If you want to use a custom one, you can set ARPPRODUCTICON property: http://msdn.microsoft.com/en-us/library/aa367593(VS.85).aspx

Custom icon for Mac application

I am developing an application in which I have to mark a set of files/folder. The marked files/folder when viewed in Finder must be shown with a custom icon. But when they are selected for preview ( using spacebar) they must show their original icon ( i.e the blue icon for folder etc) .
This behavior is similar to symbolic links in the fact that for symbolic links , an arrow comes at the lower left corner of the icon whereas when we preview it , it shows the icon of the file/folder it is pointing to (without the arrow) .
Now I went over
[[NSWorkspace sharedWorkspace] setIcon:icon forFile:#"path" options:NSExcludeQuickDrawElementsIconCreationOption];
But it sets the icon of the path permanently and the same custom icon appears when I preview it .
I tried to register a custom file type but the same problem happened . The custom icon also appeared in the preview.
Can anyone please help me out ??
Thanks :)
Starting with OS X 10.6, you will need to inject code into the Finder process and override objective C methods in the Finder process. Refer How to Write OS X Finder plugin post.
Symbolic links are not just documents, but a special entity in the OS, and therefor gets special treatments in some cases.
If you use setIcon:forFile: to set an icon, I do not believe there are any options to say that the icon should only appear in directory view, and not in preview.