Visual Studio Windows Installer Project: Using Built-in Dialog Information

We needed to pass in credential setup information when installing our application. The following steps worked:

  • Add a TextBox (B) dialog in the user interface editor of the vdproj

image

image

image 

  • Setup the textboxes with required parameters – note the names of EditProperty you choose.. Default is EDITB1

image

  • Go to custom actions editor and put the following in the CustomActionData property for Install (usually) : /MyParam1=[EDITB1] /MyParam2=[EDITB2] (separated by spaces)

image

image

image

  • Go to the installer code and these values can be accessed in the OnInstall event as: Context.Parameters[“MyParam1”] etc.
Advertisements

About vijayvepa

I'm a software consultant for Software Specialists Inc. currently working at Philips Respironics, Pittsburgh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: