summaryrefslogtreecommitdiff
path: root/ACE/MPC/templates/wix.mpd
blob: 6a7f40e63ff40c6b8e0b46eed5dd8698900b45c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<Include>
<%marker(top)%>
  <Fragment Id="<%project_name%>">
<%if(sharedname || exename || install_location)%>
    <DirectoryRef Id="INSTALLDIR">
<%foreach(name, install_location)%>
        <Directory Id="<%project_name%>.<%name%>" Name="<%name%>">
<%endfor%>

        <Component Id="<%project_name%>" Guid="<%guid%>">
<%marker(component_top)%>
<%if(install_binary(1))%>
          <File Id="file.<%project_name%>" Name="<%if(type_is_dynamic)%><%sharedname%>.dll<%else%><%exename%>.exe<%endif%>"
                Source="<%source_directory%>/<%if(type_is_dynamic)%><%sharedname%>.dll<%else%><%exename%>.exe<%endif%>"
                DiskId="<%diskid(1)%>" />
<%endif%>
<%if(install_resources)%>
<%foreach(resource_files)%>
          <File Id="file.resource.<%resource_file%>" Name="<%resource_file%>"
                Source="<%full_path(resource_file)%>"
                DiskId="<%diskid(1)%>" />

<%endfor%>
<%endif%>
<%if(gme_install)%>

          <!-- registry information for GME component -->
          <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Components\<%gme_progid%>" Action="createAndRemoveOnUninstall">
            <RegistryValue Name="Description" Type="string" Value="<%gme_description%>" Action="write" />
<%if(gme_has_icon)%>
            <RegistryValue Name="Icon" Type="string" Value="<%gme_icon(,IDI_COMPICON)%>" Action="write" />
<%endif%>
            <RegistryValue Name="Paradigm" Type="string" Value="<%foreach(gme_paradigms)%><%gme_paradigm%><%fornotlast(",")%><%endfor%>" Action="write" />
            <RegistryValue Name="Tooltip" Type="string" Value="<%gme_tooltip%>" Action="write" />
            <RegistryValue Name="Type" Type="integer" Value="<%gme_component_type(1)%>" Action="write" />
          </RegistryKey>

          <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\GME\Components\<%gme_progid%>\Associated" Action="create">
<%foreach(gme_paradigms)%>
            <RegistryValue Name="<%gme_paradigm%>" Type="string" Action="write" Value="" />
<%endfor%>
          </RegistryKey>

          <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\<%gme_progid%>" Action="createAndRemoveOnUninstall">
            <RegistryValue Type="string" Value="<%gme_description%>" />
          </RegistryKey>

          <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\<%gme_progid%>\CLSID" Action="create">
            <RegistryValue Type="string" Value="{<%gme_uuid%>}" />
          </RegistryKey>

          <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}" Action="createAndRemoveOnUninstall">
            <RegistryValue Type="string" Value="<%gme_description%>" />
          </RegistryKey>

          <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}\InProcServer32" Action="create">
            <RegistryValue Type="string" Value="[INSTALLDIR]<%foreach(name, install_location)%><%name%>\\<%endfor%><%sharedname%>.dll" />
          </RegistryKey>

          <RegistryKey Root="<%gme_register(HKLM)%>" Key="SOFTWARE\Classes\CLSID\{<%gme_uuid%>}\ProgID" Action="create">
            <RegistryValue Type="string" Value="<%gme_progid%>" />
          </RegistryKey>
<%endif%>
<%marker(component_bottom)%>
        </Component>
<%foreach(name, install_location)%>
        </Directory>
<%endfor%>
    </DirectoryRef>
<%endif%>
  </Fragment>
<%marker(bottom)%>
</Include>