PDA

View Full Version : 2577/autorun question


joemanb
13-07-2008, 08:19 AM
Has anybody gotten the 'uninstall' feature to work with autorun?

I'm using mortscript's autorun on a storage card to copy some shortcuts to the start menu when the card is inserted, and delete them when it is removed.

Everything works great; when I insert the memory card, the shortcuts get copied to the start menu as they should.

The problem is, when I remove the memory card, the autoexit script is never executed.

What's supposed to happen when the card is removed is that autorun should be executed with the 'uninstall' parameter which calls the autoexit script.

I created a shortcut to autorun with the 'uninstall' parameter and it calls the autoexit script as it should so It appears to me that when I remove the card, autorun is NOT executing as it should.

I've read that on some devices, the autorun feature has been disabled.

I'm wondering if the 'uninstall' feature has been disabled or is missing from the Wizard WM6.

If anyone can get this to work (or if it WON'T work) on their WM6 Wizard please respond. I'd like to know if this is just MY problem.

Also, does anyone know about any registry settings that will fix this?

Thanks!

pcwizzul
29-07-2008, 04:44 PM
Hi there!
Ineed to do exactly what you already got to do with mortscript and autorun.
I need to delete a file when the card is inserted. how can I do it?
thanks a lot in advance

joemanb
30-07-2008, 08:06 PM
everything you need is in the mortscript documentation:

'chapter 5 additional tools' explains how to automatically run a script when you insert your storage card.

'chapter 9.11 copy, rename, move, and delete files' explains, of course, how to delete files.

here is my autorun.mscr:

delete "\Windows\Start Menu\Programs\Games\Ports & Emulators\*.*"
rmdir "\Windows\Start Menu\Programs\Games\Ports & Emulators\"
mkdir "\Windows\Start Menu\Programs\Games\Ports & Emulators\"
xcopy ("\Storage Card\Ports & Emulators\*.lnk", "\Windows\Start Menu\Programs\Games\Ports & Emulators\")

Also, there is a thread linked below in 'development and hacking' titled 'mortscript example accumulation' with dozens of examples scripts by XDA forum users.

http://forum.xda-developers.com/showthread.php?t=289197

have fun