When to execute registry backup - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

When to execute registry backup

I have my application set up where it writes to the registry a number of keys. When I run an auto or manual install my registry keys get wiped out even when they are set to not get deleted on uninstall. I have a script that backs up the registry from this post: http://www.advancedinstaller.com/user-g ... eg-ca.html but am not finding the right execution point for it.

Any ideas,
Jim
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: When to execute registry backup

Hello Jim,

In order to achieve what you want you can proceed like this:
- Go to "Install Parameters" page and enable "Run as administrator" option.
- Go to "custom Action" page and add the related registry backup script custom action under "Install Execution Stage" -> "Paths Resolution" action group.
- Add the restore and delete registry backup script custom actions after "Finish Dialogs Stage".
- Build and run your project.

Also, starting with version 9.4 of Advanced Installer you can achieve this using our persistence feature. You can proceed like this:
- Go to "Registry" page, select your registries key and from its context menu choose "Properties..." option.
- In the "Edit Registry Key" dialog -> "Operations" tab enable "Preserve key content" option using desired condition.
- Build and run your project.

Let us know if this helps, otherwise give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”