Hello Pradeep,
Indeed, this can be done through a
patch.
I've attached a sample which implement this scenario. In the zip archive you can find V1 of my installation package which will create a config file with the following content:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<appSettings>
<add key="LogLevel" value="100"/>
</appSettings>
</configuration>
On the upgraded version, I changed the .config file so the value attribute can be entered by the user at run-time when the patch is applied. Also, I've added a
Set Installer Property action on the
Next > button from the
PatchWelcomeDlg.
The value entered by the user in the edit box will be set to the
LOG_LEVEL property through this custom action which has the
PATCH statement in the
Condition field.
Please take a look on the
How do I create a patch that runs a custom action? article with related information for hints and guidance.
If you have other questions, please let us know.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging