Hi, i want to integrate a "Repair-Installation" into the installer.

But in the documentation I only found installationstype normal and upgrade..

Is it "easy" possible?

Something else:

Is it advisable to integrade a normal installation and upgrade in one xml-project?

asked 07 Aug '12, 08:23

sTaX's gravatar image

sTaX
11556
accept rate: 0%


InstallBuilder does not offer a dedicated repair mode. Depending on what actions you define, running the installer (in normal installation mode) again should be enough - it will copy all of the missing files and the post-installation actions will be run, which should restore things such as file associtations or other settings.

Whether installer will overwrite all files or just the files that are missing depends on <overwritePolicy> setting. It should be set to always to make sure files are always overwritten:

<project> ... <overwritePolicy>always</overwritePolicy> ... </project>

This functionality is described in more details in Selecting the files to upgrade section of AutoUpdate chapter of InstallBuilder user guide.

As for keeping normal and upgrade projects in single XML project - it is possible, however, it may be easier to keep smaller projects for updates and bigger projects for entire installations.

The <include> tag could be used to include one or more components or folders from separate files. This can be used to create components that are shared between normal and upgrade installers.

For example:

<componentList> <component> <name>internal</name> </component> <include file="my_external_component.xml" /> </componentList>

While my_external_component.xml would contain a single component in a <component> tag.

It is documented in Adding components from external files section of documentation.

link

answered 07 Aug '12, 10:01

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

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:

×1
×1

Asked: 07 Aug '12, 08:23

Seen: 654 times

Last updated: 07 Aug '12, 10:01

Related questions