All Forums
 Microsoft Windows CE
 General CE
 Installing applications
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

Tim

39 Posts

Posted - 20 May 2002 :  10:51:59  Show Profile  Email Poster
I need to install several files to the Windows directory on the
GraphicsMaster board. Obviously I can copy them over but as soon as the system cycles power the files are gone. Yes I can copy them to flash disk or storage card, but then the programs won't work correctly.

What is the generally accepted practice for installing programs onto the board since I can't change the CE build?

One of the application is mine, the other is not. While I can put the cab file on flash, the system needs to come up automatically, without any user intervention. Can I install a program from my code?

Thanx!


ctacke

877 Posts

Posted - 20 May 2002 :  10:55:18  Show Profile  Email Poster
One of the simplest options is to put all of the necessary files on the FlashFX disk, which does not lose data when the power is cycled.

You can then write an application that copies the files to the correct target directory (i.e. \Windows) and registers files that need to be registered (i.e. calling DllRegisterServer).

By placing this application in the Startup folder in the FlashFX disk, it will run every time the system is restarted.

-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page

Tim

39 Posts

Posted - 20 May 2002 :  11:21:52  Show Profile  Email Poster
What about CAB files, is there a programatic way to launch the installer for these and not require any user intervention?

Go to Top of Page

ctacke

877 Posts

Posted - 20 May 2002 :  12:15:45  Show Profile  Email Poster
Yes. CAB files are run through wceload.exe, so a call to CreateProcess would work:


CreateProcess(_T("\\windows\wceload.exe"), _T("myapp.cab"), 0, 0...);


-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page

ctacke

877 Posts

Posted - 21 May 2002 :  11:42:09  Show Profile  Email Poster
We've added a fairly robust sample application called ADSCopy that will handle copying and registering files when your system returns from a loss of power/hard-reset situation.

More information and the download link for ADSCopy can be found here

-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000