killowords.blogg.se

Windows 7 how to install a cab file
Windows 7 how to install a cab file









windows 7 how to install a cab file

is repeated for any subsequent CAB file that will be installed. This signals the calling thread, which had been in an efficient wait state (through a call to the AutoResetEvents WaitOne method), to continue executing. When the process has exited, it signals the AutoResetEvent through a call to the Set() method of the AutoResetEvent object.

windows 7 how to install a cab file

While ActiveSync executes and installs the target CAB, the new (executing) thread waits, intermittently checking the Process.HasExited property (of the Process class) every 1000 milliseconds.If ActiveSync is installed, the default installation directory of ActiveSync is retrieved from the Registry key: HKEY_LOCAL_MACHINE\Software\microsoft\windows\currentversion\app paths\ceappmgr.exe. The new thread fires up a process, i.e., executes a program, in this case ActiveSync.The method RunInstallerTask and the InstallParams object are used to fire up a new thread through a call to ThreadPool.QueueUserWorkItem.The Custom Action then initializes an InstallParams object which takes an AutoResetEvent object (used to signal when the thread has terminated) and a string which identifies the initialization (.All the CAB files are copied by the installer to the initial installation target directory.The overridden Commit method of the installer class first calls the base Commit method and then proceeds to implement the custom functionality.īroadly, the custom functionality works as below: The Custom Action works by overriding and extending the default functionality of the Installer class. NET Compact Framework 3.5 and SQL Mobile 2.0. Each installation is run in a separate thread, and the main process waits until each installation has completed before proceeding with the next installation.įor the purposes of this example, I have included two CAB files, but the Custom Action can easily be extended to install as many CAB files as you wish. The Custom Action included in the project is responsible for the installation of the CAB files to the device, and it installs each of the CAB files, one at a time, consecutively using ActiveSync.

#Windows 7 how to install a cab file Pc#

The included example setup project is a standard Windows MSI installation file which when run will install two CAB files to a Windows Mobile or Pocket PC device. The objective of this article is to describe a solution that uses threading and ActiveSync to automate the process of installing multiple CAB files to a Windows Mobile or Pocket PC device.











Windows 7 how to install a cab file