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
[ - ] Hide Comments

so that the conversation will remain readable.
Answer this question
or Comment on this question for clarity
Answers
I am sorry. This is not the one which I was looking for.
Actually I wanted to change the xml file at runtime which is exist with in my MSI.
In installshield there is a option to change the xml file but somehow I could not able to achieve this.
Thanks,
Sanjay
Actually I wanted to change the xml file at runtime which is exist with in my MSI.
In installshield there is a option to change the xml file but somehow I could not able to achieve this.
Thanks,
Sanjay
Please log in to comment
Comments