Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / DevOps / deployment

Password Dialog for Visual Studio Deployment Projects

0.00/5 (No votes)
26 Sep 2013CPOL 15.3K   585  
A custom dialog that has a password textbox for your VS2012 projects

Introduction

If you've worked with Visual Studio Deployment projects, you know that it's not possible to have a password field in built-in dialogs. Although there are workarounds like editing the MSI file with ORCA or having a custom form displayed at the end of the installation, these methods require additional work.

After searching for a solution, I found Mr. Mohammed M. Malek's article. After following the instructions, I created the template file to be used for this purpose.

Using the Code

  1. Download the zip file and extract VsdUsernamePasswordDlg.wid file to a temporary location
  2. Close Visual Studio instances (if any)
  3. Copy the extracted file to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment\VsdDialogs\1033 folder

After completing the steps, create a Visual Studio setup project and try adding a dialog to it. You should see something like this:

Image 1

Let's hope future Visual Studio versions won't need this tweak. :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)