I ran your code for the problem. But the icon remains default. Problem is not with the app icon, but with the uninstaller icon. On all the uninstaller pages, the icon is ok. It does not show only in the Start Menu see attachment. I am inclined to think that this is a Windows icon cache issue, because after I install and then update the app, the icon is ok. I do this call for refreshing icons. System::Call 'ShellSHChangeNotify i 0x, i 0, i 0, i 0 ' There is no specific code in installer to add an icon to the main Start menu in attachment.
Maybe this happens when installer is deinitialized, which is after the call to SHChangeNotify. I was actually talking about the little sample code I posted, it tries to set the icon from the. If I point it to the uninstaller. I also tried pointing it to the application. Looking at the link dump again I see that TargetFileAttributes and TargetSize are both 0 in my dump I did not have the target file on my system.
Are you creating the shortcut before the uninstaller has been written? The shortcut target should exist when you create the shortcut I write the uninstaller in.
The shortcuts are created in the install section. Everything looks pretty simple now - the icon cache was refreshed when the uninstaller still was not there. Don't use that in. Learn more. Asked 8 years, 8 months ago. Active 3 years, 5 months ago. Viewed 17k times. Improve this question.
Peter Mortensen Abraham Abraham 1, 2 2 gold badges 12 12 silver badges 22 22 bronze badges. I guess that is the work of installer. Well, don't store it in a folder, embed it in your EXE instead so you don't have to do anything special. Add a comment. Active Oldest Votes. Improve this answer. What do you mean by "deployment project's properties"? I looked all over the place for those properties, but couldn't find it. Wish you hadn't censored the top bit How do I find this in Visual Studio ?
EDIT, found it, select the deployment project and press F4 — elemer Months later, still having trouble finding it. Looked everywhere. What exactly do I click on? I'm on a C Winforms project in VS Learn more. Asked 6 years, 10 months ago. Active 6 years, 10 months ago. Viewed 2k times. Improve this question. Community Bot 1 1 1 silver badge. Add a comment. Active Oldest Votes. Improve this answer.
This was haunting me, now after 6 years, you still have to generate images in BPM Windows 3. Sign up or log in Sign up using Google.
0コメント