Link to home
Start Free TrialLog in
Avatar of ncheeku14
ncheeku14

asked on

launching application on startup from a storage card + WM5 smartphone

Hi,

I have an application installed on the storage card on my i-mate SP5. I want to launch it when i restart the device. Simpley putting the shortcut in the Windows\Startup folder to the storage card location does not seem to work. Any idea how to do that...

Thanks...
Avatar of Mikal613
Mikal613
Flag of United States of America image

well according to your scenario the storage card may not be initialized yet. Try making a shortcut to your program and then adding the shortcut to your startup folder.
Avatar of Mikeh926
Mikeh926

You need to create an application called autorun.exe in a directory on your storage card named 2577 (which is an identifier meaning ARM CPU). This can either be your main app, or a launcher program that runs your main app, or whatever you want to run automatically.

WM5 will run this exe whenver the card is inserted. On the SP5 (where the card is under the battery, so you can't insert it whilst the device is running) it will run it automatically after a warm reset.

For more information see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5conmanagingapplicationsonstoragecardswithautorunexe.asp

Thats not what hes asking.....
Maybe, but it is a way of launching an app from a storage card when the device boots up - and it has the advantage that nothing has to be installed on the device, so it will still work if you move the card to a different device.
hes not gonna insert the Storage card every time he soft resets just to have an app run.
He doesn't have to. WM5 will autorun the app from the storage card when it soft resets. You don't have to remove or reinsert the card. In any case, on an SP5 you can't remove or insert the card whilst the device is powered up.

Avatar of ncheeku14

ASKER

hello folks...actually i have already done what Mikeh926 mentioned. I understand that the autorun.exe will be called with the install parameter and from there i will have to make a call to my application. Rather than doing it I can have a shortcut to an application residing in the device (this application i will create) and will run on startup and will inturn invoke the application on the storage card.
hence

"well according to your scenario the storage card may not be initialized yet. Try making a shortcut to your program and then adding the shortcut to your startup folder."
Yes you could make a shortcut in the device\windows\startup directory to the storage card. As for the card not being initialized, in principle this could be a problem if the shortcut is on the device and not on the card. I have actually tried both methods on on a device and they both appear to work (so I guess that card initialisation is not an issue), so I guess it's depends on whether you want the application to launch regardless of which deivce the storage card is plugged into or not.

Mike.
Folks, it does not seem to work either, Is there any sort of timeout associated where the WM5 checks and if the application doesnot startup it gets out of it...
What does not work? The shortcut on the device or the one on the card? Are you sure your shortcut file is correct?
the shortcut on the device. :). Also, if i click on the shortcut in the startmenu , the application starts up.
Ok, let me see if I have this correct: You have a shortcut to your app on your memory card on your device in \windows\startup. If you manually click on the shortcut from file explorer your app starts (therefore the shortcut is correct). If you warm reset the device your app does not start?
yes, :)..thats the problem.
ASKER CERTIFIED SOLUTION
Avatar of umahesh
umahesh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial