Need steps to change ApplicationContext.config file at run time
Hi all,
I have a config file which I need to change at runtime. When I start installation of MSI, user has the option to enter DB server address, DB Name, username and password. I want these information to be updated in ApplicationContext.config file at runtime. Please provide me the steps to update the config file.
Below bold letter value I need to update at runtime.
<bean id="dataSource" destroy-method="close"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver" />
<property name="url" value="jdbc:sqlserver://SERVER1;failoverPartner=SERVER1;databaseName=XYZ_DB;" />
<property name="username" value="myUserName" />
<property name="password" value="myPassword" />
</bean>
I am using InstallShield 2012 installer tool.
Thanks in advance.
Regards,
Sanjay
I have a config file which I need to change at runtime. When I start installation of MSI, user has the option to enter DB server address, DB Name, username and password. I want these information to be updated in ApplicationContext.config file at runtime. Please provide me the steps to update the config file.
Below bold letter value I need to update at runtime.
<bean id="dataSource" destroy-method="close"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver" />
<property name="url" value="jdbc:sqlserver://SERVER1;failoverPartner=SERVER1;databaseName=XYZ_DB;" />
<property name="username" value="myUserName" />
<property name="password" value="myPassword" />
</bean>
I am using InstallShield 2012 installer tool.
Thanks in advance.
Regards,
Sanjay
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
GrGrGr
12 years ago
Posted by:
sanjaypakale
12 years ago
Posted by:
GrGrGr
12 years ago
Posted by:
anonymous_9363
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.