Adding program info into the registry

J

John Wright

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 in the
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
 
C

cfps.Christian

I realize this doesn't answer your question but I'd run away from
registry settings as fast as possible.
You'll find the more the app is distributed the more rights users will
need to have that a lot of companies are taking away. I know at my
last job we got an app from a company that modified the registry and
our options were to give a student administrator rights on the
computer or manually go through and determine which keys they needed
access to (they chose the later).
 
I

iDesmet

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("Software
\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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top