|
21 | 21 | destination for 32-bit versus 64-bit installers. Removal of these lines will |
22 | 22 | cause installation errors. |
23 | 23 | --> |
24 | | -<?if $(var.Platform) = x64 ?> |
25 | | - <?define Win64 = "yes" ?> |
| 24 | +<?if $(sys.BUILDARCH) = x64 or $(sys.BUILDARCH) = arm64 ?> |
26 | 25 | <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?> |
27 | 26 | <?else ?> |
28 | | - <?define Win64 = "no" ?> |
29 | 27 | <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?> |
30 | 28 | <?endif ?> |
31 | 29 |
|
|
44 | 42 | Keywords='Installer' |
45 | 43 | Description='The JavaScript Launcher' |
46 | 44 | Manufacturer='The Volta Maintainers' |
47 | | - InstallerVersion='450' |
| 45 | + InstallerVersion='500' |
48 | 46 | Languages='1033' |
49 | 47 | Compressed='yes' |
50 | 48 | InstallScope='perMachine' |
51 | | - SummaryCodepage='1252' |
52 | | - Platform='$(var.Platform)'/> |
| 49 | + SummaryCodepage='1252'/> |
53 | 50 |
|
54 | 51 | <MajorUpgrade |
55 | 52 | Schedule='afterInstallInitialize' |
|
62 | 59 | <Directory Id='INSTALLDIR' Name='Volta'> |
63 | 60 | </Directory> |
64 | 61 | </Directory> |
| 62 | + <?if $(sys.BUILDARCH) = x64 ?> |
65 | 63 | <Merge Id='VCRedist' SourceFile='wix\Microsoft_VC140_CRT_x64.msm' DiskId='1' Language='0'/> |
| 64 | + <?endif ?> |
66 | 65 | </Directory> |
67 | 66 |
|
68 | 67 | <ComponentGroup Id='Binaries' Directory='INSTALLDIR'> |
69 | | - <Component Id='voltaBinary' Guid='*' Win64='$(var.Win64)'> |
| 68 | + <Component Id='voltaBinary' Guid='*'> |
70 | 69 | <File |
71 | 70 | Id='voltaEXE' |
72 | 71 | Name='volta.exe' |
73 | 72 | DiskId='1' |
74 | | - Source='target\release\volta.exe' |
| 73 | + Source='$(var.CargoTargetBinDir)\volta.exe' |
75 | 74 | KeyPath='yes'/> |
76 | 75 | <Environment |
77 | 76 | Id='INSTALLPATH' |
|
82 | 81 | Action='set' |
83 | 82 | System='yes' /> |
84 | 83 | </Component> |
85 | | - <Component Id='shimBinary' Guid='*' Win64='$(var.Win64)'> |
| 84 | + <Component Id='shimBinary' Guid='*'> |
86 | 85 | <File |
87 | 86 | Id='voltashimEXE' |
88 | 87 | Name='volta-shim.exe' |
89 | 88 | DiskId='1' |
90 | | - Source='target\release\volta-shim.exe' |
| 89 | + Source='$(var.CargoTargetBinDir)\volta-shim.exe' |
91 | 90 | KeyPath='yes'/> |
92 | 91 | </Component> |
93 | | - <Component Id='migrateBinary' Guid='*' Win64='$(var.Win64)'> |
| 92 | + <Component Id='migrateBinary' Guid='*'> |
94 | 93 | <File |
95 | 94 | Id='voltamigrateEXE' |
96 | 95 | Name='volta-migrate.exe' |
97 | 96 | DiskId='1' |
98 | | - Source='target\release\volta-migrate.exe' |
| 97 | + Source='$(var.CargoTargetBinDir)\volta-migrate.exe' |
99 | 98 | KeyPath='yes'/> |
100 | 99 | </Component> |
101 | | - <Component Id='nodeBinary' Guid='*' Win64='$(var.Win64)'> |
| 100 | + <Component Id='nodeBinary' Guid='*'> |
102 | 101 | <File |
103 | 102 | Id='nodeEXE' |
104 | 103 | Name='node.exe' |
105 | 104 | DiskId='1' |
106 | | - Source='target\release\volta-shim.exe' |
| 105 | + Source='$(var.CargoTargetBinDir)\volta-shim.exe' |
107 | 106 | KeyPath='yes'/> |
108 | 107 | </Component> |
109 | | - <Component Id='npmBinary' Guid='*' Win64='$(var.Win64)'> |
| 108 | + <Component Id='npmBinary' Guid='*'> |
110 | 109 | <File |
111 | 110 | Id='npmEXE' |
112 | 111 | Name='npm.exe' |
113 | 112 | DiskId='1' |
114 | | - Source='target\release\volta-shim.exe' |
| 113 | + Source='$(var.CargoTargetBinDir)\volta-shim.exe' |
115 | 114 | KeyPath='yes'/> |
116 | 115 | </Component> |
117 | | - <Component Id='npmScript' Guid='*' Win64='$(var.Win64)'> |
| 116 | + <Component Id='npmScript' Guid='*'> |
118 | 117 | <File |
119 | 118 | Id='npmCMD' |
120 | 119 | Name='npm.cmd' |
121 | 120 | DiskId='1' |
122 | 121 | Source='wix\shim.cmd' |
123 | 122 | KeyPath='yes'/> |
124 | 123 | </Component> |
125 | | - <Component Id='npxBinary' Guid='*' Win64='$(var.Win64)'> |
| 124 | + <Component Id='npxBinary' Guid='*'> |
126 | 125 | <File |
127 | 126 | Id='npxEXE' |
128 | 127 | Name='npx.exe' |
129 | 128 | DiskId='1' |
130 | | - Source='target\release\volta-shim.exe' |
| 129 | + Source='$(var.CargoTargetBinDir)\volta-shim.exe' |
131 | 130 | KeyPath='yes'/> |
132 | 131 | </Component> |
133 | | - <Component Id='npxScript' Guid='*' Win64='$(var.Win64)'> |
| 132 | + <Component Id='npxScript' Guid='*'> |
134 | 133 | <File |
135 | 134 | Id='npxCMD' |
136 | 135 | Name='npx.cmd' |
137 | 136 | DiskId='1' |
138 | 137 | Source='wix\shim.cmd' |
139 | 138 | KeyPath='yes'/> |
140 | 139 | </Component> |
141 | | - <Component Id='pnpmBinary' Guid='*' Win64='$(var.Win64)'> |
| 140 | + <Component Id='pnpmBinary' Guid='*'> |
142 | 141 | <File |
143 | 142 | Id='pnpmEXE' |
144 | 143 | Name='pnpm.exe' |
145 | 144 | DiskId='1' |
146 | | - Source='target\release\volta-shim.exe' |
| 145 | + Source='$(var.CargoTargetBinDir)\volta-shim.exe' |
147 | 146 | KeyPath='yes'/> |
148 | 147 | </Component> |
149 | | - <Component Id='pnpmScript' Guid='*' Win64='$(var.Win64)'> |
| 148 | + <Component Id='pnpmScript' Guid='*'> |
150 | 149 | <File |
151 | 150 | Id='pnpmCMD' |
152 | 151 | Name='pnpm.cmd' |
153 | 152 | DiskId='1' |
154 | 153 | Source='wix\shim.cmd' |
155 | 154 | KeyPath='yes'/> |
156 | 155 | </Component> |
157 | | - <Component Id='yarnBinary' Guid='*' Win64='$(var.Win64)'> |
| 156 | + <Component Id='yarnBinary' Guid='*'> |
158 | 157 | <File |
159 | 158 | Id='yarnEXE' |
160 | 159 | Name='yarn.exe' |
161 | 160 | DiskId='1' |
162 | | - Source='target\release\volta-shim.exe' |
| 161 | + Source='$(var.CargoTargetBinDir)\volta-shim.exe' |
163 | 162 | KeyPath='yes'/> |
164 | 163 | </Component> |
165 | | - <Component Id='yarnScript' Guid='*' Win64='$(var.Win64)'> |
| 164 | + <Component Id='yarnScript' Guid='*'> |
166 | 165 | <File |
167 | 166 | Id='yarnCMD' |
168 | 167 | Name='yarn.cmd' |
169 | 168 | DiskId='1' |
170 | 169 | Source='wix\shim.cmd' |
171 | 170 | KeyPath='yes'/> |
172 | 171 | </Component> |
173 | | - <Component Id='yarnPkgBinary' Guid='*' Win64='$(var.Win64)'> |
| 172 | + <Component Id='yarnPkgBinary' Guid='*'> |
174 | 173 | <File |
175 | 174 | Id='yarnpgkEXE' |
176 | 175 | Name='yarnpkg.exe' |
177 | 176 | DiskId='1' |
178 | | - Source='target\release\volta-shim.exe' |
| 177 | + Source='$(var.CargoTargetBinDir)\volta-shim.exe' |
179 | 178 | KeyPath='yes'/> |
180 | 179 | </Component> |
181 | | - <Component Id='yarnPkgScript' Guid='*' Win64='$(var.Win64)'> |
| 180 | + <Component Id='yarnPkgScript' Guid='*'> |
182 | 181 | <File |
183 | 182 | Id='yarnpkgCMD' |
184 | 183 | Name='yarnpkg.cmd' |
|
192 | 191 | <ComponentGroupRef Id='Binaries'/> |
193 | 192 | </Feature> |
194 | 193 |
|
| 194 | + <?if $(sys.BUILDARCH) = x64 ?> |
195 | 195 | <Feature Id='VCRedistributable' Title='Visual C++ Runtime' AllowAdvertise='no' Display='hidden' Level='1'> |
196 | 196 | <MergeRef Id='VCRedist'/> |
197 | 197 | </Feature> |
| 198 | + <?endif ?> |
198 | 199 |
|
199 | 200 | <SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/> |
200 | 201 |
|
|
0 commit comments