|
Prev: Visual Studios 2005
Next: SHBrowseForFolder?
From: r_z_aret on 18 Nov 2005 15:33 On Fri, 18 Nov 2005 08:21:57 -0800, "Cush" <Cush(a)discussions.microsoft.com> wrote: >Hi, >I have got some good pointers from your suggestions. I have done the >following, can you let me know your thoughts about this: > >1) I have created a folder in the "iPaq File Store" called "2577" >2) Then I renamed my restore exe to "autorun.exe" and placed it in this folder >3) Carried out a hard reset and after the initial setup routine my program >launched - this is exactyl what I want! As I read points 1 and 2, I was thinking NO THAT WON'T WORK. But then I read 3. Dealing with this _important_ issue does, indeed, require creativity. Way more than it should. And you really did read, and interpret, my note correctly. > >Now I have noticed that my "autorun.exe" has appeared in \\My >Device\Windows\autorun.exe. > >Now if I do soft reset my program will not launch from its location but if I >delete this autorun.exe from \\My Device\Windows\ and then do a soft reset my >program will be launched from flash - \\iPaq File Store\\2577. > >Can I assume this is a workaround and that I need not worry any more or what >do you think? > >Is there already an autorun.exe present and am I copying my version over the >top of it or what? > >Let me know what you think > >Thanks again, > >Cush > > >"r_z_aret(a)pen_fact.com" wrote: > >> For a while, some semblance of a standard existed in which an >> executable called autorun.exe would run if it were on a storage card >> in a folder with the appropriate name for the device's CPU (see >> earlier post from ctacke). But as some OEMs added persistent storage, >> the rules changed. If you use google to look up backup, ipsm, and/or >> autorun in this newsgroup, you should find some discussions that will >> help you find a solution, but you will almost certainly need to adapt >> and experiment. >> >> >> On Mon, 14 Nov 2005 02:25:08 -0800, "Cush" >> <Cush(a)discussions.microsoft.com> wrote: >> >> >Hi, >> >Ok, let me explain what I have done first of all >> > >> >1. Created a small program for Pocket PC 2003 >> >2. Copied it to normal memory AND Flash memory for backup >> > >> >Now, let me explain want I am doing: >> > >> >1. Perform a soft reset - both copies of program are ok >> >2. Perform a hard reset - copy in Flash OK but copy in normal menory - Gone! >> > >> >This is as expected. >> > >> >Now, let me explain what I have also done. >> > >> >1. Created a small program called restoreprogram.exe which does the >> >following when run >> > 1. Looks in the directory where the original program should be >> > 2. If it is not there then copy the program from flash - restore it! >> > >> >I want this restoreprogram.exe to run every time a reset is done - I have >> >done this >> >exact procedure on Handheld PC (various Casio PDAs) but on Handheld PC there >> >is a directory in the flash memory and any program that is placed inside this >> >is run when a reset is carried out. >> > >> >My question is - is there such a directory to store this restore program on >> >Pocket PC2003 so that when a reset is carried out is will run - (Like the >> >Startup folder only the contents of this gets wiped when a hard reset is done) >> > >> >Thanks for any help anyone can give me >> > >> >Cush >> >> ----------------------------------------- >> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message). >> >> Robert E. Zaret, eMVP >> PenFact, Inc. >> 20 Park Plaza, Suite 478 >> Boston, MA 02116 >> www.penfact.com >> ----------------------------------------- To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message). Robert E. Zaret, eMVP PenFact, Inc. 20 Park Plaza, Suite 478 Boston, MA 02116 www.penfact.com
From: smooser.moves on 29 Nov 2005 22:24 Don't know if this is any help but we've had this requirement before on a project and here's some information I've discovered. If there is a file called \2577\Autorun.exe on your device's internal storage card it will be run after every hard reset, or after the next soft reset. It will be copied to the \Windows folder and executed from there. If you want this application to be run during every soft reset you should put a shortcut to the application under \Windows\Startup - this way the application will get execution control after either a hard or soft reset. This becomes somewhat more complex when dealing with a Windows Mobile 2005 device as they operate entirely from persistent memory meaning a hard reset is functionally the same as a soft reset. At present I'm trying to devise a system of telling the two apart. Hope this helped? This is my first post.
From: "<ctacke/>" on 29 Nov 2005 23:13
The answer might be as simple as checking the registry here: [HKEY_LOCAL_MACHINE\Comm] BootCount=??? If it's 1 it's a hard reset, > 1 is a soft reset. Maybe - I've not checked to see if that key gets persisted on a WM 5.0 device. -Chris <smooser.moves(a)gmail.com> wrote in message news:1133321051.444916.105010(a)g14g2000cwa.googlegroups.com... > Don't know if this is any help but we've had this requirement before on > a project and here's some information I've discovered. If there is a > file called \2577\Autorun.exe on your device's internal storage card it > will be run after every hard reset, or after the next soft reset. It > will be copied to the \Windows folder and executed from there. If you > want this application to be run during every soft reset you should put > a shortcut to the application under \Windows\Startup - this way the > application will get execution control after either a hard or soft > reset. > > This becomes somewhat more complex when dealing with a Windows Mobile > 2005 device as they operate entirely from persistent memory meaning a > hard reset is functionally the same as a soft reset. At present I'm > trying to devise a system of telling the two apart. > > Hope this helped? This is my first post. > |