Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to create set as value radiobutton property for a Dword registry key ?
 

How to create set as value radiobutton property for a Dword registry key ?


Hi all,
I have created as a user interface with radio buttons.
Then I would like to add a registry key of type "DWORD value" .
I would like to pass as value the property of a radiobutton.
Unfortunately i can't update the value of the registry key with the property
of the radiobutton. It failed with this error :
[MY_RADIOBUTTON_PROPERTY] is not a valid value for Int32.
How can I bypass this ? I need to absolutely to create a registry key of type "DWORD value".

Thanks,
Godeffroy  Saturday, September 05, 2009 10:34 AM
Is this a question about setup & deployment packages? If not, which language are you using, C# or VB?

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Saturday, September 05, 2009 4:57 PM
I am using the windows installer wizard. There is a wizard called "registry key editor" to create key from
a UI. Do you know what I am talking about ?
Godeffroy  Saturday, September 05, 2009 7:05 PM
Well, *I* don't, but don't feel disheartened. I'm the ClickOnce guru, not the setup & deployment guru, hence the stupid question. Just checking to make sure that it's not yet another C# question about how to get data out of a database and put it in a textbox on a screen (seriously).

Phil Wilson is the setup & deployment guru, and he'll probably come around soon and answer your question, while I will fade away once more into the ClickOnce questions...

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Sunday, September 06, 2009 2:38 AM
Well Thanks for the answer anyway. Maybe you can the answer the following question ? As you know I would like to set a registry a Dword key. I would like to set a registry dword key with a value given by the user interface. So i guess if I could retrieve user interface values at the event "onCommit" of the installer i could do the job. For the moment i dont know how to retrieve the values entered by the user at the event "Oncommit".
Godeffroy  Sunday, September 06, 2009 1:12 PM

Hi,

You can access the radiobutton by the name of that UI dialog and set the value in the custom action. Check the following gthreads.

Get the radio button value

http://social.msdn.microsoft.com/forums/en-US/winformssetup/thread/cee0e166-571d-4abc-b945-da23a660db3b/

Set registry key value

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/1b860f30-a21c-420a-8549-b747b4bdb5e9/

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Saturday, September 12, 2009 10:11 AM

You can use google to search for other answers

Custom Search

More Threads

• IE Controls
• Modifying VS 2005 Setup Projects dialogs
• Custom Action before install
• Visual C++ Runtime is getting installed EVERY time
• Creating a setup Project with custom SQL script and dll
• clickonce async wait
• ClickOnce Deployment
• How to make my output installer a .exe installer from VS2005?
• Unusual issue when building setup project
• Stopping processes before uninstalling.