1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" >
3-
1+ <Wix xmlns =" http://wixtoolset.org/schemas/v4/wxs" xmlns : ui =" http://wixtoolset.org/schemas/v4/wxs/ui" >
2+
43
54 <?if $(var.Platform) = x 64 ?>
65 <?define ProductName = " PythonScript plugin for Notepad++ (64 bit)" ?>
7- <?define Win 64 = " yes" ?>
8- <?define PlatformProgramFilesFolder = " ProgramFiles64Folder" ?>
9- <?else ?>
6+ <?else ?>
107 <?define ProductName = " PythonScript plugin for Notepad++" ?>
11- <?define Win 64 = " no" ?>
12- <?define PlatformProgramFilesFolder = " ProgramFilesFolder" ?>
13- <?endif ?>
14-
15- <Product Id =" *" Language =" 1033" Manufacturer =" Dave Brotherstone" Name =" $(var.ProductName)"
16- UpgradeCode=" 717FEC91-6F2B-459D-9868-0A3A037F5195"
17- Version=" $(var.version)" >
18-
19-
20-
21- <Package Id =' *' InstallerVersion =' 200' Platform =" $(var.Platform)" Compressed =' yes' />
22-
23- <Upgrade Id =" 717FEC91-6F2B-459D-9868-0A3A037F5195" >
24- <UpgradeVersion Minimum =" 0.0.0.0" Maximum =" $(var.version)"
25- Property =" PREVIOUSVERSIONSINSTALLED"
26- IncludeMinimum =" yes" IncludeMaximum =" no" />
8+ <?endif ?>
9+
10+ <Package Language =" 1033" Manufacturer =" Dave Brotherstone" Name =" $(var.ProductName)" UpgradeCode =" 717FEC91-6F2B-459D-9868-0A3A037F5195" Version =" $(var.version)" InstallerVersion =" 200" ><Upgrade Id =" 717FEC91-6F2B-459D-9868-0A3A037F5195" >
11+ <UpgradeVersion Minimum =" 0.0.0.0" Maximum =" $(var.version)" Property =" PREVIOUSVERSIONSINSTALLED" IncludeMinimum =" yes" IncludeMaximum =" no" />
2712 </Upgrade >
2813
29- <Media Id =' 1 ' Cabinet =' PythonScript.cab' EmbedCab =' yes' />
30-
14+ <Media Id =" 1 " Cabinet =" PythonScript.cab" EmbedCab =" yes" />
15+
3116 <InstallExecuteSequence >
32- <RemoveExistingProducts Before =" InstallInitialize" />
17+ <RemoveExistingProducts Before =" InstallInitialize" />
3318 </InstallExecuteSequence >
3419
3520 <Property Id =" INSTALLLEVEL" Value =" 5" />
36- <Directory Id =" TARGETDIR" Name =" SourceDir" >
37- <Directory Id =" $(var.PlatformProgramFilesFolder)" >
38- <Directory Id =" INSTALLDIR" Name =" Notepad++" >
39- <Directory Id =" D_Plugins" Name =" plugins" >
40- <Directory Id =" D_PythonScript" Name =" PythonScript" >
41- <Directory Id =" D_PythonLib" Name =" lib" />
42- <Directory Id =" D_Scripts" Name =" scripts" >
43- <Component Id =" C_startup.py" Guid =" *" Win64 =" $(var.Win64)" >
44- <RemoveFile Id =" Remove_F_startup.py" Name =" startup.py" On =" install" />
45- <RemoveFile Id =" Remove_F_startup.pyc" Name =" startup.pyc" On =" install" />
46- <File Id =" F_startup.py" KeyPath =" yes" Name =" startup.py" Source =" $(var.baseDir)\scripts\startup.py" />
47- </Component >
48- <Directory Id =" D_npp_unit_tests" Name =" npp_unit_tests" />
49- <Directory Id =" D_SampleScripts" Name =" Samples" />
50- </Directory >
51- <Directory Id =" D_DocPythonScript" Name =" doc" />
52- <Component Id =" C_pythonscript.dll" Guid =" *" Win64 =" $(var.Win64)" >
53- <RemoveFile Id =" Remove_F_pythonscript.dll" Name =" PythonScript.dll" On =" install" />
54- <File Id =" F_pythonscript.dll" Name =" PythonScript.dll" Source =" $(var.baseDir)\$(var.variantDir)\Release\PythonScript.dll" />
55- </Component >
56- <Component Id =" C_python312.dll" Guid =" *" Win64 =" $(var.Win64)" >
57- <RemoveFile Id =" Remove_F_python312.dll" Name =" python312.dll" On =" install" />
58- <File Id =" F_python312.dll" Name =" python312.dll" Source =" $(var.pythonDir)\python312.dll" />
59- </Component >
60- </Directory >
61- </Directory >
62- </Directory >
63- </Directory >
64- </Directory >
6521
66- <Feature Id =" FT_PythonScriptAll" Title =" PythonScript Components" Display =" expand" AllowAdvertise =" no" ConfigurableDirectory =" INSTALLDIR"
67- Description=" Install directory should be the install directory of your Notepad++ directory" >
22+ <Feature Id =" FT_PythonScriptAll" Title =" PythonScript Components" Display =" expand" AllowAdvertise =" no" ConfigurableDirectory =" INSTALLDIR" Description =" Install directory should be the install directory of your Notepad++ directory" >
6823 <Feature Id =" FT_PythonScript" Title =" PythonScript plugin" AllowAdvertise =" no" >
6924 <ComponentRef Id =" C_startup.py" />
7025 <ComponentRef Id =" C_pythonscript.dll" />
8338 <ComponentGroupRef Id =" CG_PythonTclTkLibDll" />
8439 </Feature >
8540 <Feature Id =" FT_UnitTests" Title =" Unit Tests" Level =" 10" AllowAdvertise =" no" Description =" Unit tests for PythonScript. Not usually necessary, but if you are having problems, any issues reported from the tests will be useful for diagnosis." >
86- <ComponentGroupRef Id =" CG_UnitTests " />
41+ <ComponentGroupRef Id =" CG_Unittests " />
8742 </Feature >
8843 </Feature >
89-
44+
9045 <WixVariable Id =" WixUILicenseRtf" Value =" License.rtf" />
9146 <WixVariable Id =" WixUIBannerBmp" Value =" images\banner.bmp" />
9247 <WixVariable Id =" WixUIDialogBmp" Value =" images\dialog.bmp" />
93- <UIRef Id =" WixUI_FeatureTree" />
94-
95- </Product >
48+ <ui : WixUI Id =" WixUI_FeatureTree" />
49+
50+ <ComponentGroup Id =" CG_PythonLib" Directory =" D_PythonLib" >
51+ <Files Include =" ..\pythonlib\full\**" />
52+ </ComponentGroup >
53+
54+ <ComponentGroup Id =" CG_PythonLibDll" Directory =" D_PythonLib" >
55+ <Files Include =" ..\pythonlib\full_dll$(var.nameAddon)\**" />
56+ </ComponentGroup >
57+
58+ <ComponentGroup Id =" CG_HtmlDocs" Directory =" D_DocPythonScript" >
59+ <Files Include =" ..\docs\build\html\**" />
60+ </ComponentGroup >
61+
62+ <ComponentGroup Id =" CG_SampleScripts" Directory =" D_SampleScripts" >
63+ <Files Include =" ..\scripts\Samples\**" />
64+ </ComponentGroup >
65+
66+ <ComponentGroup Id =" CG_PythonTclTkLib" Directory =" D_PythonLib" >
67+ <Files Include =" ..\pythonlib\tcl\**" />
68+ </ComponentGroup >
69+
70+ <ComponentGroup Id =" CG_PythonTclTkLibDll" Directory =" D_PythonLib" >
71+ <Files Include =" ..\pythonlib\tcl_dll$(var.nameAddon)\**" />
72+ </ComponentGroup >
73+
74+ <ComponentGroup Id =" CG_Unittests" Directory =" D_npp_unit_tests" >
75+ <Files Include =" ..\PythonScript\python_tests\**" />
76+ </ComponentGroup >
77+
78+
79+ <StandardDirectory Id =" ProgramFiles6432Folder" >
80+ <Directory Id =" INSTALLDIR" Name =" Notepad++" >
81+ <Directory Id =" D_Plugins" Name =" plugins" >
82+ <Directory Id =" D_PythonScript" Name =" PythonScript" >
83+ <Directory Id =" D_PythonLib" Name =" lib" />
84+ <Directory Id =" D_Scripts" Name =" scripts" >
85+ <Component Id =" C_startup.py" >
86+ <RemoveFile Id =" Remove_F_startup.py" Name =" startup.py" On =" install" />
87+ <RemoveFile Id =" Remove_F_startup.pyc" Name =" startup.pyc" On =" install" />
88+ <File Id =" F_startup.py" KeyPath =" yes" Name =" startup.py" Source =" $(var.baseDir)\scripts\startup.py" />
89+ </Component >
90+ <Directory Id =" D_npp_unit_tests" Name =" npp_unit_tests" />
91+ <Directory Id =" D_SampleScripts" Name =" Samples" />
92+ </Directory >
93+ <Directory Id =" D_DocPythonScript" Name =" doc" />
94+ <Component Id =" C_pythonscript.dll" >
95+ <RemoveFile Id =" Remove_F_pythonscript.dll" Name =" PythonScript.dll" On =" install" />
96+ <File Id =" F_pythonscript.dll" Name =" PythonScript.dll" Source =" $(var.baseDir)\$(var.variantDir)\Release\PythonScript.dll" />
97+ </Component >
98+ <Component Id =" C_python312.dll" >
99+ <RemoveFile Id =" Remove_F_python312.dll" Name =" python312.dll" On =" install" />
100+ <File Id =" F_python312.dll" Name =" python312.dll" Source =" $(var.pythonDir)\python312.dll" />
101+ </Component >
102+ </Directory >
103+ </Directory >
104+ </Directory >
105+ </StandardDirectory >
106+ </Package >
96107
97108
98109</Wix >
0 commit comments