On Jun 19, 1:31*pm, "John Wright" <riley_wri...@hotmail.comwrote:
I need to put some registry entries in for my program so our helpdesk
scanning software will pick it up. *I need to put the following data inthe
registry:
In the software classes hive under HKLM/Software/Classes I need to put in
the Software Name then a Hive under it called CLSID with the GUID from the
Assembly Information.
Then in HKLM/Software I need an entry for my program with the assembly
information.
This is the same routine as other installed products. *The difference with
this program is it is deployed via clickonce so I don't know if it will make
these entries for me. *Anyone have any ideas on the best way to do this? *I
need to make sure all my developers do the same thing across the company and
would like to standardize the process.
John
I don't use the registry quite often but maybe the following code I
have may show you the way:
Private Sub frmMainMDI_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
' Load Quick Access Toolbar layout if one is saved from last
session...
Dim key As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.CurrentUser.OpenSubKey("S oftware
\NiceProd2008\Ribbon")
If Not key Is Nothing Then
Try
Dim layout As String = key.GetValue("RibbonLayout",
"").ToString()
If layout <"" And Not layout Is Nothing Then
RibbonControlNiceProd.QatLayout = layout
End If
Finally
key.Close()
End Try
End If
End Sub
Private Sub frmMainMDI_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
' Save Quick Access Toolbar layout if it has changed...
If RibbonControlNiceProd.QatLayoutChanged Then
Dim key As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.CurrentUser.CreateSubKey( "Software
\NiceProd2008\Ribbon")
Try
key.SetValue("RibbonLayout",
RibbonControlNiceProd.QatLayout)
Finally
key.Close()
End Try
End If
End Sub
Regards,
David Desmet