-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsvn2gitnet.xslt
71 lines (59 loc) · 2.32 KB
/
svn2gitnet.xslt
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
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi">
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>
<xsl:template match="wix:Product/@Version">
<xsl:attribute name="Version">1.0.0.2</xsl:attribute>
</xsl:template>
<xsl:template match="wix:Product/@Manufacturer">
<xsl:attribute name="Manufacturer">Jingyu Ma</xsl:attribute>
</xsl:template>
<xsl:template match="wix:Product/@Name">
<xsl:attribute name="Name">Svn2Git.NET</xsl:attribute>
</xsl:template>
<xsl:template match="wix:Feature/@Title">
<xsl:attribute name="Title">Svn2Git.NET.Main</xsl:attribute>
</xsl:template>
<xsl:template match="wix:Product">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
<UIRef Id="WixUI_Minimal" xmlns="http://schemas.microsoft.com/wix/2006/wi" />
<WixVariable Id="WixUILicenseRtf" Value="license.rtf" xmlns="http://schemas.microsoft.com/wix/2006/wi" />
</xsl:copy>
</xsl:template>
<xsl:template match="wix:Product/wix:Directory/wix:Directory/@Id">
<xsl:attribute name="Id">APPLICATIONROOTDIRECTORY</xsl:attribute>
</xsl:template>
<xsl:template match="wix:Product/wix:Directory/wix:Directory/@Name">
<xsl:attribute name="Name">Svn2Git.NET</xsl:attribute>
</xsl:template>
<xsl:template match="wix:Product/wix:Directory/wix:Directory">
<Directory Id="ProgramFilesFolder" xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Component Id ="setEnviroment">
<xsl:attribute name="Guid">{9AE672fD-224C-44D4-A38C-26012FF0B478}</xsl:attribute>
<CreateFolder />
<Environment
Id="Environment"
Name="PATH"
Part="last"
System="yes"
Action="set"
Value="[APPLICATIONROOTDIRECTORY]" />
</Component>
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</Directory>
</xsl:template>
<xsl:template match="wix:Fragment/wix:ComponentGroup">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
<ComponentRef Id="setEnviroment" xmlns="http://schemas.microsoft.com/wix/2006/wi" />
</xsl:copy>
</xsl:template>
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:transform>