Click here to Skip to main content
Click here to Skip to main content

Set a password textbox for Visual Studio .NET setup project

, 15 Feb 2004
Rate this:
Please Sign up or sign in to vote.
Set a password textbox for Visual Studio .NET setup project.


Do you need to set a password mask at Visual Studio .NET setup project? With a few steps, you would get it.


The only tool you need is ORCA. ORCA is a Microsoft utility for modifying and validating Windows Installer packages. It is a database tool created for setup authors and administrators who work with the Windows Installer Service. This utility is a part of the Windows Installer SDK download along with other MSI related tools.

You can use ORCA to open and modify MSI packages.

To download and install ORCA, follow these steps:

  1. Visit the SDK Platform Site page to download the Windows Installer SDK. The link to Windows Installer SDK should be on the left hand side frame on the above site.
  2. Click on that link to go to the next page to download Windows Installer SDK, which includes ORCA.
  3. After downloading and installing Windows Installer SDK, go to \Program Files\Microsoft SDK\Bin folder on the machine to look for Orca.msi.
  4. Run Orca.msi by double clicking on it, which is the setup to install ORCA on your machine.
  5. After installing ORCA on your machine, you will be able to right click on any MSI package and open it in ORCA.

Using the code

The first thing to do, is generate our VS.NET setup project and identify our future password textbox. You can see Edit2Property in our example that is EDITA2.

Now, we start to modify the MSI to enable our password text changing attributes for our textbox EDITA2.

First of all, we've to start ORCA and open the MSI file generated by VS.NET, and go to 'Control' table.

Normally, all textboxes are called CustomTextA, and we've to identify our textbox by Property column. In our case, we can see our row, has '7' as attributes. Let's go to see what means this '7'.

The attributes are set in binary format, so '7' is 111. 100 + 10 + 1 and this is 4 + 2 + 1 in decimal format. Now, we can go to control attributes table here and check what attributes are 4,2,1.

We can see that our textbox has the following properties: Enabled, Sunken and Visible. Now, check that there's an advance properties table for textboxes, and there's a Password property with value 2097152.

Now we have to add this property to the initial property value (7). 2097152 + 7 = 2097159, that's our new property value. Set in attributes cell and save the MSI File.

Now, check your MSI, and you could see that our textbox is a password textbox!!!


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Javier Teixido
Web Developer
Spain Spain
Currently working at

Comments and Discussions

QuestionMy vote of 5 Pinmemberalgem mojedo24-Jul-13 17:11 
SuggestionWorked flowless! PinmemberMember 297644227-Nov-12 2:11 
GeneralMy vote of 5 Pinmemberbigdreams3-Oct-11 8:39 
Straight to the point tutorial with clear images to illustrate. well done!
Questionhow can i set image to cancel, next, back buttons? PinmemberNarendra Reddy Vajrala3-Jun-09 6:10 
GeneralVery easily implementable solution Pinmembercharan.aspnet22-Apr-09 20:02 
GeneralSet Validation for Setup Poject Textbox Dialog in c# PinmemberCtal1-Jan-09 20:05 
QuestionHow do I do this all from the command line? PinmemberJason W. Thompson18-Aug-08 9:58 
AnswerRe: How do I do this all from the command line? PinmemberMember 265550917-Sep-08 12:47 
QuestionRe: How do I do this all from the command line? PinmemberVenhKates20-May-09 0:17 
AnswerRe: How do I do this all from the command line? Pinmemberhaker0427-Jun-11 1:51 
GeneralControl Attribute link revised Pinmemberbimal parekh21-May-08 20:00 
GeneralEncrypting the input values Pinmemberjagooch13-May-08 9:30 
GeneralRe: Encrypting the input values Pinmember Shaun Wilde 16-May-08 11:52 
QuestionChange 'Banner Text' of 'Welcome' User Interface Dialog ? PinmemberAniket Salunkhe11-Jan-07 23:43 
AnswerRe: Change 'Banner Text' of 'Welcome' User Interface Dialog ? PinmemberShaun Wilde9-May-07 0:34 
GeneralRe: Change 'Banner Text' of 'Welcome' User Interface Dialog ? Pinmemberjagooch15-May-08 7:58 
GeneralRe: Change 'Banner Text' of 'Welcome' User Interface Dialog ? Pinmember Shaun Wilde 16-May-08 11:50 
GeneralLink to get ORCA PinmemberJaved Akhter Siddiqui8-Feb-06 1:58 
GeneralRe: Link to get ORCA Pinmemberayubmcsku14-Apr-07 2:29 
GeneralRe: Link to get ORCA PinmemberKhaniya4-Mar-10 21:54 
GeneralAwsome! PinmemberJaved Akhter Siddiqui8-Feb-06 1:54 
GeneralUnique Licence number for each installation PinmemberMukund Pujari23-Nov-05 0:01 
GeneralRe: Unique Licence number for each installation PinmemberShaun Wilde9-May-07 0:37 
GeneralNice!!!! PinmemberCoder9821-Nov-05 12:21 
Generalorca Pinmembermary flower18-Oct-05 8:45 
Generalvalidate any textbox in a setup project Pinmembercomp_buster9-Aug-05 2:59 
GeneralRe: validate any textbox in a setup project PinmemberCtal1-Jan-09 21:05 
GeneralRe: validate any textbox in a setup project PinmemberNitin Nikam23-Dec-09 4:05 
General'Back' button disabled on FolderForm Pinmembersvetlanact12-May-05 6:48 
GeneralRe: 'Back' button disabled on FolderForm PinmemberNeilWhitlow28-Jun-05 8:14 
GeneralRe: 'Back' button disabled on FolderForm Pinsussdbareis15-Jul-05 23:58 
GeneralInstallShield editor Pinmemberminhpc_bk18-Feb-04 21:15 
GeneralRe: InstallShield editor PinmemberJavier Teixido22-Feb-04 21:35 
GeneralRe: InstallShield editor Pinmemberhkpillai16-Nov-04 20:07 
GeneralRe: InstallShield editor Pinmemberjavier_teixido16-Nov-04 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150414.1 | Last Updated 16 Feb 2004
Article Copyright 2004 by Javier Teixido
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid