2 * Common prototypes for Action handlers
4 * Copyright 2005 Aric Stewart for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 typedef struct tagMSIFEATURE
24 WCHAR Feature_Parent[96];
26 WCHAR Description[0x100];
32 INSTALLSTATE Installed;
33 INSTALLSTATE ActionRequest;
37 INT Components[1024]; /* yes hardcoded limit.... I am bad */
41 typedef struct tagMSICOMPONENT
44 WCHAR ComponentId[96];
47 WCHAR Condition[0x100];
50 INSTALLSTATE Installed;
51 INSTALLSTATE ActionRequest;
61 typedef struct tagMSIFOLDER
67 LPWSTR ResolvedTarget;
68 LPWSTR ResolvedSource;
69 LPWSTR Property; /* initially set property */
72 /* 0 = uninitialized */
74 /* 2 = created remove if empty */
75 /* 3 = created persist if empty */
80 typedef struct tagMSIFILE
92 /* 0 = uninitialize */
94 /* 2 = present but replace */
95 /* 3 = present do not replace */
103 UINT ACTION_PerformAction(MSIPACKAGE *package, const WCHAR *action);
104 UINT ACTION_PerformUIAction(MSIPACKAGE *package, const WCHAR *action);
105 void ACTION_FinishCustomActions( MSIPACKAGE* package);
106 UINT ACTION_CustomAction(MSIPACKAGE *package,const WCHAR *action, BOOL execute);
107 void ACTION_UpdateComponentStates(MSIPACKAGE *package, LPCWSTR szFeature);
108 UINT ACTION_AppSearch(MSIPACKAGE *package);
110 DWORD deformat_string(MSIPACKAGE *package, LPCWSTR ptr, WCHAR** data );
111 WCHAR *load_dynamic_stringW(MSIRECORD *row, INT index);
112 LPWSTR load_dynamic_property(MSIPACKAGE *package, LPCWSTR prop, UINT* rc);
113 LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
114 BOOL set_prop, MSIFOLDER **folder);
115 int get_loaded_component(MSIPACKAGE* package, LPCWSTR Component );
116 int get_loaded_feature(MSIPACKAGE* package, LPCWSTR Feature );
117 int get_loaded_file(MSIPACKAGE* package, LPCWSTR file);
118 int track_tempfile(MSIPACKAGE *package, LPCWSTR name, LPCWSTR path);