none
Starting on SDCard RRS feed

  • Question

  • I want to automatically start an application just after the loading of WinCE 6.0.

    I have put a shortcut in \Windows\Startup, which is the simpliest way for me.

     

    This works perfectly when I start WinCE from a NAND Flash.

    But for some reasons, I want to keep the possibility to start WinCE and the application from a SDCard. And the same procedure doesn't work, my application is not launched.

    I have made plenty of tests, and found no solution.

    I have also remarked that when i put a shortcut on the desktop, it has not the correct icon. But I can use it to launch the application.

    The application executable is not on the WinCE image, but in a directory on the SDcard, seen as \Mounted Volume\Application\Appli.exe, which is what my shortcut contains.

     

    All happens like if the SDCard file system is not mounted at the moment of the scan of the \Windows\Startup directory.

    I have kept the default graphic explorer


    Is there a solution ?

     

    Which information can I post to help ?

     

    Thanks for your answers

     

    Thursday, August 26, 2010 7:30 AM

All replies

  • The best solution is to insert a "launcher" app in your OS image that waits to the SD to be mounted (RequestDeviceNotifications) and then executes your application.

    The time required to recognize the SD may vary and you can't assume that the filesystem is available when the startup shortcut are executed. It's safe to launch only apps that are inside the OS image or on the media where the hive registry is stored.


    Valter Minute
    Windows Embedded MVP
    http://geekswithblogs.net/WindowsEmbeddedCookbook
    Thursday, August 26, 2010 8:02 AM
  •  


    Thanks.

     

    I just tried (successfully) something like that (but more dirty, wait to be able to open a certain file known to be on the SD).

     

    This requires about 4 seconds, I just wander if it is possible to have a higher priority for the mount of the SD ?

     

     

    Thursday, August 26, 2010 9:27 AM
  • You may load the SDBUS driver earlyier in the boot process using the order entry in its \HKLM\Drivers\Builtin key.

     


    Valter Minute
    Windows Embedded MVP
    http://geekswithblogs.net/WindowsEmbeddedCookbook
    Thursday, August 26, 2010 9:35 AM
  • Thanks

     

    This saves about 1 second.

     

    As it is only a backup solution I think I will not try to save more for the moment.

     

     

    Thursday, August 26, 2010 9:52 AM
  • See http://geekswithblogs.net/BruceEitman/archive/2008/06/13/windows-ce-monitoring-for-disk-insertion-to-add-support-for.aspx
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Thursday, August 26, 2010 11:51 AM
    Moderator