Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Winform app name shown as _alphanumeric on Startup tab in Task Manager in windows 10

On Windows 10, my Form application is showing as alphanumeric characters (_1F036AE84FF792FB79A74F) on Startup tab in Task Manager. It is a MSI installation file.

Following is the path it is running the exe from:

C:\Users\win10user\AppData\Roaming\Microsoft\Installer\{ProductCode-Of-App}

How can I show Form application instead of this alphanumeric value?

EDIT : I am using Microsoft Visual Studio 2015 Installer Projects to create MSI file

EDIT TWO:

Windows 7 (msconfig.exe):

enter image description here

Windows 10 (Task Manager):

enter image description here

Here I have placed screenshots of how my application name appears on both Windows 7 & Windows 10.

like image 514
FaizanHussainRabbani Avatar asked Mar 11 '23 00:03

FaizanHussainRabbani


2 Answers

There doesn't seem to be a way to fix this with Visual Studio itself. The underlying issue is that Task Manager displays the Name it sees in the Icon table of the MSI file. So fixing it requires using an MSI file editor such as Orca to alter that name.

Open the MSI file with Orca and do a search for that string you see in the Startup (just the first few characters will suffice). You should see it in two places. One is the Icon table, so change it to something like My Application. The other place you'll see it is in the Shortcut table in the Icon field. Put exactly the same text in that field (and it literally must be an exact match because these things are database keys). Then save the MSI file. This corrected the issue when I tested it.

If this a regular thing then you could script the MSI change as a post-build event by running WiRunSql.vbs (Windows SDK) with the SQL to update those two fields.

like image 148
PhilDW Avatar answered Apr 28 '23 04:04

PhilDW


This maybe an error with the VS extension.

Is that the path you are installing your application? How is that named on disk?

I suggest using Wix Toolset. I've used it and I can say it's more powerful then standard installer projects.

like image 35
Mihail Stancescu Avatar answered Apr 28 '23 02:04

Mihail Stancescu