The Autorun.inf file in my USB's root directory does not seem to have an effect on the computers I insert the USB drive into. It does not change the icon for the drive with the one of the PortableApps Menu icon, and the drive doesn't get assigned the label name.
I have tried this mainly on 3 machines and the pattern I'm seeing is that the first time you insert the USB drive into the computer everything shows up ok (meaning the settings are being read from the autorun.inf file), but on subsequent insertions the settings aren't read.
I have a 2 GB DataTraveler from Kingston that used to have the U3 app, but I removed the app because I thought it was a piece of trash (still do) compared to PAM.
Is anyone else experiencing the same problem, or may have some suggestions on how I may begin to look at what is causing this?
Thanks.
I have the exact same drive. That happens for me on certain computers.
Actually, just Win 2000, and Win Vista that I've noticed. Maybe it's the users settings, I dunno.
Same here...
Same for my 1GB Kingston Data Traveller on Windows 2000 SP 4.
I'll try on an XP box. Also I have lots of synchronization and Startup/Shutdown problems once I start it up manually on the Windows 2K box.
See my recent post in the Portable Apps forum.
Ian Hulin
Ian Hulin
I've just tried this on my Laptop with XP Professional.
Ian Hulin
Ian Hulin
On some machines, autorun is simply disabled for security reasons.
Could that be the case?
"There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!" - Richard P. Feynman
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
I'm having the same issue with my Win2k not excecuting the Autorun.inf file.
Could anyone who has a working Autorun.inf post the contents?
-----
American by birth.
Christian by choice.
American by birth.
Christian by choice.
"There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!" - Richard P. Feynman
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
I have a Creative MP3 player.
When I plug my MP3 player into a Windows XP machine (via USB cable), I get a dialog box, asking how I want to handle the new device
(its the same menu you get, when you put a CD in with mixed-media)
. That is the default behavior BEFORE i install PortableApps.AFTER I install PortableApps, I get no pop up window, at all. Windows gives no visual notice that a USB device has been added. But, if I go into My computer, the USB drive is there, and I can "manually" launch the portableApps menu. And the program operates normally, and closes normally.
It just will not Launch Automatically.
I have tried on three seperate XP machines (including a fresh install of Windows - where EVERYTHING is still at its default settings).
[Autorun]
UseAutoPlay=1
Icon=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
Label=PortableApps
shellexecute=MyAutoRun.bat
Try UseAutoPlay=1
it worked for me
Have an Awesome Day!
Your solution seems to be referencing other things. Where is MyAutoRun.bat from?
"... respect, all good works are not done by only good folk. For here, at the end of all things, we shall do what needs to be done."
--till next time, Jameson Stalanthas Yu -x- >
Don't be an uberPr∅. They are stinky.
[Autorun]
UseAutoPlay=1
Open=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
Action=Start PortableApps
Icon=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
Label=PortableApps
Sorry, That was my Autorun.inf. Here's the original with
UseAutoPlay=1
This will bypass the startup menu and run the program referenced.
MyAutorun.bat simply runs the ClamWin command line memory scanner before starting the portableappsmenu.
MyAutorun.bat:
@echo off
title Portable Drive Startup Procedure
echo *******************************************************************
echo * *
echo * Please wait while ClamWin scans the host computer system. *
echo * *
echo * Checking for Viruses in the computer memory that could *
echo * infect your portable drive. *
echo * *
echo * A report will be generated, *
echo * please review the SCAN SUMMARY upon completion. *
echo * *
echo *******************************************************************
PortableApps\ClamWinPortable\App\clamwin\bin\freshclam.exe --datadir=".\PortableApps\ClamWinPortable\Data\db" --config-file="PortableApps\ClamWinPortable\App\clamwin\bin\freshclam.conf" > VirusMemoryScanResults.txt
PortableApps\ClamWinPortable\App\clamwin\bin\clamscan.exe --infected --database=".\PortableApps\ClamWinPortable\Data\db" --memory >> VirusMemoryScanResults.txt
start /max VirusMemoryScanResults.txt
start StartPortableApps.exe
Have an Awesome Day!
That is a great idea, to run clamwin. I never thought of doing that, as all the computers I plug into usually have virus protections up to date and running, and I never take stuff in, I just port stuff out of my usb.
"... respect, all good works are not done by only good folk. For here, at the end of all things, we shall do what needs to be done."
--till next time, Jameson Stalanthas Yu -x- >
Don't be an uberPr∅. They are stinky.
I couldn't resist adding a bit to this, since it seemed like such a great idea.
Here's my Autorun.inf:
and here's the Autorun.bat that goes with it: [Line wraps marked » - RM]
NOTE: to see what the symbols will display as, copy and paste this to Notepad, then change your font to 'Terminal'.
Michael D. Shook
I'm gonna give it a try right now!
I did! And it's Awesome!
Thanks.
Have an Awesome Day!
Two things:
I just realized that
could be changed to just
This is a "new" feature of the SET command that was added with NT4, but it does prevent a file create/delete cycle and runs much faster (in fact it runs so fast you can delete the "Welcome" screen as it will not be displayed long enough to see). So if you only use newer versions of Windows, you should use this instead.
Also, I had to follow the directions in the ClamWin help file to create a freshclam.conf file.
Michael D. Shook
"Also, I had to follow the directions in the ClamWin help file to create a freshclam.conf file"
@shookmon
Can you please explain this ...
On page 15 of the ClamWin help file (for me it's in .\PortableApps\ClamWinPortable\App\clamwin\bin\manual_en.pdf) you can see what to do.
But, here's the contents of my freshclam.conf file just in case. Just put this in the same directory as above.
Michael D. Shook
for the code - i will look at the help too
In order to know which way to determine the day to force a virus scan (older OSs use the slower method), you can replace
with
Michael D. Shook
I noticed that if my USB drive letter changed I got an error, something like:
libclamav.dll not found.
I put a cd\ command at the start of the bat file, and it seems to be working now even when the drive letter changes.
You've taken my modest, amature programming idea to a whole new level.
This is all consul's fault.
Thanks for the great input!
Have an Awesome Day!
Which errored? freshclam or clamwin?
Michael D. Shook
I'm pretty sure it was clamscan.
Have an Awesome Day!
I am unable to reproduce it.
Hmmmmmm
Michael D. Shook
I had a similar error - I'd missed some of the wrapped lines marked with »
Works great - Launches PIM now too
I changed the title at every step, kinda stupid, kinda cool.
Have an Awesome Day!
Dude that is Awsome!! (Like Bensawsome)
Bensawsome
AKA BJ
My Website (Still under development)
"We can mean anything. We three, we the people, or my personal favorite: WEEEEEEEEEE!!!!"
iLike Macs, iPwn, However you put it... Apple is better ^_^
"Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world..."
Liked your idea to autorun a ClamWin scan of the memory. But I don't like the ugly DOS prompt. So I wrote a nice little program, that will start a scan, but only show a blinking tray icon. If ClamWin finds anything, a window will pop up and tell you what it found. You then can save the report off as a file.
And yes it has a GUI to set the settings. It will pop up the first time you run the program, and you can reset the settings with the tray icon menu, or delete the .ini file. If you delete the .ini, the prefs GUI pops up again next time you run.
Here are some screenshots.
MsgBox at Start http://www.divshare.com/img/3829513-1e5.png
Normal Tray Icon http://www.divshare.com/img/3829514-a89.png
Prefs GUI http://www.divshare.com/img/3829515-f78.png
Tray Icon Clean http://www.divshare.com/img/3829516-ccc.png
Tray Options http://www.divshare.com/img/3829517-af2.png
Found Virus Tray http://www.divshare.com/img/3829519-4fb.png
Found Virus GUI http://www.divshare.com/img/3829518-492.png
And here is the .zip file containing the program and the source. If anyone finds a bug in the program, just tell me and I'll try to fix them.
http://www.divshare.com/download/3829520-a78
Hope you find this useful!
BluePlanet
I think that computers run on smoke. Why? Because when the smoke comes out they don't work anymore!
but where should I put the app folder and how to start portable apps immediately after the scan? Is there a chance to add another pop up like
" Would You like to start "app XXX" now" yes/no ,the .exe name being editable in the .ini or via gui?
"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda
I could add that if you would like. I wasn't intending this to be a program launcher, because of the long scan time of clamwin. I didn't want to wait to launch portable apps until the scan was done. But I will make another version that will have an app launcher built in. You can put the app anywhere you like, it doesn't matter.(I would recommend the portable apps folder so it pop's up in the menu) Just as long as it can find the clamwin portable folder. I'll compile a new version and post it later today!
I think that computers run on smoke. Why? Because when the smoke comes out they don't work anymore!
Could I suggest you start a new topic when you get a new version to post? It seems to me that it's gone beyond the original poster's question. Besides, this looks interesting in its own right.
MC
But first I'm going to add a bunch of new things I forgot to put into the first version. I forgot to have it use freshclam first and make sure the virus database is up to date. And I'll put in an option which detects if you have scanned the computer already today. (date and computer signature recognition) I'll create a new topic with version 2.XX as soon as I can.
I think that computers run on smoke. Why? Because when the smoke comes out they don't work anymore!
seems like a handy utility using existing Apps in a clever way.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
to explain my request a bit :
up to now I start conyey portable with the autorun.inf ,
then - if necessary - I go on with clamwin portable(aka your app)from the cp quicklaunch
and end up with launching the PAM from cp quicklaunch.
Perhaps it would be easier with starting your app from autorun.inf and then, after approving or rejecting to a memoryscan have the ability to start PAM (or some more apps) from a simple starter GUI or cancel. Desperately?? waiting for the testing post
"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda
In the options, you can specify an application to launch if the memory is clean. Perhaps I'll add another GUI to allow multiple apps to be run, but for now I'm being lazy.
I think that computers run on smoke. Why? Because when the smoke comes out they don't work anymore!
Go to... https://portableapps.com/node/11553
FYI: I pulled out the old version, the download link on this page is now dead. The new version is in the new topic.
I think that computers run on smoke. Why? Because when the smoke comes out they don't work anymore!
--memory with a *.bat, what a simple but great idea --works like a charme
Thanks ZAP
clarify for me please. are you trying to make it so the suite runs automatically upon insertion of the USB drive or are you only trying to change the Icon and label of the drive?
They are trying to make the applications run automatically.
One question, I want to make the menu appear automatically. Thanks to you guys I've been fooling around and the best I've managed to get is the dialog that prompts you to take an action when I insert my drive to tell me If I want to start the Menu. How can I make it start automatically without any prompts or dialog windows???
Here's how my autorun.inf looks like:
[Autorun]
Open=F:\PortableApps\PortableAppsMenu\PortableAppsMenu.exe
icon=Archer.ico
label=Julio ¦ Kingston 512MB
Action=Start PortableApps
Shell\Read1\Command=StartPortableApps.exe
Shell\Read1=&Start PortableApps
The two Shell things at the end *might* be a dead weight, but I really dont get this lol.
Thanks for the assistance!
cant.
Unless you install some software on the PC.
And I suppose you don't want that, right?
“Science is the belief in the ignorance of the experts” - Richard P. Feynman
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Change "F:\" to ".\" this whay it will work regardless of the drive letter.
---------------
"Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river." -- Cyril Connolly
"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin
The two shell things are so when you right click on the drive letter in explorer, you have a menu option to start Portable Apps.
Michael D. Shook
Thanks guys! I have corrected the issue, but still the menu wont start automatically.
I have checked if Windows prevented AutoRun, so i went to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom\Autorun, (the type REG_DWORD) and the hex value was 1, meaning that it's on.
Could it be an issue with my USB stick? I've read that some types of USB sticks just dont allow them...
by the way, here's the dialog box i get when I insert the stick
http://i29.photobucket.com/albums/c280/ArcherIV/New_1.jpg
Windows has another key for USBs I think, but it's a per-computer setting. That's the best you can get without modifying the key on every computer.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.
"If you're not part of the solution, you're part of the precipitate."
I appreciate a lot all the inputs. Thanks a lot for the help guys!
in your autorun.inf file try:
I have Win XP and it worked for me, that is, until I updated my adobe photo album, and now it doesn't, still working on that issue.
Good luck.
J.
I found the problem. Right Click on the drive letter in my computer, go to the autoplay tab, on every option choose take no action and apply. Now my autorun.inf is working again.
J.
Have an Awesome Day!
I m sorry for you guys, but since a Stupid Virus replaced my Autorun.inf, where else should i come? Thankyou guys.
Thanks
__________________________________________________________________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiot
__________________________________________________________________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiot
Sounds like the autorun feature is inherently blocked in Windows. U3 gets around this by creating a CDFS partition on the USB drive which fools Windows into thinking a CD has been inserted. Anyone who knows how to get around this with PortableApps, jump in.
http://www.microsoft.com/whdc/device/storage/usbfaq.mspx
Q: What must I do to trigger Autorun on my USB storage device?
The Autorun capabilities are restricted to CD-ROM drives and fixed disk drives. If you need to make a USB storage device perform Autorun, the device must not be marked as a removable media device and the device must contain an Autorun.inf file and a startup application.
The removable media device setting is a flag contained within the SCSI Inquiry Data response to the SCSI Inquiry command. Bit 7 of byte 1 (indexed from 0) is the Removable Media Bit (RMB). A RMB set to zero indicates that the device is not a removable media device. A RMB of one indicates that the device is a removable media device. Drivers obtain this information by using the StorageDeviceProperty request.
That is great information, would you consider adding it as a reply to the first post on this thread?
https://portableapps.com/node/9241
Have an Awesome Day!
The autolauncher4U3 Smithtech made if it used to be a u3 drive (good way to make use of that function)
Insert original signature here with Greasemonkey Script.
I have problem. If I make autorun.inf and replace it to old (hiden and system atributes), it change back to old. Why?
Physic, Firefox and Google forever!!!