This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do I update xml connection string with input from user at installation time?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Aug 22, 2013
10:42 AM
How do I update xml connection string with input from user at installation time?
Hi,
In my installation I prompt the user for server IP.
How do I put that information into an xml file?
I tried using the XML File Changes feature but I found it confusing and difficult to use.
Below is the content of the xml file I'm using. I want to replace (local); with the server IP.
Any help will be much appreciated.
-
true
false
SQLServer
Data Source=(local);Initial Catalog=DashboardLibrary;Trusted_Connection=True;
db_schema
.\Schema\DashboardLibrary
In my installation I prompt the user for server IP.
How do I put that information into an xml file?
I tried using the XML File Changes feature but I found it confusing and difficult to use.
Below is the content of the xml file I'm using. I want to replace (local); with the server IP.
Any help will be much appreciated.
-
(2) Replies
‎Aug 23, 2013
09:38 AM
What project type are you using? What did you try in the XML File Changes view?
The XML File Changes view requires some knowledge of how to write XPath expressions. If you are not familiar with XPath, you may want to try the Text File Changes view, assuming that you are using a Basic MSI or InstallScript MSI project. Here's some more information:
Using Windows Installer Properties to Dynamically Modify Text Files
For using the XML File Changes view, here are a few topics that might be helpful:
Using XPath Expressions to Find XML Data in an XML File
Using Windows Installer Properties to Dynamically Modify XML Files
Using InstallScript Text Substitution to Dynamically Modify XML Files
The XML File Changes view requires some knowledge of how to write XPath expressions. If you are not familiar with XPath, you may want to try the Text File Changes view, assuming that you are using a Basic MSI or InstallScript MSI project. Here's some more information:
Using Windows Installer Properties to Dynamically Modify Text Files
For using the XML File Changes view, here are a few topics that might be helpful:
Using XPath Expressions to Find XML Data in an XML File
Using Windows Installer Properties to Dynamically Modify XML Files
Using InstallScript Text Substitution to Dynamically Modify XML Files
‎Aug 23, 2013
01:55 PM
DebbieL wrote:
What project type are you using? What did you try in the XML File Changes view?
The XML File Changes view requires some knowledge of how to write XPath expressions. If you are not familiar with XPath, you may want to try the Text File Changes view, assuming that you are using a Basic MSI or InstallScript MSI project. Here's some more information:
Using Windows Installer Properties to Dynamically Modify Text Files
For using the XML File Changes view, here are a few topics that might be helpful:
Using XPath Expressions to Find XML Data in an XML File
Using Windows Installer Properties to Dynamically Modify XML Files
Using InstallScript Text Substitution to Dynamically Modify XML Files
Hi,
I'm using an installscript project. I tried importing the xml file but then I didn't know what to do with it or get the user input into the right node.
Thanks
Paulied