none
WinCE 7 - Clean explorer desktop only with shortcuts to custom applications? RRS feed

  • Question

  • Hello,

    I have a WinCE 7 on my Cortex-A8 evaluation kit.

    I've been customizing the OS, to parition the NAND and boot up with necessary services and drivers.

    I'm booting the explorer.exe and showing the desktop with all icons removed.. heading for 'kiosk mode'.

    Now I would like to add a shortcut to my custom application, which is located on a separate partition in NAND.

    Well I can put it there, using FTP, but how can I do it as part of my build?

    I'm kinda lost in all those .bibs and .dats.. :-)

    Thanks.

    Palsson

    Thursday, February 9, 2012 2:51 PM

Answers

  • Hello Bruce,

    Thanks for your reply.

    By adding the .lnk to the FILES folder and modifying platform.bib and platform.dat according to Lucas, it finally works :-)

    Many thanks.

    Regards

    Palsson

    • Marked as answer by gpstock Thursday, February 9, 2012 5:19 PM
    Thursday, February 9, 2012 5:19 PM

All replies

  • Create the app.lnk file as explained in http://msdn.microsoft.com/en-us/library/ms861519.aspx 

    Add the .lnk file in project.bib:

    app.lnk          $(_FLATRELEASEDIR)\app.lnk                    NK SH

    Put in the project.dat file:

    Directory("\Windows\Desktop"):-File("app.lnk","\Windows\app.lnk")


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

    Thursday, February 9, 2012 3:03 PM
  • By the way, since you have only the link to the customer application you may want to:

    1) place the link in the startup folder rather than the desktop so the app is automatically run at boot

    2) use the customer application as the shell (see http://msdn.microsoft.com/en-us/library/aa452831.aspx)


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

    Thursday, February 9, 2012 4:24 PM
  • Hello Luca,

    Thanks for quick reply.

    I've bee trying with something similar without success, but did it once more following your guide with same no-go.

    My shortcut is really not appearing on the desktop!  :-)

    My _FLATRELEASEDIR directory is this one, I assume: 'WINCE700/OSDesign/MyDesign/MyDesign/RelDir/AM35x_BSP_ARMV7_Release'

    I create 'app.lnk' and I add this line (Mounted_Volume2 is the name of my NAND partition I created):

    24#\Mounted_Volume2\app.exe

    In my platform.dat (which is part of the BSP from Texas) I add this line:

    Directory("\Windows\Desktop"):-File("app.lnk","\Windows\app.lnk")

    And in my platform.bib I add this line:

    app.lnk       $(_FLATRELEASEDIR)\app.lnk         NK SH

    I'm using teh platform.dat and .bib files because my application app.exe is not a subproject of my OS solution, but created outside of platform builder.. Its a managed app using an SDK based on my OS.

    What am I doing wrong?

    /Palsson

    Thursday, February 9, 2012 4:36 PM
  • Where are you placing app.lnk on you dev PC, and where are you editing the files?   My guess is that you are doing this in the _FLATRELEASEDIR.   The _FLATRELEASEDIR contents are deleted when buildrel runs.

    So, do the following:

    1. Add app.lnk to your platform FILES folder
    2. Edit platform.bib and platform.dat in your platform FILES folder

    Now, if you have a cesysgen folder in your platform, run sysgen platform.   If not just run buildrel and makeimg.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com

    • Marked as answer by gpstock Thursday, February 9, 2012 5:19 PM
    • Unmarked as answer by gpstock Thursday, February 9, 2012 5:19 PM
    • Proposed as answer by Bruce EitmanModerator Thursday, February 9, 2012 5:43 PM
    Thursday, February 9, 2012 4:53 PM
    Moderator
  • Hello Bruce,

    Thanks for your reply.

    By adding the .lnk to the FILES folder and modifying platform.bib and platform.dat according to Lucas, it finally works :-)

    Many thanks.

    Regards

    Palsson

    • Marked as answer by gpstock Thursday, February 9, 2012 5:19 PM
    Thursday, February 9, 2012 5:19 PM