If support packs are implemented by having multiple uninstallers and rollback repositories, it looks like uninstall of the support pack with rollback enabled does not seem to restore the old files (at least not in my configuration of the installer). Do I need to do anything special for the files to be restored during the uninstall procedure?

asked 23 Nov '11, 10:32

GigaG's gravatar image

GigaG
419911
accept rate: 0%


You need to use <restoreRollback/> action which will restore files from rollback directory after uninstallation finishes. The <restoreRollback/> action is undocumented and unsupported for now.

<project>
  <uninstallerName>uninstall servicepack</uninstallerName>
  <enableRollback>1</enableRollback>
  <rollbackBackupDirectory>${installdir}/servicepackRollbackDirectory</rollbackBackupDirectory>
  <!-- restore files on rollback -->
  <postUninstallationActionList>
    <restoreRollback/>
  </postUninstallationActionList>
  <!-- ... -->
</project>

The original question has also been updated to reflect this.

link

answered 23 Nov '11, 12:40

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Works like charm. Thank you for the tip. Any pointers to "unsupported" and "undocumented" features like these?

(23 Nov '11, 15:29) GigaG

There are a couple of actions that are usually only needed in very rare cases (like this one) and could easily be used in a wrong way.

We do not document them as they could potentially cause damage when not used properly.

(24 Nov '11, 09:32) wojciechka ♦♦

rollback not working can you provide complete code to demonstrate rollback

link

answered 25 Feb '15, 06:27

Mahantesh's gravatar image

Mahantesh
1
accept rate: 0%

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:

×54
×13

Asked: 23 Nov '11, 10:32

Seen: 1,408 times

Last updated: 25 Feb '15, 06:27