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!

see
Posts: 11
Joined: Wed Aug 12, 2015 7:16 am

Install before Uninstall

Oi,

installer shows a strange behavior if "install first and then uninstall" option is used.

During upgrade ...
On install: all files are created.
On uninstall: all files of "verison-old" are deleted by name, including all updated files.

What could cause this?

PS: Files and folders get sync'ed from visual studio output folder.

Thank you,
see
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Install before Uninstall

Hi,

When the Install new version first and then uninstall old version is used as an Upgrade order, the installer updates files before removing the old applications. Only the files being updated get installed during the installation. If the old application's removal fails, then the installer rolls back both the old application's removal and the new application's install.

Please note that the Install new version first and then uninstall old version option will work only if the files' components don't change from the old version to the new one (their names and GUIDs remain the same).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
see
Posts: 11
Joined: Wed Aug 12, 2015 7:16 am

Re: Install before Uninstall

Hi,

ok. How can I keep the GUIDs according to the filename during sync. Where is the GUID being generated?

Thank you,
see
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Install before Uninstall

Hi,

Please note that the synchronization feature should not be used in Upgrade packages when using the Install new version first and then uninstall old version option because the synchronization may create new GUIDs for components when refreshed resulting in the files being deleted when upgrading the product.

You can read more about this in the Synchronize Folder article.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
see
Posts: 11
Joined: Wed Aug 12, 2015 7:16 am

Re: Install before Uninstall

Hi,

that means I have to parse *.aip XML and add files and directories (components with GUID equals MD5 of filename)?

Isn't there a better solution? I need to rollback.

Thank you,
see

Return to “Building Installers”