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+ <?define Win 64 = " always64" ?>
7+ <?else ?>
108 <?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-
9+ <?define Win 64 = " always32" ?>
10+ <?endif ?>
2011
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" />
12+ <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" >
13+ <UpgradeVersion Minimum =" 0.0.0.0" Maximum =" $(var.version)" Property =" PREVIOUSVERSIONSINSTALLED" IncludeMinimum =" yes" IncludeMaximum =" no" />
2714 </Upgrade >
2815
29- <Media Id =' 1 ' Cabinet =' PythonScript.cab' EmbedCab =' yes' />
30-
16+ <Media Id =" 1 " Cabinet =" PythonScript.cab" EmbedCab =" yes" />
17+
3118 <InstallExecuteSequence >
32- <RemoveExistingProducts Before =" InstallInitialize" />
19+ <RemoveExistingProducts Before =" InstallInitialize" />
3320 </InstallExecuteSequence >
3421
3522 <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 >
6523
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" >
24+ <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" >
6825 <Feature Id =" FT_PythonScript" Title =" PythonScript plugin" AllowAdvertise =" no" >
6926 <ComponentRef Id =" C_startup.py" />
7027 <ComponentRef Id =" C_pythonscript.dll" />
8643 <ComponentGroupRef Id =" CG_UnitTests" />
8744 </Feature >
8845 </Feature >
89-
46+
9047 <WixVariable Id =" WixUILicenseRtf" Value =" License.rtf" />
9148 <WixVariable Id =" WixUIBannerBmp" Value =" images\banner.bmp" />
9249 <WixVariable Id =" WixUIDialogBmp" Value =" images\dialog.bmp" />
93- <UIRef Id =" WixUI_FeatureTree" />
94-
95- </Product >
50+ <ui : WixUI Id =" WixUI_FeatureTree" />
51+
52+ <StandardDirectory Id =" ProgramFiles6432Folder" >
53+ <Directory Id =" INSTALLDIR" Name =" Notepad++" >
54+ <Directory Id =" D_Plugins" Name =" plugins" >
55+ <Directory Id =" D_PythonScript" Name =" PythonScript" >
56+ <Directory Id =" D_PythonLib" Name =" lib" />
57+ <Directory Id =" D_Scripts" Name =" scripts" >
58+ <Component Id =" C_startup.py" Bitness =" $(var.Win64)" >
59+ <RemoveFile Id =" Remove_F_startup.py" Name =" startup.py" On =" install" />
60+ <RemoveFile Id =" Remove_F_startup.pyc" Name =" startup.pyc" On =" install" />
61+ <File Id =" F_startup.py" KeyPath =" yes" Name =" startup.py" Source =" $(var.baseDir)\scripts\startup.py" />
62+ </Component >
63+ <Directory Id =" D_npp_unit_tests" Name =" npp_unit_tests" />
64+ <Directory Id =" D_SampleScripts" Name =" Samples" />
65+ </Directory >
66+ <Directory Id =" D_DocPythonScript" Name =" doc" />
67+ <Component Id =" C_pythonscript.dll" Bitness =" $(var.Win64)" >
68+ <RemoveFile Id =" Remove_F_pythonscript.dll" Name =" PythonScript.dll" On =" install" />
69+ <File Id =" F_pythonscript.dll" Name =" PythonScript.dll" Source =" $(var.baseDir)\$(var.variantDir)\Release\PythonScript.dll" />
70+ </Component >
71+ <Component Id =" C_python312.dll" Bitness =" $(var.Win64)" >
72+ <RemoveFile Id =" Remove_F_python312.dll" Name =" python312.dll" On =" install" />
73+ <File Id =" F_python312.dll" Name =" python312.dll" Source =" $(var.pythonDir)\python312.dll" />
74+ </Component >
75+ </Directory >
76+ </Directory >
77+ </Directory >
78+ </StandardDirectory >
79+ </Package >
9680
9781
9882</Wix >
0 commit comments