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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With