Hi,
I want to give our users way to configure our application during installation preserving existing user's settings (if any). We install .NET application and using standard config files (app.config).
So I created simple .NET application (to attach as .NET Custom Action later) which populates important values from existing users config during installation into public properties (as I understand early this is only way to read existing settings?). To test my installer class I attached it as .NET custom action to Install and Commit events and dump info to text files (for checking).
All goes successfully: info readed and populated into properties as I planned. So I decided to make dialogs to give users ability to configure populated values and store modified config. Here I get stuck...
First of all, .NET Custom Action always executed almost end of installation, so any dialogs I try to insert in sequence shown right before .NET Custom Action executes to populate values. I try different events (in InstallUISequence) but with same result.
I know that I can make dialog in Installer class.. but it looks weird (additional popup window), so if it possible I want to .NET CA do its job hidden.
And second, I planned to modify result config by using XML Editor feature. Is this right way?
What is standard way to do such configuration? Maybe I miss some guides or forum topics, or I try to do this in totally wrong way... please give me right direction.
Sincerely yours,
Nick
FOLLOW US
Get the latest news in Application Packaging