none
Kiosk Dotnet App RRS feed

  • Question

  • Hi ,

    Is there  any step by step guide , for making dotnet application run in kiosk mode ? Im trying to build Windows ce6 image that directly bootable into my application (without Windows Shell or desktop).

    My .net program are based on simple task like Rs323 com port Sending and receiving , so i guess , i need to have some delay before running the main program ,  for Board and dotnet dll get loaded first , right ?

    I already tried with Init and Startup in reg key +autolunch add on  , but still no hope :(

    also there is some help in this article that i posted before

    http://social.msdn.microsoft.com/Forums/en-US/winembplatdev/thread/dbce4f97-8cfe-4467-a831-9fb87ab2eb49

    but i couldnt figure out how to make it works :(


    Ahad Porkar Rezaeye (MCPD,MCITP) Software Engineer ahad.porkar@hotmail.com www.artasoft.net


    • Edited by Ahad porkar Saturday, February 18, 2012 1:06 PM
    Saturday, February 18, 2012 1:03 PM

Answers

  • Follow the steps as :

    Where is your actual application ? is it build with the BSP as a subproject or an application built with SDK

    After built where are you keeping this .exe file ? Is it under windows directory or somewhere else

    If your application is XYZ.exe under windows, do the following reg setting unfer project.reg file

    [HKEY_LOCAL_MACHINE\init]
    "Launch300"="XYZ.exe"
    "Depend300"=hex:0A,01,02,03,04,05,06,07,08,09,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30,31,32,33,34,35,36,37,38,39,3A,3B,3C,3D,3E,3F,40,41,42,43,44,45,46,47,48,49,4A,4B,4C,4D,4E,4F,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64

    (depend300 has several ides you may not have to include all hence select appropiate as per your requirement)

    If your application is running from storage card you may have to do this :

    a) the .exe needs to be in SD Card and project .reg file needs to be updated as

    [HKEY_LOCAL_MACHINE\init]
    "Launch300"="\\SD card\\XYZ.exe"
    "Depend300"=hex:0A,01,02,03,04,05,06,07,08,09,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2

    b) create a launcher application as a BSP sub project and try to launch your .net application from there using the function as 

    CreateProcess(L"\\SD Card\\XYZ.exe",\
                    NULL, NULL, NULL, NULL,CREATE_NEW_CONSOLE, NULL, \
                    NULL, NULL, &ProcessInfo);

    The launcher application is launcher.exe, to launch it at boot time. edit project.reg file as

    ;[HKEY_LOCAL_MACHINE\init]
    ;"Launch301"="Launcher.exe"
    ;"Depend301"=hex:0A,01,02,03,04,05,06,07,08,09,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30,31,32,33,34,35,36,37,38,39,3A,3B,3C,3D,3E,3F,40,41,42,43,44,45,46,47,48,49,4A,4B,4C,4D,4E,4F,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64

    In this case the launcher application will launch your .net application in case of any error CreateProcess will fail which you could be able to see the error code.

    Hope this may help .

    All the best !

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    • Marked as answer by Ahad porkar Tuesday, February 21, 2012 8:47 AM
    Monday, February 20, 2012 6:59 AM

All replies

  • Follow the steps as :

    Where is your actual application ? is it build with the BSP as a subproject or an application built with SDK

    After built where are you keeping this .exe file ? Is it under windows directory or somewhere else

    If your application is XYZ.exe under windows, do the following reg setting unfer project.reg file

    [HKEY_LOCAL_MACHINE\init]
    "Launch300"="XYZ.exe"
    "Depend300"=hex:0A,01,02,03,04,05,06,07,08,09,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30,31,32,33,34,35,36,37,38,39,3A,3B,3C,3D,3E,3F,40,41,42,43,44,45,46,47,48,49,4A,4B,4C,4D,4E,4F,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64

    (depend300 has several ides you may not have to include all hence select appropiate as per your requirement)

    If your application is running from storage card you may have to do this :

    a) the .exe needs to be in SD Card and project .reg file needs to be updated as

    [HKEY_LOCAL_MACHINE\init]
    "Launch300"="\\SD card\\XYZ.exe"
    "Depend300"=hex:0A,01,02,03,04,05,06,07,08,09,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2

    b) create a launcher application as a BSP sub project and try to launch your .net application from there using the function as 

    CreateProcess(L"\\SD Card\\XYZ.exe",\
                    NULL, NULL, NULL, NULL,CREATE_NEW_CONSOLE, NULL, \
                    NULL, NULL, &ProcessInfo);

    The launcher application is launcher.exe, to launch it at boot time. edit project.reg file as

    ;[HKEY_LOCAL_MACHINE\init]
    ;"Launch301"="Launcher.exe"
    ;"Depend301"=hex:0A,01,02,03,04,05,06,07,08,09,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30,31,32,33,34,35,36,37,38,39,3A,3B,3C,3D,3E,3F,40,41,42,43,44,45,46,47,48,49,4A,4B,4C,4D,4E,4F,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64

    In this case the launcher application will launch your .net application in case of any error CreateProcess will fail which you could be able to see the error code.

    Hope this may help .

    All the best !

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    • Marked as answer by Ahad porkar Tuesday, February 21, 2012 8:47 AM
    Monday, February 20, 2012 6:59 AM
  • Thanks Misbah khan,

    I will try that :)


    Ahad Porkar Rezaeye (MCPD,MCITP) Software Engineer ahad.porkar@hotmail.com www.artasoft.net

    Tuesday, February 21, 2012 8:47 AM