While upgrading the folder through bitrock script, how to update the file parameters from old file with the new one which we are going to upgrade.

asked 04 Apr '16, 10:31

John123's gravatar image

John123
6779
accept rate: 0%


Hi John123, I'm afraid I may be not understanding you correctly. Could you provide us with more information about what you want to achieve?

link

answered 05 Apr '16, 07:18

jesus's gravatar image

jesus ♦♦
1.1k14
accept rate: 18%

Suppose installer have file named A.properties that having content by default

RecordID= 1 UnitName= unit1

after installation, the user does some operation and the A.properties appended

RecordID= 1 UnitName= unit1,unit4,unit5

Now we create a new installer that has some new features and A.properties content by default is

RecordID= 1,2 UnitName= unit1,unit2

if the user upgrades with new installer after upgrade the A.properties content should be

RecordID= 1,2 UnitName= unit1,unit2,unit4,unit5

Means we want new changes as well as user changes in A.properties after the upgrade.

I have the set the <overwritepolicy>onlyIfNewer</overwritepolicy> for my XML file.

link

answered 05 Apr '16, 08:37

John123's gravatar image

John123
6779
accept rate: 0%

Hi John123, you could use the <propertiesfileset> action to write out property values to a properties file. You can find more information about this action in our User Guide: http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_write_property_file_value

link

answered 05 Apr '16, 10:27

jesus's gravatar image

jesus ♦♦
1.1k14
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×155
×22

Asked: 04 Apr '16, 10:31

Seen: 606 times

Last updated: 05 Apr '16, 10:27