win/msi: clean up the 'documentation shortcuts' feature
authorBert Belder <bertbelder@gmail.com>
Thu, 7 Mar 2013 17:01:57 +0000 (18:01 +0100)
committerBert Belder <bertbelder@gmail.com>
Fri, 8 Mar 2013 17:00:39 +0000 (18:00 +0100)
tools/msvs/msi/product.wxs

index ab04c08..720bee6 100755 (executable)
       <ComponentGroupRef Id="NpmSourceFiles"/>
     </Feature>
 
-    <Feature Id="nodejs.shortcuts" Title="node.js shortcuts" Level="1" Description="$(var.ProductDescription) Shortcuts">
-      <Feature Id="nodejs.shortcuts.internet" Title="Internet Shortcuts" Level="1"  Description="$(var.ProductDescription) internet shortcuts to the project's website and online documentation for this version">
-        <ComponentGroupRef Id="internet.shortcuts"/>
-      </Feature>
+    <Feature Level="1"
+             Id="DocumentationShortcuts"
+             Title="Online documentation shortcuts"
+             Description="Add start menu entries that link the the online documentation for Node.js $(var.ProductVersion) and the Node.js website.">
+      <ComponentRef Id="DocumentationShortcuts"/>
     </Feature>
 
     <Feature Id="EnvironmentPath"
       </Directory>
     </DirectoryRef>
 
+    <DirectoryRef Id="ApplicationProgramsFolder">
+      <Component Id="DocumentationShortcuts">
+        <RegistryValue Root="HKCU"
+                       Key="$(var.RegistryKeyPath)\Components"
+                       Name="DocumentationShortcuts"
+                       Type="integer"
+                       Value="1"
+                       KeyPath="yes"/>
+        <util:InternetShortcut Id="WebsiteShortcut"
+                               Name="Node.js website"
+                               Target="http://nodejs.org"
+                               Type="url"/>
+        <util:InternetShortcut Id="DocsShortcut"
+                               Name="Node.js documentation"
+                               Target="http://nodejs.org/dist/v$(var.ProductVersion)/docs/api/"
+                               Type="url"/>
+      </Component>
+    </DirectoryRef>
+
     <DirectoryRef Id="INSTALLDIR">
       <Component Id="EnvironmentPathNode">
         <RegistryValue Root="HKLM"
       </Component>
     </DirectoryRef>
 
-    <DirectoryRef Id="ApplicationProgramsFolder">
-      <Component Id="InternetShortcuts" Guid="3351B877-49BA-4BC0-BF5E-21BA623FD07C">
-        <util:InternetShortcut Id="OnlineWebsiteShortcut"
-                  Name="Node.js website"
-                  Target="http://nodejs.org"
-                  Type="url"/>
-        <util:InternetShortcut Id="OnlineDocumentationShortcut"
-                  Name="Node.js documentation"
-                  Target="http://nodejs.org/dist/v$(var.ProductVersion)/docs/api/"
-                  Type="url"/>
-        <RegistryValue Root="HKCU" Key="$(var.RegistryKeyPath)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
-      </Component>
-    </DirectoryRef>
-
-    <ComponentGroup Id="internet.shortcuts">
-      <ComponentRef Id="InternetShortcuts"/>
-    </ComponentGroup>
-
     <UI Id="NodeInstallUI">
       <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
       <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />