Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autorun.inf on a usb can you get it to run a pdf?

Tags:

pdf

autorun

I've done some research all over the net, I guess I am just looking for conformation.

Due to how Microsoft has put security on autorun in vista and above. Autorun from a usb no longer works. Correct? It seems like it will still bring up the options to run .exe but for some odd reason I cannot get it to run a .pdf. This site has suggested that I load up a pdf reader and run that and then call it to run the pdf. But a generic pdf reader would still have to go through the install prior to running it, something I am trying to avoid.

The other idea I came up with was cause of this specialty usb manufactures have stated that they their usb drives can autorun files because they are formated to be local disks.

So after some experimenting and doing this I converted my usb to a local to see if that would work and pasting the autorun.inf in there with the correct code...

[AutoRun]
shellexecute=mypdf.pdf 
icon=mypdf.ico 
label=mypdf

sadly it does't work

Also after thinking about it creating a local disk would only work with the driver software that I loaded up onto that usb... so say it is a 64bit and the client has a 32bit it wont run. (right?)

Can someone just confirm that there is no way to autorun a pdf from a usb? or even have it as an option to select from when it is plugged in for the first time. I cannot believe I have spent an entire day trying to just get autorun to work.

Thanks for taking the time to read this nub question

like image 484
Dirly Avatar asked Dec 14 '11 02:12

Dirly


People also ask

Does AutoRun work on USB?

Creating an autorun USB drive allows for the customization of content as well as the personalization of the title of your flash drive and its auto play setup options.

What can I do with AutoRun INF?

Autorun. inf is a text file located in the root directory of the CD-ROM that contains your application. Its primary function is to provide the system with the name and location of the application's startup program that will be run when the disc is inserted.


1 Answers

Try using a PDF viewer which does not require installation, eg:

http://www.snapfiles.com/get/sumatrapdf.html

From this site:

http://www.snapfiles.com/features/ed_usb_software.html
like image 66
Russell Avatar answered Oct 29 '22 15:10

Russell