/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
http://kb.flexerasoftware.com/selfservice/viewContent.do?externalId=Q104413
Answered 02/19/2012 by: GrGrGr
Orange Belt

Please log in to comment
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
Answered 02/19/2012 by: sanjaypakale
Senior Yellow Belt

Please log in to comment
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. :)
Answered 02/19/2012 by: GrGrGr
Orange Belt

Please log in to comment
0
I think I posted an XML class for VBScript here on AppDeploy a while ago.
Answered 02/20/2012 by: VBScab
Red Belt

Please log in to comment