I have a Windows form app that I've published but the end result is not what I've expected. After the wizard finishes, I click on the setup.exe and the application installs and launches, but I don't see any shortcuts in the All Programs. The application is listed in Programs and Features but when I close the app, there is no icon to click to launch it again. I've searched for an executable file in the Program Files and System32 folders found nothing.
So what I wanted to to do is create a desktop shrtcut, or shortcut in the All Programs as part of the installation process.
Also how do I assign a custom icon that will show up in the task bar?
Thanks,
Risho
create-setup-and-deployment-of-wpf-application-step-by-step
Is very helpful link for new users. Wpf and windows Forms are not much different in Deployment.
Assuming you are talking about ClickOnce publishing, you can ensure that desktop shortcuts and start menu shortcuts are created by selecting the 'The application is available offline as well (launchable from start menu)' radio button in the publish tab of the project properties, and clicking the 'Create desktop shortcut' checkbox in the Publish Options window.
I figured it out. For some reason, Visual Studio used the registered name under which it was installed, which is my employer, to create a shortcut on the All Programs and dropped the program shortcut there.
I also found in the project property page where to set the desktop icon.
Man, I'm good - sheesh! (JK)
Have great day.
Related
I'm using wix (3.11) to create a msi installation for a WPF application. The application icon is correctly working on program launch, in the program list (apps and features), and in my program menu and desktop shortcuts. The only issue is that when I search for the application after pressing the windows key, the older, stale icon that I used a few weeks ago appears. I'm almost certain that this is some windows caching issue as I have removed the stale icon from the application altogether, rebuilt the installer and reinstalled, and still the old icon appears during search. I'm curious if other members have encountered this issue and what they did to remedy it. Thanks!
Not sure if you need to rebuild the icon cache or fix indexing issues.
For Indexing:
Type "indexing" in the start menu (or internationalized equivalent word), Click open.
Click the Advanced button.
In the Index Settings tab, click the Rebuild button under Troubleshooting. OK to confirm.
Index rebuilding should start. This Indexing applet is also available from the old-style control panel in "icons" view. Just search for "control panel" or equivalent internationalized words.
One liner code (one effective line and boiler) to refresh icons: https://github.com/crazy-max/IconsRefresh
We have an application that is installed with a desktop shortcut icon that is different than the application icon. So, the result we are aiming at is:
a desktop shorcut with icon A, pointing to our application
once clicked, the application will launch with it's own icon B
However, the observed behaviour is that our application is launched with the shortcut icon A visible in the start menu bar, and the proper app icon B visible in the title bar. Is there an option to override this behaviour?
We are using InnoSetup for our installer, if that matters.
I found one solution - having the process restart itself will fix the problem. It's pretty clumsy, but it works. I'll mark this as an accepted answer unless somebody has a better suggestion.
Here is the scenario:
In the Wix install script for our application , start menu shortcuts and desktop shortcuts are now handled differently than before.
These changes causes any user pinned shortcut to the application on the taskbar to be orphaned when a user runs an update from a previous installation. In other words, the shortcut remains but is no longer pointing to anything.
The shortcut is shown as a blank page indicating that the link has been removed. A quick peek at the C:\Users[UserName]\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar folder confirms this. Clicking on the shortcut will remove it and then show a windows dialog asking whether to remove the shortcut or not (answer has no meaning since it has already been removed).
My question is:
Is there any way to tell the taskbar to remove orphaned shortcuts ?
Preferrably this would be triggered by a custom action in the Wix script after installing the new version.
The roaming profile can move from machine to machine so it's pretty much impossible. About all you could do is leave behind a component that runs on logon and detects that your app is no longer installed and deletes the shortcuts.
I'd consider this user data and let the user worry about it.
some of my icons disappeared, for example the whole Microsoft office icons, they disappeared in the start menu, programm and features and also on the desktop.,
what i've tried is , to go to the folder of the exe, and pin it to the taskbar this will also show up the icon for unknown exe. changing icon doesnt work for the shortcuts, its disabled.
then i made a new shortcut and put it on the desktop that will show up the original icon. so i can recreate the start menu and the desktop, but still the icons are missed in programm and features.
i also tried to delete the icon cache db a 100 times but that doesnt work.
has anybody a solution?
does somebody know where the icon references are stored in the registry. i dont know where to start
Rebuild the icon cache.
If that doesn't work look here for a quick and easy fix.
http://www.arcane.org/the-mystery-of-the-disappearing-windows-7-start-menu-icons/
I have a normal MFC Application with an embedded icon. If I start the application, the icon is shown inside the windows-7 taskbar.
But when I change the icon inside the resources, rebuild the application and start it, the taskbar doesn't show the current icon, but the icon from the first run.
There is no special code inside the application that does something specific with the windows-7 taskbar.
Is there a way, (in C++) to tell the windows-7 taskbar to show the current icon?
Did you empty/delete the shell icon cache?
I believe that if you rebuild an application, but it's still called by the same name, then explorer doesn't think it should reload the icon, even though the new icon is the only one in the app.
If you were to release the program, no-one else would have this problem since the first version of the app would have the new icon, but for your own purposes you can call SHChangeNotify(); from shell32.dll to refresh your own view of the icon.
did your remove the previous icon from resource....and assign the new icon to the file..too after putting in the resource...might that would work....