Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Windows installer: Clean old files and add version subfolder #3445

Merged

Conversation

antirotor
Copy link
Member

@antirotor antirotor commented Jun 30, 2022

Enhancement

This PR is addressing issue where old files were left when OP version was reinstalled to the same folder. This has one important effect - this will currently delete all files there without any remorse (deleting any user stuff that might be there).

I've also added version subfolder to the path so OpenPype will install to C:\Program Files (x86)\OpenPype\3.12.1-nightly.1
This is in preparation for implementing #3415

Testing instructions

  • use .\tools\build_win_installer.ps1 to create installer.
  • run the installation. Dialog should ask for the destination path and provide the one to program files with version at the end
  • finish the installation
  • add arbitrary file to installation directory
  • run the installation again and install to the same directory
  • your arbitrary file should be gone

Resolve #3440

@antirotor antirotor added the type: enhancement Enhancements to existing functionality label Jun 30, 2022
@antirotor antirotor requested review from mkolar and 64qam June 30, 2022 09:59
@antirotor antirotor self-assigned this Jun 30, 2022
@ynbot
Copy link
Contributor

ynbot commented Jun 30, 2022

@antirotor antirotor merged commit 53a8745 into develop Jul 4, 2022
@antirotor antirotor deleted the enhancement/OP-3502_win-installer-clean-old-files branch July 4, 2022 13:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows installer won't clean the old version
4 participants