本文介绍了创建autorun.inf-“未找到应用程序”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没想到会在2018年通过CD安装来部署应用程序,但我们来了。我的ISO映像上有以下文件:

I didn't expect to be deploying an application through a CD installation in 2018, but here we are. I have following files on my ISO image:

E:
 |- autorun.inf
 |- Setup.msi
 |- CD_icon.ico
 |- setup.exe

这是屏幕截图:

autorun.inf 包含以下内容:

[autorun]
icon=CD_icon.ico
label=Instal MySoftware
UseAutoPlay=1
shellexecute=Setup.msi

[Content]
MusicFiles=false
PictureFiles=false
VideoFiles=false

当我双击CD文件或选择运行或从媒体安装程序,将显示此CD映像的错误对话框:

When I double click the CD file or select "Run or install program from media" I get this error dialog for this CD image:

我的ISO文件怎么了?为什么图标不显示并且安装程序无法运行?

What's wrong with my ISO file? Why is the icon not showing and the installer does not run?

推荐答案

Windows 7-10忽略自动运行.inf :这篇维基百科文章介绍了 autorun.inf 在一段时间内的处理差异:。还有。看来您需要一张真正的CD / DVD才能测试此双击。您有一个ISO文件吗?也许将其刻录到真实媒体上?

Windows 7-10 Ignoring Autorun.inf: This wikipedia article describes differences in the handling of autorun.inf over time: Autorun.inf. And more on AutoRun. It appears you need a real CD / DVD to test this double click. You have an ISO file? Maybe burn it to real media?

Setup.msi :您确定可以启动像这样的MSI吗?那?您是否不需要完整的 msiexec.exe 命令行或更好的命令行: setup.exe 包装程序将启动安装?诸如高级安装程序之类的工具支持创建此类启动器。我认为Installshield也有。 更新:您可能直接使用MSI文件,因为使用的是 shellexecute 而不是 Open 命令。

Setup.msi: Are you sure you can kick off an MSI like that? Don't you need a full msiexec.exe command line or better yet: a setup.exe wrapper which kicks off the installation? Tools such as Advanced Installer feature support to create such launchers. I think Installshield has it too. UPDATE: you probably can use an MSI file directly, since you use the shellexecute and not the Open "commands".

以前的答案 :这是一个与使用ISO有关的老问题文件:。

安全软件 :如评论中所述。许多安全套件会禁用Windows的所有自动运行和自动播放功能,这是我只想提及的一个众所周知的问题。

Security Software: And as mentioned in the comment. Many security suites disable all auto-run and auto-play features of Windows - a well known issue that I just want to mention.

这篇关于创建autorun.inf-“未找到应用程序”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-24 09:32