1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" >
1+ <Wix xmlns =" http://wixtoolset.org/schemas/v4/wxs" xmlns : ui =" http://wixtoolset.org/schemas/v4/wxs/ui" >
32
43
54 <?if $(var.Platform) = x 64 ?>
65 <?define ProductName = " PythonScript plugin for Notepad++ (64 bit)" ?>
7- <?define Win 64 = " yes " ?>
6+ <?define Win 64 = " always64 " ?>
87 <?define PlatformProgramFilesFolder = " ProgramFiles64Folder" ?>
9- <?else ?>
8+ <?else ?>
109 <?define ProductName = " PythonScript plugin for Notepad++" ?>
11- <?define Win 64 = " no " ?>
10+ <?define Win 64 = " always32 " ?>
1211 <?define PlatformProgramFilesFolder = " ProgramFilesFolder" ?>
13- <?endif ?>
12+ <?endif ?>
1413
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" />
14+ <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" >
15+ <UpgradeVersion Minimum =" 0.0.0.0" Maximum =" $(var.version)" Property =" PREVIOUSVERSIONSINSTALLED" IncludeMinimum =" yes" IncludeMaximum =" no" />
2716 </Upgrade >
2817
29- <Media Id =' 1 ' Cabinet =' PythonScript.cab' EmbedCab =' yes' />
18+ <Media Id =" 1 " Cabinet =" PythonScript.cab" EmbedCab =" yes" />
3019
3120 <InstallExecuteSequence >
3221 <RemoveExistingProducts Before =" InstallInitialize" />
3322 </InstallExecuteSequence >
3423
3524 <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 >
25+
6526
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" >
27+ <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" >
6828 <Feature Id =" FT_PythonScript" Title =" PythonScript plugin" AllowAdvertise =" no" >
6929 <ComponentRef Id =" C_startup.py" />
7030 <ComponentRef Id =" C_pythonscript.dll" />
9050 <WixVariable Id =" WixUILicenseRtf" Value =" License.rtf" />
9151 <WixVariable Id =" WixUIBannerBmp" Value =" images\banner.bmp" />
9252 <WixVariable Id =" WixUIDialogBmp" Value =" images\dialog.bmp" />
93- <UIRef Id =" WixUI_FeatureTree" />
53+ <ui : WixUI Id =" WixUI_FeatureTree" />
9454
95- </Product >
55+
56+ <Directory Id =" $(var.PlatformProgramFilesFolder)" >
57+ <Directory Id =" INSTALLDIR" Name =" Notepad++" >
58+ <Directory Id =" D_Plugins" Name =" plugins" >
59+ <Directory Id =" D_PythonScript" Name =" PythonScript" >
60+ <Directory Id =" D_PythonLib" Name =" lib" />
61+ <Directory Id =" D_Scripts" Name =" scripts" >
62+ <Component Id =" C_startup.py" Bitness =" $(var.Win64)" >
63+ <RemoveFile Id =" Remove_F_startup.py" Name =" startup.py" On =" install" />
64+ <RemoveFile Id =" Remove_F_startup.pyc" Name =" startup.pyc" On =" install" />
65+ <File Id =" F_startup.py" KeyPath =" yes" Name =" startup.py" Source =" $(var.baseDir)\scripts\startup.py" />
66+ </Component >
67+ <Directory Id =" D_npp_unit_tests" Name =" npp_unit_tests" />
68+ <Directory Id =" D_SampleScripts" Name =" Samples" />
69+ </Directory >
70+ <Directory Id =" D_DocPythonScript" Name =" doc" />
71+ <Component Id =" C_pythonscript.dll" Bitness =" $(var.Win64)" >
72+ <RemoveFile Id =" Remove_F_pythonscript.dll" Name =" PythonScript.dll" On =" install" />
73+ <File Id =" F_pythonscript.dll" Name =" PythonScript.dll" Source =" $(var.baseDir)\$(var.variantDir)\Release\PythonScript.dll" />
74+ </Component >
75+ <Component Id =" C_python312.dll" Bitness =" $(var.Win64)" >
76+ <RemoveFile Id =" Remove_F_python312.dll" Name =" python312.dll" On =" install" />
77+ <File Id =" F_python312.dll" Name =" python312.dll" Source =" $(var.pythonDir)\python312.dll" />
78+ </Component >
79+ </Directory >
80+ </Directory >
81+ </Directory >
82+ </Directory >
83+ </Package >
9684
9785
9886</Wix >
0 commit comments