Wise installer 7> Dynamic Content Edit
Hi I am new to Wise Package studio 7 SP3> I am trying to create a customise screen which asks to enter DBServerName and DBName, I then need to update a Web.Config.XML file during the installation and change <Connection string> to add DBServerName and DBName in the following manner “<Add Server=[DBServerName]; DB=[DBName]; Authentication=Yesâ€Â>
I have tried Dynamic Contents update and followed the following steps But i am not sure where I am going wrong because the file does not get updated and only put property description text rather than value. Please can someone help and guide me on how to develop this.
But when I run the Installer (MSI) the screen is displayed and I’ve entered the TestServer and TestDB But once the installation is completed the Web.Config.XML shows
“<Add Server=[DBServerName]; DB=[DBName]; Authentication=Yesâ€Â>
INSTEAD of
“<Add Server=TestServer; DB=TestDB; Authentication=Yesâ€Â>
I am not sure where I am going wrong. I am not expert with Wise package and creating MSI but I am helping my company to provide simple MSI which does simple updates and allow user to change config during the installation. Many Thanks in Advance.
I have tried Dynamic Contents update and followed the following steps But i am not sure where I am going wrong because the file does not get updated and only put property description text rather than value. Please can someone help and guide me on how to develop this.
Add file Web.Config.XML to Files structure in the Installer Editor Select the XML file from the following right screen and select Details Select Dynamic Content Tab and select the line I like to Edit and Click Edit button Create new property and then give the name “DBServerName†and Click Insert into Dynamic Value, which added [DBServerName] against Server tag. I’ve created “DBName†same way and inserted the value against the Database tag [DBName]. Clicked New Property and added Name. Left value empty because I want user to populate it during installation when fill in edit box[A] I added new Dialog window and removed existing objects and added two Test Edit boxes Edit Text Box [A] is added and I’v select [DBServerName] for the property Edit Text Box [B] is added and I’ve select [DBName] for the property
Compiled successfully
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
spartacus
13 years ago
Hello,
You are using mixed upper and lower case for your property names, implying Private Properties, but I think for Dynamic Content Edit, you need to be using PUBLIC properties.
Try replacing DBServerName with DBSERVERNAME and replace DBName with DBNAME when you are prompted to create new properties after clicking the edit button.
Regards,
Spartacus
You are using mixed upper and lower case for your property names, implying Private Properties, but I think for Dynamic Content Edit, you need to be using PUBLIC properties.
Try replacing DBServerName with DBSERVERNAME and replace DBName with DBNAME when you are prompted to create new properties after clicking the edit button.
Regards,
Spartacus
Posted by:
Ash786
13 years ago
Posted by:
anonymous_9363
13 years ago
Posted by:
Ash786
13 years ago
Now I have further problem, I get following line in the xml
" <!--WISEMETA: connectionString="Server=[DBSERVER_DESC];Database=[DBNAME_DESC];Trusted_Connection=Yes;"-->"
It worked once and then it stopped working. I am creating a MSI by compiling. One thing I didin't understand was that once I created a Property DBSERVER or DBNAME..... I then created a customised dialogue but during creating dialogue it ask me to add properties that end user will configure so I added the properties DBSERVER and DBNAME with description but my Properties name changed to DBSERVER_DESC or DBNAME_DESC. so in my dynamic content edit I then changed the property to [DBSERVER_DESC] and [DBNAME_DESC] since then its stopped working. I couldn't see properties DBNAME or DBSERVER that I created 1st time.
Please help I need to release it tomorrow morning
" <!--
It worked once and then it stopped working. I am creating a MSI by compiling. One thing I didin't understand was that once I created a Property DBSERVER or DBNAME..... I then created a customised dialogue but during creating dialogue it ask me to add properties that end user will configure so I added the properties DBSERVER and DBNAME with description but my Properties name changed to DBSERVER_DESC or DBNAME_DESC. so in my dynamic content edit I then changed the property to [DBSERVER_DESC] and [DBNAME_DESC] since then its stopped working. I couldn't see properties DBNAME or DBSERVER that I created 1st time.
Please help I need to release it tomorrow morning
Posted by:
anonymous_9363
13 years ago
You don't need 4 properties. Delete the _DESC ones and change those behind the user controls to be those you originally created.If they've been deleted, you can cheat by renaming the _DESC ones via editing the property table directly.
TBH, I've never trusted Wise's dynamic content. Witness the mess it can make of INI files and they're not what you'd call complex, are they?! For XML stuff, I use a VBScript with a home-grown XML class section for adding elements, nodes and attributes.
TBH, I've never trusted Wise's dynamic content. Witness the mess it can make of INI files and they're not what you'd call complex, are they?! For XML stuff, I use a VBScript with a home-grown XML class section for adding elements, nodes and attributes.
Posted by:
Ash786
13 years ago
Posted by:
Ash786
13 years ago
VBScab: Thanks for your help, it worked. I've removed the _DESC and also had to remove "_". Only used Upper Case name "SERVERNAME" and "DBNAME". Now my next challenge is to update XML based on check box option. User need to Select a check box select "TRUE or FALSE" need to be added to XML. how this is possible or what Action do I need to use.
Many thanks.
Many thanks.
Posted by:
anonymous_9363
13 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.