链接到由Windows创建的游戏,当delphi项目创建具有特定名称的exes [英] Links to games created by Windows when delphi projects create exes with specific names

查看:160
本文介绍了链接到由Windows创建的游戏,当delphi项目创建具有特定名称的exes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为VR的Delphi项目,生成一个名为VR.exe的可执行文件。令我失望的是,我发现Windows(我正在运行Window 7 64位Ultimate)已经添加了链接到开始菜单和游戏下:Search&救援:越南MED + EVAC。链接的图标是默认的delphi应用程序图标。



有一些研究,我发现这个帖子:



http://social.technet.microsoft.com/Forums/windows/en-US/a5919fc1-db3d-4f13-b241-d059df2bf11f/renaming-a-file-into-vrexe



如何防止Windows这样做?



更新:我有另一个项目MM,它生成mm.exe。这个创建了一个链接到Steam Dark Messiah Might和Magic Single Player。



另一个更新:我们向Microsoft提交了一个支持请求。他们承认这是一个错误,但是他们未能提供修复的时间表。



更新:这是Microsoft的答案:



我正在写信通知您,这个问题在我们的结尾是可重复的,我们以前也有报道。由于这已经被我们的代码识别为设计,所以我们没有一个解决方案,我没有太多的帮助。
但是,如果您有任何意见,希望能够了解我们的知识,例如影响业务或其他任何问题,请告诉我。



我接受了雷米的回答。

解决方案

根据MSDN ,游戏应用程序应该将自己整合到游戏资源管理器中,Windows不应该自动整合。但是,我可以在Win7 Home系统上确认将任何应用重命名为 vr.exe ,然后运行它会导致搜索&救援:越南MED + EVAC 出现在游戏资源管理器中(当应用程序第一次运行时,还有一个非常显着的延迟,我认为是由于识别/整合发生)。 >

运行该应用程序后,我发现与该游戏相关的以下注册表项:

  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\GameUX\S-1-5-21-991038988-4040401710-2535580036-1000\ {2A051900-E642-4D69-8D4E-1B3A2FD42CCF} 

它包含对此文件的引用

  C:\Windows\system32\GameUXLegacyGDFs.dll 

我使用资源查看器查看文件内容,并看到它包含含有GDF游戏定义的 RC_DATA 资源。



我删除了注册表项,现在游戏不再出现在游戏资源管理器中,无论我多次运行重命名的版本r.exe 文件。


I have a Delphi project called VR that produces an executable named VR.exe. To my dismay I discovered Windows (I am running Window 7 64 bit Ultimate) has added links to the start menu and under games: Search & Rescue: Vietnam MED+EVAC. The icons for the links are the default delphi app icon.

Did a bit of research and I found this post:

http://social.technet.microsoft.com/Forums/windows/en-US/a5919fc1-db3d-4f13-b241-d059df2bf11f/renaming-a-file-into-vrexe

How can I prevent windows from doing this?

Update: I have another project MM, which produces mm.exe. This one created a link to the Steam Dark Messiah Might and Magic Single Player.

Another update: We submitted a support request to Microsoft. They acknowledged it is a bug, however, they failed to provide a timeline for a fix.

Update: This is the answer from Microsoft:

I am writing to inform you that this issue is reproducible at our end and we have been reported regarding this in past as well. Since this is already identified as "By design" with our code and to this point we do not have a resolution on this, there’s not much I would be able to help with. However, if you have any points that you would like to bring to our knowledge like how it is impacting business or any other concerns , do let me know.

I accepted Remy's answer.

解决方案

According to MSDN, game apps are supposed to integrate themselves into Game Explorer, Windows should not be integrating anything automatically. But I can confirm on a Win7 Home system that renaming any app to vr.exe and then running it causes Search & Rescue: Vietnam MED+EVAC to appear in Games Explorer (there was also a very noticeable delay when the app is run for the first time, which I imagine is due to the recognition/integraton taking place).

After running the app, I found the following Registry key associated with that game:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\GameUX\S-1-5-21-991038988-4040401710-2535580036-1000\{2A051900-E642-4D69-8D4E-1B3A2FD42CCF}

It contains a reference to this file

C:\Windows\system32\GameUXLegacyGDFs.dll

I looked at the file contents with a resource viewer, and see it is full of RC_DATA resources containing GDF game definitions.

I deleted the Registry key, and now the game no longer appears in Games Explorer, no matter how many times I run the renamed vr.exe file.

这篇关于链接到由Windows创建的游戏,当delphi项目创建具有特定名称的exes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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