Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get user input during windows installer for WinForms application?

I have a call tracking application that I've built and now I need to create a Windows Installer that bundles the .NET Framework 4.0 with the installer and also allows the user to enter a authentication id, when installing the application.

Then be able to get the value they entered to setup the application for their specific location, by setting an application setting, within the WinForms application.

If the installer can write the authentication id to the registry, I could grab it from there in my application, on startup.

Just not sure which installer to use that would make this as painless as possible.

like image 570
Carl Weis Avatar asked Jul 27 '11 00:07

Carl Weis


People also ask

How do you make a field mandatory in Windows Installer custom dialog?

Open the wid file which you used for adding the custom dialog. Save the file and make sure you have the same file in both 1033 and 0 folders. Rebuild setup project.

How do I create an installer for WinForms?

If not then Choose View -> Editor -> File System. Now, you need to add output of your Windows Form Application to build the setup. Right-click on the Application Folder and select Add -> Project Output. Leave the default selection of Primary Output in the "Add Project Output Group" dialog box and click the OK button.


1 Answers

All of the things in your question can be done by using Visual Studio Setup projects. But bit painful procedure. Do google search for finding resources about writing to registry and grabbing values at the start-up.

There may be other tools that give these functionalities in a more user-friendly way. I know only about Visual Studio Installer.

This article explains about adding custom dialog boxes.

enter image description here

like image 173
CharithJ Avatar answered Sep 25 '22 18:09

CharithJ