/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: GrGrGr 12 years ago
Orange Belt
0
http://kb.flexerasoftware.com/selfservice/viewContent.do?externalId=Q104413
Posted by: sanjaypakale 12 years ago
Senior Yellow Belt
0
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
Posted by: GrGrGr 12 years ago
Orange Belt
0
Use Text File Changes instead of XML File Changes. The latter one is known to have formatting issues with .xml files.

Use F1 button for steps. :)
Posted by: anonymous_9363 12 years ago
Red Belt
0
I think I posted an XML class for VBScript here on AppDeploy a while ago.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ