Skip to content

Commit

Permalink
msi: fixup WiX4 migration
Browse files Browse the repository at this point in the history
Fixed a few nodemsi WiX warnings and added NuGet.Config file.
  • Loading branch information
StefanStojanovic committed Mar 1, 2023
1 parent dd7a84f commit 17cdadc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
6 changes: 6 additions & 0 deletions tools/msvs/msi/NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
30 changes: 15 additions & 15 deletions tools/msvs/msi/nodemsi/product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@
</Feature>
</Feature>

<StandardDirectory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Node.js"/>
</StandardDirectory>
<StandardDirectory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Node.js"/>
</StandardDirectory>

<Directory Id="$(var.ProgramFilesFolderId)">
<Directory Id="INSTALLDIR" Name="nodejs">
</Directory>
<StandardDirectory Id="$(var.ProgramFilesFolderId)">
<Directory Id="INSTALLDIR" Name="nodejs">
</Directory>
</StandardDirectory>

<DirectoryRef Id="INSTALLDIR">
<Component Id="NodeExecutable">
Expand Down Expand Up @@ -241,17 +241,17 @@
</Component>
</Directory>
</Directory>
</DirectoryRef>

<Directory Id="AppDataFolder">
<Directory Id="AppDataDir" Name="npm">
<Component Id="AppData" Guid="D3B35D0E-D0F9-4D11-A773-D4608E90E1D1">
<CreateFolder />
<RemoveFolder Id="AppDataDir" On="uninstall" />
<RegistryValue Root="HKCU" Key="$(var.RegistryKeyPath)\Components" Type="string" Value="" />
</Component>
</Directory>
<StandardDirectory Id="AppDataFolder">
<Directory Id="AppDataDir" Name="npm">
<Component Id="AppData" Guid="D3B35D0E-D0F9-4D11-A773-D4608E90E1D1">
<CreateFolder />
<RemoveFolder Id="AppDataDir" On="uninstall" />
<RegistryValue Root="HKCU" Key="$(var.RegistryKeyPath)\Components" Type="string" Value="" />
</Component>
</Directory>
</DirectoryRef>
</StandardDirectory>

<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="DocumentationShortcuts">
Expand Down

0 comments on commit 17cdadc

Please sign in to comment.