![]() |
|
QA: How to install a cab file on Pocket PC?
By Victor Sharov, October 26, 2001.
QuestionI need to install a cab file that is already downloaded to my Pocket PC. How can I do it from my program? AnswerActually the only thing you need is just to start this file. Usually it is done by creating a new process via CreateProcess() as it is described in QA: How can I start another program and wait until it will be finished?. But in this case such approach does not work. To install a cab file you should call ShellExecuteEx function defined in "Shellapi.h" file and pass it a pointer to SHELLEXECUTEINFO structure that contains and receives information about the application being executed. Note: Pocket PC doesn't support local file names. All file names should contain full path like _T("\\temp\\my.cab"). Source codeHere is a sample code that installs "my.cab" file located in "\temp" folder: Related resources:
DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||