Windows 7/8 / 8.1 / 10/10的Autorun.inf是否可以替代? [英] Is there an alternative for Autorun.inf for Windows 7 / 8 / 8.1 / 10?

查看:95
本文介绍了Windows 7/8 / 8.1 / 10/10的Autorun.inf是否可以替代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为客户创建了一个软件,该软件将安装在大约350个USB记忆棒上。现在,我们希望在将控制棒插入PC时自动执行该.exe。

For a customer we created a software which will be installed at about 350 USB sticks. Now we want that this .exe is automatically executed when the stick is plugged into the PC.

几年前,我们使用了简单的 autorun。 inf 方法。

A few years ago we used the simple autorun.inf method.

但是对于Windows 7和更高版本的Windows,此功能不再起作用。这让我有些疑惑,因为在系统控制中,我可以选择如何打开驱动器。在软件和游戏中,我选择总是询问,然后将这个 Autorun.inf 放在摇杆上:

But for Windows 7 and later Windows versions this function is not longer working as I've seen. That makes me a little bit wondering because in my system control I can select how the drive will be opened. At "software and games" I selected "always ask", then I put this Autorun.inf on the stick:

[autorun]
open=Demo1.exe

但是没有用。 Windows插入记忆棒时唯一要做的事情是询问我是否要打开驱动器文件夹。

But it's not working. The only thing that Windows makes when I plug the stick into, it asks whether I want to open the drive folder.

该软件必须自动启动,我该怎么做?

What I have to do that the software starts automatically OR a window opens in which the user can decide to run the executable or don't do that?

推荐答案

对于Windows 7和更高版本,是否会打开一个窗口,用户可以在其中决定运行可执行文件还是不执行该操作?只有光盘驱动器可以指定自动运行任务。实际上,可以将Windows的早期版本打补丁以使其行为相同。做出此更改是为了响应Conficker蠕虫。

For Windows 7 and later only optical drives can specify auto run tasks. Indeed earlier versions of Windows can be patched to behave the same way. This change was made in response to the Conficker worm.

因此,您的目标根本无法实现。您将需要指导用户探索记忆棒并手动运行特定程序。

So your goal simply cannot be achieved. You will need to instruct users to explore the memory stick and run a specific program manually.

这篇关于Windows 7/8 / 8.1 / 10/10的Autorun.inf是否可以替代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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