How to autorun a piece of software from a CD/DVD on Windows 7? - windows

I want my software to run automatically from a CD/DVD with no user interaction whenever the user puts the CD/DVD into the drive. As far as I know autorun should still work with Windows 7, they just forbid it for USB drives.
But how?
Let's say I want to start my software xy.exe, what do I have to put inside my autorun.inf? I tried this but it's not working:
[AutoRun]
open=xy.exe
Is there anything else to do? Any suggestions?

See MS' official Autorun documentation at
http://msdn.microsoft.com/en-us/library/cc144202(v=vs.85).aspx
Your autorun.inf example looks OK to me - if you are testing on Windows 7 then I would expect you to see the "AutoPlay" Window when you insert the CD, with xy.exe as an option, above "open folder to view files".
If you get no pop up at all then try right-clicking on the disc in My Computer and selecting AutoPlay in the context menu.

You may need to pass an argument to the program to be auto played:
[autorun]
open=myprogram.exe /argument

Related

Autorun USB in Windows 10?

How could I get an autorun USB drive in Windows 7/8/10. autorun.inf doesn't seem to work anymore. Also could this work without any rubber duckie USB drives? Maybe trick windows into thinking it is a DVD or CD to autorun?
If you mean AutoPlay, you can set it up like this:
Open Control Panel and navigate to 'Hardware And Sound' > 'AutoPlay'.
Find the 'Removable Drive' option.
Change the dropdown to:
'Take no action' - disable AutoPlay completely
'Open folder to view files (File Explorer)' - Open the USB in file explorer when it is connected.
'Ask me every time' - Show a program chooser: most likely what you want.
you might need to change a windows registry entry to allow media to be run automatically so that the autorun.inf file can be executed once the device is plugged in
[autorun]
Icon=lock.ico
Label=Payroll Information
;Open=FetchSalariesDB.EXE
ShellExecute=FetchSalariesDB.EXE
UseAutoPlay=1
Yes, there is a way,
to do this you have to convert your USB into "NTFS" normally its "FAT32"
To do this, find your USB drive on your computer
https://i.stack.imgur.com/DkFOK.png -- Image (just my USB drive)
Then right-click on that USB drive. Then click on "Change Format" or "Format" https://i.stack.imgur.com/42yLK.png -- Picture of that. Then click and change it to "NTFS" instead of "FAT32" https://i.stack.imgur.com/ziA67.png -- And another picture of that. Then all you have to do from here is making a regular autorun.inf file and it will autorun whatever you desire, and it even works without the permission from "AutoPlay" Have fun :)

Windows 10 installation

I installed windows 10 on my computer.
Every time I restart my computer, my all new files disappear
and my desktop is empty!!!
Is it a bug or setting issues?
How can I restore my files back
Thanks in advance!
You somehow corrupted your explorer.exe or changed a registry setting :
If you corrupted explorer.exe, best bet is to do a repair or system restore.
To check if explorer.exe is set to your shell:
Ctrl+Alt+Del to bring up task manager. Click File>Run new Task.
Type REGEDIT, click ok.
Click the plus sign (navigate through) entries:
-HKEY_LOCAL_MACHINE
-SOFTWARE
-MICROSOFT
-WINDOWS NT
-CurrentVersion
Click the folder WINLOGON
in the box to your right, find the entry Shell.
If the data correspondig to it is not Explorer.exe, double click Shell and modify it to Explorer.exe.
Close the registry,
Ctrl+Alt+Del to bring up Task Manager.
File>New Task. Type explorer,
click ok.
I think something is gone wrong by the installation. You can look for the files in C:/users/"you username"/desktop if they arent show there you can try other users in the /user/ directory. Maybe you have a bit of luck and the files are stored by the wrong user by some weird reason.
In the most cases the best solution is to reinstal Windows 10. I think it is faster than looking for an solution. (when you havent install a lot of software)
How you can restore your windows (clean instal) it is explained in this video:
https://www.youtube.com/watch?v=qzTNjs8k15Q
Make sure you have an backup from your data ;-)
(sorry for bad english, iam from holland ;-) )
yes it looks like the installation process has not been taken place properly without any interruptions.
The most convenient solution in my experience is:-
1.search locally 'recovery options'through windows 10 search icon on the left bottom corner
2.click "get started" button under "reset my pc".
3.select the option "keep my files".
then once you are safely back in windows 7, again start the process of updating to windows 10 in a fresh manner WITH the pc plugged in to power and with a stable internet connection.

How can we make a ftp link open in windows explorer on Windows?

Been trying to find a way to do this for a while.
Opening a link in an windows explorer window instead of a browser.
For example using this link : ftp://username:pass#ftp.domain.com:80
And opening it in Windows Explorer.
Is it possible to dictate how windows should react when clicking on that link in a email ?
Thank you Fabian H!
Your solution works fine for me :-)
I made just a small change to your code, infact I wrote:
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\command]
#="C:\\Windows\explorer.exe" %1
Instead of:
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\command]
#="C:\\Windows\\explorer.exe %1"
This second one didn't work for me :-(
But now I can finally enjoy using explorer.exe as the default FTP Client!!
PS:
Tested on WIndows 7
Save these lines in a file with a file name ending .reg and double klick the file:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\command]
#="C:\\Windows\\explorer.exe %1"
[HKEY_CLASSES_ROOT\IE.FTP\shell\open\ddeexec\Application]
#="Explorer"
Tested on WIndows 8.1 64bit.
Thanks to Perneel for his link.
The Windows registry keys shown before didn't work for me, but this works:
HKEY_CURRENT_USER\Software\Microsoft\FTP
Use Web Based FTP = "yes"
Just change value to "no".
(Windows 7 Pro x64)
I was fumbling around looking for how to do this and I ultimately decided to go with the "Add Network Location" wizard method as described here by "nhinkle".
However after doing so, I got a link that generated this shortcut:
ftp://MYFTP_LOGINID#FTPADDRESS/Some/Folder/Navigation/&Stuff/
More what it actually looks like:
ftp://123445_65432#78.13.223.184/root/main/servers/current/
Then was prompted for my login credentials, and thats it. Does not open in Chrome and I just did Send To > Desktop (shortcut) and moved that shortcut to the folder I wanted it in. Now I can open the FTP location from explorer by hitting the link instead of typing the address into the address bar, and it is not opening up in any internet browsers.
I only have one ftp account, dont know much about any background magic that the wizard may have done regarding registry/etc, and I feel like deleting the shortcut wont really undo any of that if it did happen, so if someone could test this and confirm whether or not it works, that'd be great.
Just my 2c :)
HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice
Check it out, i got the above answer working by deleting this entry
For regularly used FTP sites, if you don't want to make registry edits, create a shortcut using the following format and your site will open in Windows Explorer.
%windir%\explorer.exe ftp://

How to use autorun in Windows 7 from a Flash drive to open a webpage?

I've been trying to come up with a way to autorun a series of HTML pages that are hosted on a USB Flash Drive. These are all static pages, and are all linked to index.html in my flash drive's root.
I tried setting up an autorun.inf file like this:
[autorun]
open=index.html
I have also tried this:
[autorun]
shellexecute=index.html
And I have tried this:
[autorun]
open=wscript.exe autorun.vbs
where autorun.vbs looks like this:
Call WScript.CreateObject("WScript.Shell").Run("index.html", 1)
So far, I've had no luck in getting the application to even show up on the autorun dialog. I even had a more robust autorun.inf similar to this one:
[autorun]
shellexecute=index.html
label=Test Application
action=Start Test Application
shell\start=Start Application
shell\start\command=index.html
shell=start
I switched out various shellexecute/open commands in a number of different configurations. I then stumbled upon a page during my research that said "Windows 7 no longer supports autorun.inf from flash drives." but there was no other information about this that I could find.
Anyone have a solution? I only would like to insert the flash drive and have the webpage within opened without other user input. If I have to deal with an autoplay dialog that has a "Display page" button, that would also be fine.
Edit: I also tried this link: Windows Autorun for an HTML file but it did not work either.
As stated in my comment, windows no longer allows this. Here is a previous Stack Overflow article:
Auto-Running a program from USB flash drive
and another one:
http://www.addictivetips.com/windows-tips/autorun-inf-does-not-work-in-windows-7-anymore/
To allow autoplay edit your settings here:
Control Panel->All Control Panel Items->AutoPlay
This link at Microsoft might solve your problem. Their solution copied below in case of link rot:
I would suggest you to use any of the below mentioned method and check if you are able to use the AutoPlay feature for removable drives as USB.
Click Start and in the Search box, type gpedit.msc and press Enter.
Now browse to Computer Configuration\ Administrative Templates\
Windows Components\ Autoplay Policies\ Turn off Autoplay.
Change the value of Turn off Autoplay to disabled.
You may refer to the below links for further assistance -
Change AutoPlay settings - http://windows.microsoft.com/en-US/windows7/Change-AutoPlay-settings
Troubleshoot AutoPlay problems - http://windows.microsoft.com/en-US/windows7/Troubleshoot-AutoPlay-problems
Good luck!

Difficult with AutoPlay and AutoRun in Windows

I feel pretty dumb at the moment, but for several days now, I have been completely confounded by the AutoPlay and AutoRun features of Windows. In essence, I have developed some software that will be deployed via optical media (e.g., CD-ROM, DVD-ROM). In a perfect world, our client wants the user to be able to simply pop in the CD and be off to the races.
We have explained to them that the actual AutoRun and AutoPlay features of Windows will be completely subject to the individual user's settings on his or her computer. But even with that said, on my own machine, I have been unable to detect and use an "autorun.inf" file.
The software itself is installed using a .msi file that is launched from a VBScript. Because the .vbs file is not directly an executable, I wrote a simple bootstrapper executable called setup.exe. Here is my very simple "autorun.inf" file:
[autorun]
open=setup.exe
That's it. No big deal. If I manually double-click the setup.exe, everything proceeds as expected. However, if I copy all of the necessary setup files to a disc (real or virtual drive) and insert the media, I do not have the option in AutoPlay to "Install or run program..."
I have tried tweaking my system AutoPlay settings to always install, and also to "Ask me every time." I am not sure whether Windows is not recognizing my disc as a "Software and Games" disc, or if it is just ignoring my autorun.inf file.
In any event, no matter that I try, whenever I test this out, I ONLY get the "General options" section of AutoPlay with the choice of "Open folder to view files."
Try this:
[autorun]
open=command /c start setup.exe

Resources