Auto Start an application

  • Hi


    I am trying to get my application to run at start up time. If I use
    !>reg open \init<LF>
    OK
    !>reg enum<LF>
    OK -> reg enum key \
    00 "BootVars" \
    OK -> reg enum value \
    00 "Launch200"=string:\ffsdisk\test.exe \
    01 "Launch20"=string:device.dll \
    02 "Launch30"=string:gwes.dll \
    03 "Depend30"=hex:14,00 \
    04 "Launch60"=string:servicesStart.exe \
    05 "Depend60"=hex:14,00 \
    06 "Launch50"=string:explorer.exe \
    07 "Depend50"=hex:14,00,1e,00 \
    08 "Launch99"=string:ndcucfg.exe \
    09 "Depend99"=hex:1e,00 \
    10 "Launch100"=string:CheckAutoStart.exe \
    11 "Depend100"=hex:1e,00 \
    OK


    my test.exe runs as expected. But, I want it to run from the Storage card. If I use


    !>reg del value Launch200<LF>
    OK
    OK
    !>reg set value Launch200 string Storage Card\test.exe<LF>
    OK
    OK
    my reg looks as shown below.


    !>reg enum<LF>
    OK -> reg enum key \
    00 "BootVars" \
    OK -> reg enum value \
    00 "Launch200"=string:Storage \
    01 "Launch20"=string:device.dll \
    02 "Launch30"=string:gwes.dll \
    03 "Depend30"=hex:14,00 \
    04 "Launch60"=string:servicesStart.exe \
    05 "Depend60"=hex:14,00 \
    06 "Launch50"=string:explorer.exe \
    07 "Depend50"=hex:14,00,1e,00 \
    08 "Launch99"=string:ndcucfg.exe \
    09 "Depend99"=hex:1e,00 \
    10 "Launch100"=string:CheckAutoStart.exe \
    11 "Depend100"=hex:1e,00 \
    OK
    !>


    i.e. 00 "Launch200"=string:Storage \


    does not show test.exe and my app does not run.


    How do I get the Storage Card\ test.exe to appear in the path
    I have read the other posts on the forum which ids how I got to this point.


    Cheers
    Peter

  • hello,
    if the string contains spaces, enter it as following (within quotation marks):

    Code
    1. reg set value Launch200 string "/storage card/test.exe"
    2. ...

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Try to set it like that:


    Code
    1. reg set val Launch200 string "\Storage Card\application.exe"


    and make depend to:


    Code
    1. reg set val Depend200 hex 14,00,1e,00


    and then


    Code
    1. reg save


    DKuhne.-

    F&amp;S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hi Thanks for the reply


    I set it as you suggested and got
    00 "Depend200"=hex:14,00,1e,00 \
    01 "Launch200"=string:\Storage Card\test.exe \
    02 "Launch20"=string:device.dll \
    03 "Launch30"=string:gwes.dll \
    04 "Depend30"=hex:14,00 \
    05 "Launch60"=string:servicesStart.exe \
    06 "Depend60"=hex:14,00 \
    07 "Launch50"=string:explorer.exe \
    08 "Depend50"=hex:14,00,1e,00 \
    09 "Launch99"=string:ndcucfg.exe \
    10 "Depend99"=hex:1e,00 \
    11 "Launch100"=string:CheckAutoStart.exe \
    12 "Depend100"=hex:1e,00 \
    OK
    When I reboot my app did not run
    So I removed the Depend setting
    00 "Launch200"=string:\Storage Card\test.exe \
    01 "Launch20"=string:device.dll \
    02 "Launch30"=string:gwes.dll \
    03 "Depend30"=hex:14,00 \
    04 "Launch60"=string:servicesStart.exe \
    05 "Depend60"=hex:14,00 \
    06 "Launch50"=string:explorer.exe \
    07 "Depend50"=hex:14,00,1e,00 \
    08 "Launch99"=string:ndcucfg.exe \
    09 "Depend99"=hex:1e,00 \
    10 "Launch100"=string:CheckAutoStart.exe \
    11 "Depend100"=hex:1e,00 \
    OK
    and it still did not run . Also, there was no error reported it just booted into ce as usual
    My application is definitely on the storag card and is called test.exe and I I click on it from explorer it runs. Also, if I run it from "Run" as "storage card\test.exe" it runs.
    Can you see my mistake?


    Cheers
    Peter

  • Try to set depend to 63,00 (wait until ndcucfg.exe is ready). At this point the storage card should also be ready.


    What happens when you start your app (with settings above) from \FFSDISK ?
    (Only for test purposes).


    Does your app start?


    DKuhne.

    F&amp;S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello


    If I start the app from FFSDISK, it starts up OK.


    I have modified the registry as follows
    !>reg open \init<LF>
    OK
    !>reg enum<LF>
    OK -> reg enum key \
    00 "BootVars" \
    OK -> reg enum value \
    00 "Depend200"=hex:63,00 \
    01 "Launch200"=string:\Storage Card\test.exe \
    02 "Launch20"=string:device.dll \
    03 "Launch30"=string:gwes.dll \
    04 "Depend30"=hex:14,00 \
    05 "Launch60"=string:servicesStart.exe \
    06 "Depend60"=hex:14,00 \
    07 "Launch50"=string:explorer.exe \
    08 "Depend50"=hex:14,00,1e,00 \
    09 "Launch99"=string:ndcucfg.exe \
    10 "Depend99"=hex:1e,00 \
    11 "Launch100"=string:CheckAutoStart.exe \
    12 "Depend100"=hex:1e,00 \
    OK


    and it still doesn't start up. Can you offer any other help?


    Cheers
    Peter

  • Hello Peter,
    is the serial debug output enabled? Maybe "ndcucfg" is not started!
    Does it work when you set dependencies to explorer .exe (0x32)?

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello


    Thanks again for the speedy support. I have been able to get my app to boot using your suggestions. My registry is now as follows:


    !>reg open \init<LF>
    OK
    !>reg enum<LF>
    OK -> reg enum key \
    00 "BootVars" \
    OK -> reg enum value \
    00 "Depend200"=hex:63,00,32,00 \
    01 "Launch200"=string:\Storage Card\test.exe \
    02 "Launch20"=string:device.dll \
    03 "Launch30"=string:gwes.dll \
    04 "Depend30"=hex:14,00 \
    05 "Launch60"=string:servicesStart.exe \
    06 "Depend60"=hex:14,00 \
    07 "Launch50"=string:explorer.exe \
    08 "Depend50"=hex:14,00,1e,00 \
    09 "Launch99"=string:ndcucfg.exe \
    10 "Depend99"=hex:1e,00 \
    11 "Launch100"=string:CheckAutoStart.exe \
    12 "Depend100"=hex:1e,00 \
    OK


    Is there any documentation that I can read up on about the values that are stored in the registry?


    Thanks for your help
    Peter

  • Hello Peter,
    for windows ce you should refer the msdn library. Special settings for F&S drivers are listed in our "Device Driver" documents which you will find on our web.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hi
    Thanks for the reply, I will have a look at the suggested sources.


    When I used the settings above, I noticed that my touch screen was no longer calibrated. I could re calibrate but it lost it on a power down / up. Therefore, I tried the following setting and all is OK now:
    OK -> reg enum key \
    00 "BootVars" \
    OK -> reg enum value \
    00 "Depend200"=hex:14,00,32,00,63,00 \
    01 "Launch200"=string:\Storage Card\test.exe \
    02 "Launch20"=string:device.dll \
    03 "Launch30"=string:gwes.dll \
    04 "Depend30"=hex:14,00 \
    05 "Launch60"=string:servicesStart.exe \
    06 "Depend60"=hex:14,00 \
    07 "Launch50"=string:explorer.exe \
    08 "Depend50"=hex:14,00,1e,00 \
    09 "Launch99"=string:ndcucfg.exe \
    10 "Depend99"=hex:1e,00 \
    11 "Launch100"=string:CheckAutoStart.exe \
    12 "Depend100"=hex:1e,00 \
    OK


    I thought I would post this in case others have the same problem in future.


    Cheers
    Peter

  • Hi there, i need something similar but after many try i can't get a solution.


    I'm trying to start my application from Storage Card but i don't wanna start "explorer.exe" too. If i use:


    as registry settings all works good but how you can see "explorer.exe" starts too. If i try to remove it from this registry key (removing "Launch50" and "Depend50" value) and remove the "32,00" dependency from "Launch200" value my application doesn't start anymore.
    It works good even if i put my application into "FFSDISK" folder and start from there with "Launch200"=string:\FFSDISK\dcu8_MLS_090707.exe even when "Launch50" and "Depend50" are removed.
    It works good even if i put a little startup application in "FFSDISK" folder that starts my application located in "Storage Card\M6V2".


    How can i solve it?

  • How about adding a dependency for services.exe? The problem is that the storage card needs some time to be detected, while FFSDISK is available immediately. Therefore device.exe tries to start your program, does not find it (as the storage card is not yet active) and then skips this program. By giving the dependency to services.exe I hope that this delays enough. But I have my doubts that this will work reliably.


    If this does not work either, you have to put some starting code in FFSDISK that waits until the storage card is detected and then starts your application.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Quote from "fs-support_HK"

    How about adding a dependency for services.exe? The problem is that the storage card needs some time to be detected, while FFSDISK is available immediately. Therefore device.exe tries to start your program, does not find it (as the storage card is not yet active) and then skips this program. By giving the dependency to services.exe I hope that this delays enough. But I have my doubts that this will work reliably.


    If this does not work either, you have to put some starting code in FFSDISK that waits until the storage card is detected and then starts your application.


    I try what you prompt but didn't work. With dependencies set to 3c,00 doesn't start, if i set it to 3c,00,32,00 it works. Seems to need explorer.exe to recognize Storage Card correctly.


    I just try to put a startup code into FFSDISK and work correctly even if i didn't wait for anything, just make a little program with starting thread code and lunch my application from there, nothing more.


    But it's a problem for production line to put an application into FFSDISK, i need to set the registry, put into an SDCARD with right software and turn on the device

  • We have an Update software that can do exactly this: insert the update device (e.g. an SD card or a USB stick) and restart the board. The update software then copies data to the board and when it's done, you have your software in the FFSDISK directory. This can also be done to update software in the field. The update process is optimized to be rather reliable. For example it can make backups of the originally installed files and if the update process fails somehow, it restores all the backups to get back to the old version. This means you always have a working device. Either with the new software or in case of failure with the old software. Or if the update procedure is interrupted (e.g. a power failure), it is continued the next time when the device is switched on.


    If you are interested in this software, please contact <!-- e --><a href="mailto:sales@fs-net.de">sales@fs-net.de</a><!-- e -->.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • I just got the tool to update user software, so I'm trying to get it working with a simple text file, updated from a usb stick.
    This is the content of the file Update.script:


    # Test-Update


    # Open log file on USB-Stick
    L UpdateTest.log


    # Set Pause
    P 2000


    # Install new test file
    I TestFileNew.txt \FFSDISK\TestFile.txt


    If I plug the stick in, my PicoCOM2 recognizes it successfully and brings up the reboot dialog. Doing so, the update starts, but the textfile is not installed. The Script is executed, as I can "see" the pause of 2 seconds and the log file is created. This is the content of the generated log file:


    # Log file created by NetDCU Update V1.2


    So what could be the cause, that the file is not installed?


    Thanks in advance for your suppert.


    Thomas

  • Well - luckily I managed to find out, why it did not work.
    The install command is the last line in the file and there was no carriage return.
    So if I simply press the enter kay and there is a carriage return, it works correctly.


    Maybe this could be something to be added in the manual of the update tool.


    Thomas

  • Usually the problem is rather simple: you have no Linefeed after the last line. Therefore the last line is not executed.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.