Click to Rate and Give Feedback
MSDN
MSDN Library
ActiveSync
 Install_Init
Collapse All/Expand All Collapse All
Install_Init
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

A custom installer dll should export the Install_Init function. This function will be called before installation begins. This function can be used for custom operations such as checking an application version for application re-installation or determining whether a dependent application is present. For more information, see Optional Setup.dll Files for Installation.


codeINSTALL_INIT Install_Init(
  HWND hwndParent,
  BOOL fFirstCall, 
  BOOL fPreviouslyInstalled,
  LPCTSTR pszInstallDir
);
hwndParent

[in] Specifies a handle to the parent window.

fFirstCall

[in] Specifies a Boolean value that is set to TRUE to indicate that this is the first time this function is being called.

fPreviouslyInstalled

[in] Specifies a Boolean value that is set to TRUE to indicate that the current application is already installed.

pszInstallDir

[in] Reference to a null-terminated string that contains the name of the application installation directory that is selected by the user.

codeINSTALL_INIT_CONTINUE

Continue installation.

codeINSTALL_INIT_CANCEL

Cancel installation.

This function may be called multiple times, each time with a different string for pszInstallDir. For example, when the current directory does not have enough room, you should call this function for the first time. .

This function is called during installation once the installation process has been completed.

Headerce_setup.h
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
hwndParent invalid if called from Windows Mobile Marketplace Client      PeterFoot ... Thomas Lee   |   Edit   |   Show History
Description and workaround are in this blog post:-
http://windowsteamblog.com/blogs/wmdev/archive/2009/10/29/the-windows-marketplace-for-mobile-client-and-your-setup-code.aspx
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker