mattgcon
mattgcon

Reputation: 4848

Setup and Deployment project adding a registry key

Within my VS2010 C# project I have created a Setup And Deployment project to install the windows app. This Application is being installed on internal pcs within my company. I need to change or add a certain registry key within the users PC registry file, but I am unclear on how to do it. I have read that you need to create a new registry file and export it but I dont want to replace theirs, all I want to do is create or update one registry key within a certian registry location.

I need to add "ForceLargerFonts" within the HKCU/software/Business Objects/10.5/Export location by either adding the location Pdf (if it doesnt exist) and then ultimately adding the registery DWORD key "ForceLargerFonts" and set its value to 1.

Can I have some help on this

Upvotes: 1

Views: 15275

Answers (2)

Jacob Seleznev
Jacob Seleznev

Reputation: 8131

You need to Add Custom Action. For example see this question

Upvotes: 2

Sergey K
Sergey K

Reputation: 4114

You should create a setup project it's allow you to write registry keys look at this may be it will helps you msdn

Upvotes: -1

Related Questions