Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

backup and restore of data during major upgrade


2 replies to this topic

vishalv

vishalv
  • Full Members
  • 39 posts

Posted 16 May 2006 - 06:02

Hi,

I am trying a major upgrade during which I need to backup and restore the user data.

I think this can be done through custom action. However I do not know where to place the backup custom action and the restore custom action such that it does the intended functionality and is run only once during a major upgrade.
Also what should be the condition to run this custom action?

Any insights or help is highly appreciated.

Thanks,
Vishalv

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 16 May 2006 - 11:36

Back up before RemoveExistingProducts, restore after InstallFiles, or even later, just before InstallFinalize (assuming that RemoveExistingProducts is earlier in the sequence).

As a condition use the property that you used in detection of the old version (Upgrade table)

vishalv

vishalv
  • Full Members
  • 39 posts

Posted 27 May 2006 - 10:24

Hi Stefan,
Thank you for the suggestions.
I backed up the data just before the dialogs are loaded and restore it after the files are installed.

Regards,
Vishalv