473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Adding program info into the registry

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
Jun 27 '08 #1
2 988
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).

Jun 27 '08 #2
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
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chris Fairall | last post by:
Hi all I am using Visual Studio 2003 Enterprise Architect, and for them most part, everything has been working fine. However, in the last few days, I have been experiencing a weird error, and I...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
2
by: Landen | last post by:
I am wanting to replicate a linux feature that I can't seem to find anywhere in windows as an addin or program. If anyone is familiar with linux, if you right click on a folder or file, you get the...
4
by: Chris Fairall | last post by:
Hi all I am using Visual Studio 2003 Enterprise Architect, and for them most part, everything has been working fine. However, in the last few days, I have been experiencing a weird error, and I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.