Windows: store moonshot.exe location in registry
authorSam Thursfield <samthursfield@codethink.co.uk>
Mon, 4 Jul 2011 12:56:52 +0000 (13:56 +0100)
committerSam Thursfield <samthursfield@codethink.co.uk>
Mon, 4 Jul 2011 12:56:52 +0000 (13:56 +0100)
This will be used by the client library to launch the service automatically

windows/app.wxs

index c1f098e..ca41053 100644 (file)
       </Directory>
 
       <Directory Id='DesktopFolder' Name='Desktop' />
+
+      <Component Id='RegistryEntries' Guid='7251DB79-DC03-4868-9855-41104164E5BA'>
+        <RegistryKey Root='HKLM'
+                     Key='Software\Moonshot'
+                     Action='createAndRemoveOnUninstall'>
+          <RegistryValue Type="string" Value="[BINDIR]$(var.MainExeFile)" />
+        </RegistryKey>
+      </Component>
+
     </Directory>
 
     <Feature Id='Complete' Level='1'>
       <ComponentRef Id='Gtk2ThemeEngineFiles' />
       <ComponentRef Id='Gtk2ThemeRcFiles' />
       <ComponentRef Id='Icons' />
+      <ComponentRef Id='RegistryEntries' />
     </Feature>
   </Product>
 </Wix>