Click here to Skip to main content
15,881,882 members
Articles / DevOps / Deployment
Tip/Trick

Password Dialog for Visual Studio Deployment Projects

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
26 Sep 2013CPOL 14.8K   574   3  
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)


Written By
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --