问题
Whenever I mount an ISO. i want the setup.exe to be triggered automatically. There is a autorun.inf file to handle this but still nothing works.
Contents of autorun.inf
[autorun]
open=setup.exe
what am I missing here. any registry entry I should change. Please help me out.
回答1:
ISO: Have you confirmed that this is even possible from a mounted image? (Seems not to be). In other words, did you try to put your autorun.inf
and friends on a DVD or a USB stick and then testing whether auto-run actually works in that configuration you are using? Please read the rest below before trying this.
OS: What OS is this? I believe the handling is quite different in different OSs (disabled by default in Windows 7). Does auto-run / auto-play work for other drives (test with a vendor DVD that supports auto-play)? If you are on Windows 7, you can find AutoRun in the control panel (search for auto
in top search box) - with settings for various devices. Check the settings and change as appropriate. You can also set policies on some OS editions: Wayback engine recovered link (method 2). Essentially you launch gpedit.msc
(which is not available on some OS editions, such as home edition).
Security Software: What security software are you running? Many security suites disable all auto-run and auto-play features of Windows - and for good reason. This used to be a leading malware vector - which is obviously a well known issue.
Some Links:
- autorun.inf doesn't work?
- Creating an AutoRun-Enabled Application
- Troubleshoot AutoPlay problems.
- Windows 7 autorun does not start when CD/DVD is inserted
- https://en.wikipedia.org/wiki/Autorun.inf
- How to disable the Autorun functionality in Windows
- Fix: Autoplay Not Working in Windows 10
- Creating autorun.inf - "Application not found" error
来源:https://stackoverflow.com/questions/51169066/trigger-setup-exe-when-i-mount-an-iso