2 * Copyright (C) 2002,2003 Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 typedef unsigned long MSIHANDLE
;
28 typedef enum tagINSTALLSTATE
30 INSTALLSTATE_BADCONFIG
= -6,
31 INSTALLSTATE_INCOMPLETE
= -5,
32 INSTALLSTATE_SOURCEABSENT
= -4,
33 INSTALLSTATE_MOREDATA
= -3,
34 INSTALLSTATE_INVALIDARG
= -2,
35 INSTALLSTATE_UNKNOWN
= -1,
36 INSTALLSTATE_BROKEN
= 0,
37 INSTALLSTATE_ADVERTISED
= 1,
38 INSTALLSTATE_ABSENT
= 2,
39 INSTALLSTATE_LOCAL
= 3,
40 INSTALLSTATE_SOURCE
= 4,
41 INSTALLSTATE_DEFAULT
= 5
44 typedef enum tagINSTALLUILEVEL
46 INSTALLUILEVEL_NOCHANGE
= 0,
47 INSTALLUILEVEL_DEFAULT
= 1,
48 INSTALLUILEVEL_NONE
= 2,
49 INSTALLUILEVEL_BASIC
= 3,
50 INSTALLUILEVEL_REDUCED
= 4,
51 INSTALLUILEVEL_FULL
= 5,
52 INSTALLUILEVEL_HIDECANCEL
= 0x20,
53 INSTALLUILEVEL_PROGRESSONLY
= 0x40,
54 INSTALLUILEVEL_ENDDIALOG
= 0x80,
55 INSTALLUILEVEL_SOURCERESONLY
= 0x100
58 typedef enum tagINSTALLLEVEL
60 INSTALLLEVEL_DEFAULT
= 0,
61 INSTALLLEVEL_MINIMUM
= 1,
62 INSTALLLEVEL_MAXIMUM
= 0xFFFF
65 typedef enum tagINSTALLMESSAGE
67 INSTALLMESSAGE_FATALEXIT
= 0,
68 INSTALLMESSAGE_ERROR
= 0x01000000,
69 INSTALLMESSAGE_WARNING
= 0x02000000,
70 INSTALLMESSAGE_USER
= 0x03000000,
71 INSTALLMESSAGE_INFO
= 0x04000000,
72 INSTALLMESSAGE_FILESINUSE
= 0x05000000,
73 INSTALLMESSAGE_RESOLVESOURCE
= 0x06000000,
74 INSTALLMESSAGE_OUTOFDISKSPACE
= 0x07000000,
75 INSTALLMESSAGE_ACTIONSTART
= 0x08000000,
76 INSTALLMESSAGE_ACTIONDATA
= 0x09000000,
77 INSTALLMESSAGE_PROGRESS
= 0x0a000000,
78 INSTALLMESSAGE_COMMONDATA
= 0x0b000000,
79 INSTALLMESSAGE_INITIALIZE
= 0x0c000000,
80 INSTALLMESSAGE_TERMINATE
= 0x0d000000,
81 INSTALLMESSAGE_SHOWDIALOG
= 0x0e000000
84 typedef enum tagREINSTALLMODE
86 REINSTALLMODE_REPAIR
= 0x00000001,
87 REINSTALLMODE_FILEMISSING
= 0x00000002,
88 REINSTALLMODE_FILEOLDERVERSION
= 0x00000004,
89 REINSTALLMODE_FILEEQUALVERSION
= 0x00000008,
90 REINSTALLMODE_FILEEXACT
= 0x00000010,
91 REINSTALLMODE_FILEVERIFY
= 0x00000020,
92 REINSTALLMODE_FILEREPLACE
= 0x00000040,
93 REINSTALLMODE_MACHINEDATA
= 0x00000080,
94 REINSTALLMODE_USERDATA
= 0x00000100,
95 REINSTALLMODE_SHORTCUT
= 0x00000200,
96 REINSTALLMODE_PACKAGE
= 0x00000400
99 typedef enum tagINSTALLLOGMODE
101 INSTALLLOGMODE_FATALEXIT
= (1 << (INSTALLMESSAGE_FATALEXIT
>> 24)),
102 INSTALLLOGMODE_ERROR
= (1 << (INSTALLMESSAGE_ERROR
>> 24)),
103 INSTALLLOGMODE_WARNING
= (1 << (INSTALLMESSAGE_WARNING
>> 24)),
104 INSTALLLOGMODE_USER
= (1 << (INSTALLMESSAGE_USER
>> 24)),
105 INSTALLLOGMODE_INFO
= (1 << (INSTALLMESSAGE_INFO
>> 24)),
106 INSTALLLOGMODE_RESOLVESOURCE
= (1 << (INSTALLMESSAGE_RESOLVESOURCE
>> 24)),
107 INSTALLLOGMODE_OUTOFDISKSPACE
= (1 << (INSTALLMESSAGE_OUTOFDISKSPACE
>> 24)),
108 INSTALLLOGMODE_ACTIONSTART
= (1 << (INSTALLMESSAGE_ACTIONSTART
>> 24)),
109 INSTALLLOGMODE_ACTIONDATA
= (1 << (INSTALLMESSAGE_ACTIONDATA
>> 24)),
110 INSTALLLOGMODE_COMMONDATA
= (1 << (INSTALLMESSAGE_COMMONDATA
>> 24)),
111 INSTALLLOGMODE_PROPERTYDUMP
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
112 INSTALLLOGMODE_VERBOSE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
113 INSTALLLOGMODE_EXTRADEBUG
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
114 INSTALLLOGMODE_PROGRESS
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
115 INSTALLLOGMODE_INITIALIZE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
116 INSTALLLOGMODE_TERMINATE
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
117 INSTALLLOGMODE_SHOWDIALOG
= (1 << (INSTALLMESSAGE_SHOWDIALOG
>> 24))
120 typedef enum tagINSTALLLOGATTRIBUTES
122 INSTALLLOGATTRIBUTES_APPEND
= 0x00000001,
123 INSTALLLOGATTRIBUTES_FLUSHEACHLINE
= 0x00000002
124 } INSTALLLOGATTRIBUTES
;
126 typedef enum tagADVERTISEFLAGS
128 ADVERTISEFLAGS_MACHINEASSIGN
= 0,
129 ADVERTISEFLAGS_USERASSIGN
= 1
132 typedef enum tagINSTALLTYPE
134 INSTALLTYPE_DEFAULT
= 0,
135 INSTALLTYPE_NETWORK_IMAGE
= 1
138 #define MAX_FEATURE_CHARS 38
140 typedef INT (CALLBACK
*INSTALLUI_HANDLERA
)(LPVOID pvContext
, UINT iMessageType
,
142 typedef INT (CALLBACK
*INSTALLUI_HANDLERW
)(LPVOID pvContext
, UINT iMessageType
,
145 UINT WINAPI
MsiAdvertiseProductA(LPCSTR
, LPCSTR
, LPCSTR
, LANGID
);
146 UINT WINAPI
MsiAdvertiseProductW(LPCWSTR
, LPCWSTR
, LPCWSTR
, LANGID
);
147 #define MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
149 UINT WINAPI
MsiInstallProductA(LPCSTR
, LPCSTR
);
150 UINT WINAPI
MsiInstallProductW(LPCWSTR
, LPCWSTR
);
151 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
153 UINT WINAPI
MsiReinstallProductA(LPCSTR
, DWORD
);
154 UINT WINAPI
MsiReinstallProductW(LPCWSTR
, DWORD
);
155 #define MsiReinstallProduct WINELIB_NAME_AW(MsiReinstallProduct)
157 UINT WINAPI
MsiApplyPatchA(LPCSTR
, LPCSTR
, INSTALLTYPE
, LPCSTR
);
158 UINT WINAPI
MsiApplyPatchW(LPCWSTR
, LPCWSTR
, INSTALLTYPE
, LPCWSTR
);
159 #define MsiApplyPatch WINELIB_NAME_AW(MsiApplyPatch)
161 UINT WINAPI
MsiEnumProductsA(DWORD index
, LPSTR lpguid
);
162 UINT WINAPI
MsiEnumProductsW(DWORD index
, LPWSTR lpguid
);
163 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
165 UINT WINAPI
MsiEnumFeaturesA(LPCSTR
, DWORD
, LPSTR
, LPSTR
);
166 UINT WINAPI
MsiEnumFeaturesW(LPCWSTR
, DWORD
, LPWSTR
, LPWSTR
);
167 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
169 UINT WINAPI
MsiEnumComponentsA(DWORD
, LPSTR
);
170 UINT WINAPI
MsiEnumComponentsW(DWORD
, LPWSTR
);
171 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
173 UINT WINAPI
MsiEnumClientsA(LPCSTR
, DWORD
, LPSTR
);
174 UINT WINAPI
MsiEnumClientsW(LPCWSTR
, DWORD
, LPWSTR
);
175 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
177 UINT WINAPI
MsiOpenDatabaseA(LPCSTR
, LPCSTR
, MSIHANDLE
*);
178 UINT WINAPI
MsiOpenDatabaseW(LPCWSTR
, LPCWSTR
, MSIHANDLE
*);
179 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
181 UINT WINAPI
MsiOpenPackageA(LPCSTR
, MSIHANDLE
*);
182 UINT WINAPI
MsiOpenPackageW(LPCWSTR
, MSIHANDLE
*);
183 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
185 UINT WINAPI
MsiOpenPackageExA(LPCSTR
, DWORD
, MSIHANDLE
*);
186 UINT WINAPI
MsiOpenPackageExW(LPCWSTR
, DWORD
, MSIHANDLE
*);
187 #define MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
189 UINT WINAPI
MsiOpenProductA(LPCSTR
, MSIHANDLE
*);
190 UINT WINAPI
MsiOpenProductW(LPCWSTR
, MSIHANDLE
*);
191 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
193 UINT WINAPI
MsiGetSummaryInformationA(MSIHANDLE
, LPCSTR
, UINT
, MSIHANDLE
*);
194 UINT WINAPI
MsiGetSummaryInformationW(MSIHANDLE
, LPCWSTR
, UINT
, MSIHANDLE
*);
195 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
197 UINT WINAPI
MsiSummaryInfoGetPropertyA(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPSTR
,DWORD
*);
198 UINT WINAPI
MsiSummaryInfoGetPropertyW(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPWSTR
,DWORD
*);
199 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
201 UINT WINAPI
MsiProvideComponentFromDescriptorA(LPCSTR
,LPSTR
,DWORD
*,DWORD
*);
202 UINT WINAPI
MsiProvideComponentFromDescriptorW(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
203 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
205 UINT WINAPI
MsiGetProductPropertyA(MSIHANDLE
,LPCSTR
,LPSTR
,DWORD
*);
206 UINT WINAPI
MsiGetProductPropertyW(MSIHANDLE
,LPCWSTR
,LPWSTR
,DWORD
*);
207 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
209 UINT WINAPI
MsiGetPropertyA(MSIHANDLE
, LPCSTR
, LPSTR
, DWORD
*);
210 UINT WINAPI
MsiGetPropertyW(MSIHANDLE
, LPCWSTR
, LPWSTR
, DWORD
*);
211 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
213 UINT WINAPI
MsiVerifyPackageA(LPCSTR
);
214 UINT WINAPI
MsiVerifyPackageW(LPCWSTR
);
215 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
217 INSTALLSTATE WINAPI
MsiQueryProductStateA(LPCSTR
);
218 INSTALLSTATE WINAPI
MsiQueryProductStateW(LPCWSTR
);
219 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
221 UINT WINAPI
MsiConfigureProductA(LPCSTR szProduct
, int iInstallLevel
, INSTALLSTATE eInstallState
);
222 UINT WINAPI
MsiConfigureProductW(LPCWSTR szProduct
, int iInstallLevel
, INSTALLSTATE eInstallState
);
223 #define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
225 UINT WINAPI
MsiGetProductCodeA(LPCSTR szComponent
, LPSTR szBuffer
);
226 UINT WINAPI
MsiGetProductCodeW(LPCWSTR szComponent
, LPWSTR szBuffer
);
227 #define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
229 UINT WINAPI
MsiGetProductInfoA(LPCSTR szProduct
, LPCSTR szAttribute
, LPSTR szBuffer
, DWORD
*pcchValueBuf
);
230 UINT WINAPI
MsiGetProductInfoW(LPCWSTR szProduct
, LPCWSTR szAttribute
, LPWSTR szBuffer
, DWORD
*pcchValueBuf
);
231 #define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
233 UINT WINAPI
MsiEnableLogA(DWORD dwLogMode
, LPCSTR szLogFile
, DWORD attributes
);
234 UINT WINAPI
MsiEnableLogW(DWORD dwLogMode
, LPCWSTR szLogFile
, DWORD attributes
);
235 #define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
237 INSTALLUI_HANDLERA WINAPI
MsiSetExternalUIA(INSTALLUI_HANDLERA
, DWORD
, LPVOID
);
238 INSTALLUI_HANDLERW WINAPI
MsiSetExternalUIW(INSTALLUI_HANDLERW
, DWORD
, LPVOID
);
239 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
241 INSTALLSTATE WINAPI
MsiGetComponentPathA(LPCSTR
, LPCSTR
, LPSTR
, DWORD
*);
242 INSTALLSTATE WINAPI
MsiGetComponentPathW(LPCWSTR
, LPCWSTR
, LPWSTR
, DWORD
*);
243 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
245 INSTALLSTATE WINAPI
MsiQueryFeatureStateA(LPCSTR szProduct
, LPCSTR szFeature
);
246 INSTALLSTATE WINAPI
MsiQueryFeatureStateW(LPCWSTR szProduct
, LPCWSTR szFeature
);
247 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
252 UINT WINAPI
MsiCloseHandle(MSIHANDLE
);
253 UINT WINAPI
MsiCloseAllHandles();
254 INSTALLUILEVEL WINAPI
MsiSetInternalUI(INSTALLUILEVEL
, HWND
*);
260 #endif /* __WINE_MSI_H */