Fixed thr_flags for bcc32
[MPC.git] / templates / wix.mpd
blob9ce76b2c5a5686846e6c135c7839c9a48ab7e44a
1 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2 <Include>
3 <%marker(top)%>
4 <%if(wix_extended)%>
5 <%foreach(platforms)%>
6 <%foreach(configurations)%>
7 <%if(!exclude)%>
8 <%comment("Only put one component in a fragment. If, say, both the debug and release components are in the")%>
9 <%comment("same fragment, and just the debug component is used in an installer, the release component will")%>
10 <%comment("be identified as unused, and an error generated. That is, it seems that referencing any component")%>
11 <%comment("in a fragment causes the entire fragment to be pulled in, and any unused component in the fragment will be flagged as an error")%>
12 <Fragment Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%project_name%>">
13 <ComponentGroup Id="ComponentGroup.<%normalize(configuration)%>_<%normalize(platform)%>_<%project_name%>">
14 <%if(!no_binary)%>
15 <ComponentRef Id="<%normalize(configuration)%>_<%normalize(platform)%><%foreach(name, install_location)%>_<%name%><%endfor%>.<%if(type_is_dynamic)%><%normalize(libname_prefix)%><%normalize(sharedname)%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%else%><%normalize(exename)%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%>" />
16 <%endif%>
17 <%if(gme_install || gme_decorator)%>
18 <ComponentRef Id="gme.component.<%gme_progid%>" />
19 <%endif%>
20 <%if(gme_paradigm)%>
21 <ComponentRef Id="gme.paradigm.<%paradigm_name%>" />
22 <%endif%>
23 <%if(install_resources)%>
24 <%foreach(resource_files)%>
25 <ComponentRef Id="<%project_name%><%foreach(name, install_location)%>.<%name%><%endfor%>.<%normalize(resource_file)%>" />
26 <%endfor%>
27 <%endif%>
28 <%foreach(components)%>
29 <ComponentRef Id="<%component%>" />
30 <%endfor%>
31 </ComponentGroup>
33 <DirectoryRef Id="INSTALLDIR">
34 <%marker(component_top)%>
35 <%if(!no_binary)%>
36 <%foreach(name, install_location)%>
37 <Directory Id="<%project_name%>.binary.<%forcount%>.<%name%>" Name="<%name%>">
38 <%endfor%>
39 <Component Id="<%normalize(configuration)%>_<%normalize(platform)%>.<%if(type_is_dynamic)%><%normalize(libname_prefix)%><%normalize(sharedname)%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%else%><%normalize(exename)%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%>" Guid="*">
40 <File Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%if(type_is_dynamic)%><%normalize(libname_prefix)%><%normalize(sharedname)%>_dll<%else%><%normalize(exename)%>_exe<%endif%>"
41 Name="<%if(type_is_dynamic)%><%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%else%><%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%>"
42 Source="<%if(type_is_dynamic)%><%if(dllout)%><%full_path(dllout)%>/<%else%><%full_path(libout)%>/<%endif%><%else%><%if(type_is_static)%><%full_path(libout)%>/<%else%><%if(exeout)%><%full_path(exeout)%>/<%if(windows_style)%><%output_dir("Debug")%>/<%endif%><%else%><%if(windows_style)%><%output_dir("Debug")%>/<%else%><%output_dir(".")%>/<%endif%><%endif%><%endif%><%endif%><%if(type_is_dynamic)%><%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%else%><%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%>"
43 DiskId="<%diskid(1)%>"
44 <%if(com_register)%>
45 SelfRegCost="1"
46 <%endif%>
48 </Component>
49 <%foreach(name, install_location)%>
50 </Directory>
51 <%endfor%>
52 <%endif%>
54 <%if(gme_install || gme_decorator)%>
55 <Component Id="gme.component.<%gme_progid%>" Guid="<%gme_uuid%>">
56 <%if(gme_install)%>
57 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Components\<%gme_progid%>" Action="createAndRemoveOnUninstall">
58 <RegistryValue Name="Description" Type="string" Value="<%gme_description%>" Action="write" />
59 <%if(gme_has_icon)%>
60 <RegistryValue Name="Icon" Type="string" Value="<%gme_icon(,IDI_COMPICON)%>" Action="write" />
61 <%endif%>
62 <RegistryValue Name="Paradigm" Type="string" Value="<%foreach(gme_paradigms)%><%gme_paradigm%><%fornotlast(",")%><%endfor%>" Action="write" />
63 <RegistryValue Name="Tooltip" Type="string" Value="<%gme_tooltip%>" Action="write" />
64 <RegistryValue Name="Type" Type="integer" Value="<%gme_component_type(1)%>" Action="write" />
65 </RegistryKey>
67 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Components\<%gme_progid%>\Associated" Action="create">
68 <%foreach(gme_paradigms)%>
69 <RegistryValue Name="<%gme_paradigm%>" Type="string" Action="write" Value="" />
70 <%endfor%>
71 </RegistryKey>
72 <%endif%>
73 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\<%gme_progid%>" Action="createAndRemoveOnUninstall">
74 <RegistryValue Type="string" Value="<%gme_description%>" />
75 </RegistryKey>
77 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\<%gme_progid%>\CLSID" Action="create">
78 <RegistryValue Type="string" Value="{<%gme_uuid%>}" />
79 </RegistryKey>
81 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}" Action="createAndRemoveOnUninstall">
82 <RegistryValue Type="string" Value="<%if(gme_description)%><%gme_description%><%else%><%gme_progid%><%endif%>" />
83 </RegistryKey>
85 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}\InProcServer32" Action="create">
86 <RegistryValue Type="string" Value="[INSTALLDIR]<%foreach(name, install_location)%><%name%>\<%endfor%><%sharedname%>.dll" />
87 </RegistryKey>
89 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}\ProgID" Action="create">
90 <RegistryValue Type="string" Value="<%gme_progid%>" />
91 </RegistryKey>
92 </Component>
93 <%endif%>
94 <%if(gme_paradigm)%>
95 <%foreach(name, install_location)%>
96 <Directory Id="<%project_name%>.<%paradigm_name%>.<%forcount%>.<%name%>" Name="<%name%>">
97 <%endfor%>
98 <Component Id="gme.paradigm.<%paradigm_name%>" Guid="<%paradigm_guid%>">
99 <File Name="<%paradigm_file%>"
100 Source="<%full_path(paradigm_file)%>"
101 DiskId="<%diskid(1)%>" />
103 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Paradigms\<%paradigm_name%>" Action="createAndRemoveOnUninstall">
104 <RegistryValue Name="CurrentVersion" Type="string" Value="{<%paradigm_guid%>}" Action="write" />
105 </RegistryKey>
107 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Paradigms\<%paradigm_name%>\{<%paradigm_guid%>}" Action="createAndRemoveOnUninstall">
108 <RegistryValue Name="ConnStr" Type="string" Value="MGA=[INSTALLDIR]<%foreach(name, install_location)%><%name%>\<%endfor%><%paradigm_file%>" />
109 </RegistryKey>
110 </Component>
111 <%foreach(name, install_location)%>
112 </Directory>
113 <%endfor%>
114 <%endif%>
115 <%marker(component_bottom)%>
116 </DirectoryRef>
117 </Fragment>
118 <%endif%>
119 <%endfor%>
120 <%endfor%>
121 <%else%>
122 <Fragment Id="<%project_name%>">
123 <ComponentGroup Id="ComponentGroup.<%project_name%>">
124 <%if(!custom_only)%>
125 <%if(!no_binary)%>
126 <ComponentRef Id="<%project_name%><%foreach(name, install_location)%>.<%name%><%endfor%>.<%if(type_is_dynamic)%><%normalize(sharedname)%>.dll<%else%><%normalize(exename)%>.exe<%endif%>" />
127 <%endif%>
128 <%if(gme_install || gme_decorator)%>
129 <ComponentRef Id="gme.component.<%gme_progid%>" />
130 <%endif%>
131 <%if(gme_paradigm)%>
132 <ComponentRef Id="gme.paradigm.<%paradigm_name%>" />
133 <%endif%>
134 <%if(install_resources)%>
135 <%foreach(resource_files)%>
136 <ComponentRef Id="<%project_name%><%foreach(name, install_location)%>.<%name%><%endfor%>.<%normalize(resource_file)%>" />
137 <%endfor%>
138 <%endif%>
139 <%foreach(components)%>
140 <ComponentRef Id="<%component%>" />
141 <%endfor%>
142 <%endif%>
143 </ComponentGroup>
145 <%if(!custom_only)%>
146 <DirectoryRef Id="INSTALLDIR">
147 <%marker(component_top)%>
148 <%if(!no_binary)%>
149 <%foreach(name, install_location)%>
150 <Directory Id="<%project_name%>.binary.<%forcount%>.<%name%>" Name="<%name%>">
151 <%endfor%>
152 <Component Id="<%project_name%><%foreach(name, install_location)%>.<%name%><%endfor%>.<%if(type_is_dynamic)%><%normalize(sharedname)%>.dll<%else%><%normalize(exename)%>.exe<%endif%>" Guid="*">
153 <File Id="<%project_name%>_<%if(type_is_dynamic)%><%normalize(sharedname)%>_dll<%else%><%normalize(exename)%>_exe<%endif%>"
154 Name="<%if(type_is_dynamic)%><%sharedname%>.dll<%else%><%exename%>.exe<%endif%>"
155 Source="<%source_directory%>/<%if(type_is_dynamic)%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.dll<%else%><%exename%>.exe<%endif%>"
156 DiskId="<%diskid(1)%>" />
157 </Component>
158 <%foreach(name, install_location)%>
159 </Directory>
160 <%endfor%>
161 <%endif%>
162 <%if(install_resources)%>
163 <%foreach(resource_files)%>
164 <%foreach(name, install_location)%>
165 <Directory Id="<%project_name%>.<%normalize(resource_file)%>.<%forcount%>.<%name%>" Name="<%name%>">
166 <%endfor%>
167 <Component Id="<%project_name%><%foreach(name, install_location)%>.<%name%><%endfor%>.<%normalize(resource_file)%>" Guid="*">
168 <File Id="<%project_name%>_<%normalize(resource_file)%>"
169 Name="<%basename(resource_file)%>"
170 Source="<%full_path(resource_file)%>"
171 DiskId="<%diskid(1)%>" />
172 </Component>
173 <%foreach(name, install_location)%>
174 </Directory>
175 <%endfor%>
176 <%endfor%>
177 <%endif%>
178 <%if(gme_install || gme_decorator)%>
179 <Component Id="gme.component.<%gme_progid%>" Guid="<%gme_uuid%>">
180 <%if(gme_install)%>
181 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Components\<%gme_progid%>" Action="createAndRemoveOnUninstall">
182 <RegistryValue Name="Description" Type="string" Value="<%gme_description%>" Action="write" />
183 <%if(gme_has_icon)%>
184 <RegistryValue Name="Icon" Type="string" Value="<%gme_icon(,IDI_COMPICON)%>" Action="write" />
185 <%endif%>
186 <RegistryValue Name="Paradigm" Type="string" Value="<%foreach(gme_paradigms)%><%gme_paradigm%><%fornotlast(",")%><%endfor%>" Action="write" />
187 <RegistryValue Name="Tooltip" Type="string" Value="<%gme_tooltip%>" Action="write" />
188 <RegistryValue Name="Type" Type="integer" Value="<%gme_component_type(1)%>" Action="write" />
189 </RegistryKey>
191 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Components\<%gme_progid%>\Associated" Action="create">
192 <%foreach(gme_paradigms)%>
193 <RegistryValue Name="<%gme_paradigm%>" Type="string" Action="write" Value="" />
194 <%endfor%>
195 </RegistryKey>
196 <%endif%>
197 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\<%gme_progid%>" Action="createAndRemoveOnUninstall">
198 <RegistryValue Type="string" Value="<%gme_description%>" />
199 </RegistryKey>
201 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\<%gme_progid%>\CLSID" Action="create">
202 <RegistryValue Type="string" Value="{<%gme_uuid%>}" />
203 </RegistryKey>
205 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}" Action="createAndRemoveOnUninstall">
206 <RegistryValue Type="string" Value="<%if(gme_description)%><%gme_description%><%else%><%gme_progid%><%endif%>" />
207 </RegistryKey>
209 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}\InProcServer32" Action="create">
210 <RegistryValue Type="string" Value="[INSTALLDIR]<%foreach(name, install_location)%><%name%>\<%endfor%><%sharedname%>.dll" />
211 </RegistryKey>
213 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}\ProgID" Action="create">
214 <RegistryValue Type="string" Value="<%gme_progid%>" />
215 </RegistryKey>
216 </Component>
217 <%endif%>
218 <%if(gme_paradigm)%>
219 <%foreach(name, install_location)%>
220 <Directory Id="<%project_name%>.<%paradigm_name%>.<%forcount%>.<%name%>" Name="<%name%>">
221 <%endfor%>
222 <Component Id="gme.paradigm.<%paradigm_name%>" Guid="<%paradigm_guid%>">
223 <File Name="<%paradigm_file%>"
224 Source="<%full_path(paradigm_file)%>"
225 DiskId="<%diskid(1)%>" />
227 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Paradigms\<%paradigm_name%>" Action="createAndRemoveOnUninstall">
228 <RegistryValue Name="CurrentVersion" Type="string" Value="{<%paradigm_guid%>}" Action="write" />
229 </RegistryKey>
231 <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Paradigms\<%paradigm_name%>\{<%paradigm_guid%>}" Action="createAndRemoveOnUninstall">
232 <RegistryValue Name="ConnStr" Type="string" Value="MGA=[INSTALLDIR]<%foreach(name, install_location)%><%name%>\<%endfor%><%paradigm_file%>" />
233 </RegistryKey>
234 </Component>
235 <%foreach(name, install_location)%>
236 </Directory>
237 <%endfor%>
238 <%endif%>
239 <%marker(component_bottom)%>
240 </DirectoryRef>
241 <%endif%>
242 </Fragment>
243 <%endif%>
244 <%marker(bottom)%>
245 </Include>