Tuesday, April 28, 2009

Storing Values into Registry in SET UP Project in WINDOWS

Hi All,

This post discusses about entering values into the Registry while you are making Set Up Project for Windows Applications.

Go to File New Project->Other Project Types->SetUpProject.

After the Solution is added ,right click on the Solution and go to View User Interface.
After then Right click on START -> Add Dialog->Select TextBox(A).

There are Four text Boxes by Default,you can make them invisible false.
Lets take for Textbox1 which is named as EDIT1A.Enter BodyText,Banner Text and Edit1Label Text as desired.
now right click again on Solution->view Registry->HKEY_CURRENT_USER->Software
Add key Named as anyone say Alerts.

Right click on Alerts->New String Value as EMAIL

Now right click on EMAIL-> Set the Value of EMAIL as [EDIT1A]. The point to be noted here is the Value [EDIT1A]. The value has to be kept in Square Brackets.


After running the set up, the registry value will be entered in System Registry under HKEY_CURRENT_USER->Software->Alerts.

Thanks,
Nitin Sharma