“此程序可能未正确安装". [英] "This program might not have installed correctly"

查看:175
本文介绍了“此程序可能未正确安装".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道两个 这个问题.

不幸的是,我没有完全回答我想知道的事情:

Which unfortunately didn't quite answer what I'd like to know:

  1. 以上问题的答案表明,这与在开始菜单中添加快捷方式有关,但这不是唯一的原因.到目前为止,我一直无法可靠地弄清什么使Windows首先认为我的应用程序是安装程序,为什么Windows认为它失败了?

  1. The answers in the above questions suggest that it has to do with adding shortcuts to the start menu, but that can't be the sole reason. So far I've been unable to reliably figure out what makes windows think my application is an installer in the first place and why does windows think it failed?

我不想简单地在清单中显示带有兼容性标签的消息. 我想编写一个正确的解决方案,并告诉Windows我的安装是否失败.另外,对话框附带的使用推荐设置安装选项会做什么?如何正确利用此功能?同样,我不想简单地忽略Windows提供的功能,而是要使用它们.

I do not want to simply suppress the message with a compatibilty tag in the manifests. I want to write a proper solution and tell Windows if my installation has failed or not. Also, what does the install using recommended settings option do, that comes along with the dialog? How can I properly utilize this functionality? Again, I don't want to simply disregard the features Windows provides, I'd like to use them.

我一直在MSDN上浏览,但是没有成功.我问过Google,但我能找到的是使用清单或注册表中的兼容技巧来禁止显示消息的方法.如果有人可以在MSDN上提供涵盖该主题的可行资源,我将不胜感激.

I've been browsing around MSDN but with no success. I've asked google, but all I could find is ways to suppress the message using compatibility tricks in either the manifest or the registry. I'd be already grateful if someone could provide a viable resource on MSDN that covers this topic well.

到目前为止,我正在使用利用几个Windows API调用的自定义安装程序.除了注册两个服务之外,我不会在Windows注册表中弄乱.它也具有requireAdministrator作为请求的执行级别(没有人在乎,但这出奇的干净和简单-它只是项目设置中的一个标志).我目前未使用MFC或CLR.

So far, I am using a custom installer that utilizes several Windows API calls. I am not messing around with the Windows Registry other than registering two services. It also has requireAdministrator as the requested execution level (not that anyone cares, but this is suprisingly clean and simple - it's merely a flag in the project settings). I am currently not using MFC or CLR.

推荐答案

请参见安装程序检测,其中列出了要确定可执行文件是否为安装程序的检查内容.

See Installer Detection, it lists what is checked to decide whether an executable is an installer.

此程序可能没有..." 是程序兼容性助手"的产品,在

"This program might not have..." is a product of "Program Compatibility Assitant", and is documented in the Application Compatibility: Program Compatibility Assistant (PCA) topic. According to the document the reinstall option applies XPSP2 compatibility mode.

这篇关于“此程序可能未正确安装".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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