Browse Source

win/msi: use consistent registry key paths

v0.10.0-release
Bert Belder 12 years ago
parent
commit
4348241bcc
  1. 24
      tools/msvs/msi/product.wxs

24
tools/msvs/msi/product.wxs

@ -6,6 +6,8 @@
<?define ProductDescription = "Node.js" ?> <?define ProductDescription = "Node.js" ?>
<?define ProductAuthor = "Joyent, Inc. and other Node contributors" ?> <?define ProductAuthor = "Joyent, Inc. and other Node contributors" ?>
<?define RegistryKeyPath = "SOFTWARE\Node.js" ?>
<?define RepoDir="$(var.ProjectDir)..\..\..\" ?> <?define RepoDir="$(var.ProjectDir)..\..\..\" ?>
<?define SourceDir="$(var.RepoDir)\$(var.Configuration)\" ?> <?define SourceDir="$(var.RepoDir)\$(var.Configuration)\" ?>
@ -29,8 +31,11 @@
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" /> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="INSTALLDIR"> <Property Id="INSTALLDIR">
<RegistrySearch Id='InstallPathRegistry' Type='raw' <RegistrySearch Id="InstallPathRegistry"
Root='HKCU' Key='SOFTWARE\Joyent\Node.js\Installer' Name='PreviousPath' /> Type="raw"
Root="HKCU"
Key="$(var.RegistryKeyPath)"
Name="InstallPath"/>
</Property> </Property>
<Feature Id="nodejs" Title="node.js engine" Level="1" Description="$(var.ProductDescription)" Absent="disallow"> <Feature Id="nodejs" Title="node.js engine" Level="1" Description="$(var.ProductDescription)" Absent="disallow">
@ -97,14 +102,9 @@
<File Id="filenodejsvars" KeyPath="yes" Source="$(var.RepoDir)\tools\msvs\nodejsvars.bat" /> <File Id="filenodejsvars" KeyPath="yes" Source="$(var.RepoDir)\tools\msvs\nodejsvars.bat" />
</Component> </Component>
<Component Id="noderegistry" Guid="*" > <Component Id="noderegistry" Guid="*" >
<RegistryKey Root="HKCU" Key="Software"> <RegistryKey Root="HKCU" Key="$(var.RegistryKeyPath)">
<RegistryKey Key="Joyent"> <RegistryValue Name="InstallPath" Type="string" Value="[INSTALLDIR]" KeyPath="yes" />
<RegistryKey Key="Node.js"> <RegistryValue Name="Version" Type="string" Value="$(var.ProductVersion)" />
<RegistryKey Key="Installer">
<RegistryValue Name="PreviousPath" Type="string" Value="[INSTALLDIR]" KeyPath="yes" />
</RegistryKey>
</RegistryKey>
</RegistryKey>
</RegistryKey> </RegistryKey>
</Component> </Component>
</Directory> </Directory>
@ -127,7 +127,7 @@
Arguments="/x [ProductCode]" Arguments="/x [ProductCode]"
Description="Uninstalls $(var.ProductName)" /> Description="Uninstalls $(var.ProductName)" />
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\Joyent\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RegistryValue Root="HKCU" Key="$(var.RegistryKeyPath)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component> </Component>
<Component Id="InternetShortcuts" Guid="3351B877-49BA-4BC0-BF5E-21BA623FD07C"> <Component Id="InternetShortcuts" Guid="3351B877-49BA-4BC0-BF5E-21BA623FD07C">
<util:InternetShortcut Id="OnlineWebsiteShortcut" <util:InternetShortcut Id="OnlineWebsiteShortcut"
@ -138,7 +138,7 @@
Name="Node.js documentation" Name="Node.js documentation"
Target="http://nodejs.org/dist/v$(var.ProductVersion)/docs/api/" Target="http://nodejs.org/dist/v$(var.ProductVersion)/docs/api/"
Type="url"/> Type="url"/>
<RegistryValue Root="HKCU" Key="Software\Joyent\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RegistryValue Root="HKCU" Key="$(var.RegistryKeyPath)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component> </Component>
</DirectoryRef> </DirectoryRef>

Loading…
Cancel
Save