AutoCopy to update program before running

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Matt,

Thank you for reaching out with your question. It sounds like you’re encountering a timing issue where the AutoCopy process isn’t completing before AutoRun executes your program on the Viola Plus carrier board with WinCE 7.0.

Here are some steps you can take to address this:

  1. Verify AutoCopy Completion: Ensure that the AutoCopy process is fully completed before AutoRun is triggered. You might need to adjust the timing or sequence of operations in your setup to achieve this.

  2. Check Registry Settings: Double-check the Wait4FlashDisk registry setting. This setting should delay the AutoRun until the flash disk is ready, allowing AutoCopy to complete. Make sure it’s configured correctly.

  3. File Access: Ensure that the files you want to overwrite are not locked or in use by another process. This can prevent them from being updated. Check the file attributes and ensure no other applications are accessing them during the update.

  4. Minimal Setup Testing: Test the AutoCopy and AutoRun process with only the essential files on the USB drive. This can help determine if additional files or processes are interfering with the update.

  5. Alternative Update Method: If the issue persists, consider using a script to ensure the copy operation is complete before launching the application. This can provide more control over the update process.

By following these steps, you should be able to ensure that the updated version of your program runs correctly. If you continue to experience issues, further investigation into your specific configuration may be necessary.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

https://community.toradex.com/tag/wince

Windows Embedded Compact 7 fails to copy Autocopy folder from USB Drive.