Sorted out the registry settings needed to get the driver working properly on install.

This commit is contained in:
2019-05-24 00:07:29 +01:00
parent 2b5b5d7188
commit 8da41cad6f
4 changed files with 12 additions and 9 deletions
+5 -4
View File
@@ -7,11 +7,7 @@
--> -->
<Fragment> <Fragment>
<DirectoryRef Id="INSTALLFOLDER" /> <DirectoryRef Id="INSTALLFOLDER" />
<!-- <CustomActionRef Id="caPrepareAscomDeviceProfiles"/>
<CustomActionRef Id="caUnregisterDrivers"/>
<CustomActionRef Id="caRegisterDrivers"/>-->
<ComponentGroup Id="cgAscomFocuserDriver"> <ComponentGroup Id="cgAscomFocuserDriver">
<ComponentGroupRef Id="cgAscomLocalServer" />
<Component Id="cmpAscomFocuserDriver" <Component Id="cmpAscomFocuserDriver"
Directory="INSTALLFOLDER" Directory="INSTALLFOLDER"
Guid="*" Guid="*"
@@ -52,6 +48,11 @@
<RegistryValue Value="$(var.FocuserDriverClassId)" Type="string" /> <RegistryValue Value="$(var.FocuserDriverClassId)" Type="string" />
</RegistryKey> </RegistryKey>
</RegistryKey> </RegistryKey>
<!--Register the driver with the ASCOM Profile-->
<RegistryKey Root="HKLM" Key="SOFTWARE\ASCOM\Focuser Drivers\$(var.FocuserDriverProgId)">
<RegistryValue Value="$(var.FocuserDriverDescription)" Type="string"/>
</RegistryKey>
</Component> </Component>
</ComponentGroup> </ComponentGroup>
</Fragment> </Fragment>
+5 -4
View File
@@ -7,11 +7,7 @@
--> -->
<Fragment> <Fragment>
<DirectoryRef Id="INSTALLFOLDER" /> <DirectoryRef Id="INSTALLFOLDER" />
<!-- <CustomActionRef Id="caPrepareAscomDeviceProfiles"/>
<CustomActionRef Id="caUnregisterDrivers"/>
<CustomActionRef Id="caRegisterDrivers"/>-->
<ComponentGroup Id="cgAscomTelescopeDriver"> <ComponentGroup Id="cgAscomTelescopeDriver">
<ComponentGroupRef Id="cgAscomLocalServer" />
<Component Id="cmpAscomTelescopeDriver" <Component Id="cmpAscomTelescopeDriver"
Directory="INSTALLFOLDER" Directory="INSTALLFOLDER"
Guid="*" Guid="*"
@@ -52,6 +48,11 @@
<RegistryValue Value="$(var.TelescopeDriverClassId)" Type="string" /> <RegistryValue Value="$(var.TelescopeDriverClassId)" Type="string" />
</RegistryKey> </RegistryKey>
</RegistryKey> </RegistryKey>
<!--Register the driver with the ASCOM Profile-->
<RegistryKey Root="HKLM" Key="SOFTWARE\ASCOM\Telescope Drivers\$(var.TelescopeDriverProgId)">
<RegistryValue Value="$(var.TelescopeDriverDescription)" Type="string"/>
</RegistryKey>
</Component> </Component>
</ComponentGroup> </ComponentGroup>
</Fragment> </Fragment>
+1 -1
View File
@@ -19,7 +19,7 @@
<?define LocalServerAppId = "{4e68ec46-5ffc-49e7-b298-38a548df0bfd}" ?> <?define LocalServerAppId = "{4e68ec46-5ffc-49e7-b298-38a548df0bfd}" ?>
<?define CopyrightNotice="Copyright © 2019 cjdawson.com, all rights reserved" ?> <?define CopyrightNotice="Copyright © 2019 cjdawson.com, all rights reserved" ?>
<?define TelescopeDriverClassId="{8b9fccb9-87ae-42f7-90af-079e13de6efb}" ?> <?define TelescopeDriverClassId="{d9fd4b3e-c4f1-48ac-a16f-d02eef30d86f}" ?>
<?define TelescopeDriverProgId="ASCOM.MeadeGeneric.Telescope" ?> <?define TelescopeDriverProgId="ASCOM.MeadeGeneric.Telescope" ?>
<?define TelescopeDriverDescription="Meade Generic"?> <?define TelescopeDriverDescription="Meade Generic"?>
+1
View File
@@ -6,6 +6,7 @@
<FeatureGroup Id="fgRoot" > <FeatureGroup Id="fgRoot" >
<Feature Id="featAscomDrivers" Title="ASCOM drivers" Level="1" Absent="disallow" <Feature Id="featAscomDrivers" Title="ASCOM drivers" Level="1" Absent="disallow"
Display="expand" > Display="expand" >
<ComponentGroupRef Id="cgAscomLocalServer" />
<ComponentGroupRef Id="cgAscomTelescopeDriver"/> <ComponentGroupRef Id="cgAscomTelescopeDriver"/>
<ComponentGroupRef Id="cgAscomFocuserDriver"/> <ComponentGroupRef Id="cgAscomFocuserDriver"/>
</Feature> </Feature>