Winform 应用程序名称在 Windows 10 任务管理器的启动选项卡上显示为 _alphanumeric [英] Winform app name shown as _alphanumeric on Startup tab in Task Manager in windows 10

查看:45
本文介绍了Winform 应用程序名称在 Windows 10 任务管理器的启动选项卡上显示为 _alphanumeric的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 10 上,我的表单应用程序在任务管理器启动选项卡上显示为字母数字字符 (_1F036AE84FF792FB79A74F).它是一个 MSI 安装文件.

以下是运行exe的路径:

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

如何显示表单应用程序而不是这个字母数字值?

我正在使用

Windows 10(任务管理器):

这里我放置了我的应用程序名称如何在 Windows 7 和 Windows 7 上显示的屏幕截图.视窗 10.

解决方案

Visual Studio 本身似乎没有解决此问题的方法.根本问题是任务管理器显示它在 MSI 文件的图标表中看到的名称.因此,修复它需要使用 MSI 文件编辑器(例如 Orca)来更改该名称.

使用 Orca 打开 MSI 文件并搜索您在启动时看到的字符串(仅前几个字符就足够了).您应该在两个地方看到它.一个是图标表,因此将其更改为类似于我的应用程序的内容.您将看到的另一个位置是在图标字段的快捷方式表中.在该字段中放置完全相同的文本(并且它实际上必须完全匹配,因为这些东西是数据库键).然后保存 MSI 文件.这在我测试时纠正了这个问题.

如果这是常规事件,那么您可以通过使用 SQL 运行 WiRunSql.vbs (Windows SDK) 来更新这两个字段,从而将 MSI 更改脚本化为构建后事件.

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):

Windows 10 (Task Manager):

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

解决方案

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.

这篇关于Winform 应用程序名称在 Windows 10 任务管理器的启动选项卡上显示为 _alphanumeric的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆