Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep folders after update #7292

Closed
NeekoGta opened this issue Nov 29, 2022 · 4 comments
Closed

Keep folders after update #7292

NeekoGta opened this issue Nov 29, 2022 · 4 comments

Comments

@NeekoGta
Copy link

  • Electron-Builder Version: 23.6.0
  • Node Version: 18.12.0
  • Electron Version: 21.2.3
  • Electron Type (current, beta, nightly): current
  • Target: Windows

Related to this : #2181

I want to know how I can keep folders in the application directory after auto update?
Actually, all folders and files are deleted.

Thanks!

@fanchenio
Copy link

This function is really needed, for example, user configuration is stored in C disk by default, but C disk is sandbox, and C disk will be reset every time it is restarted, so I added a function that users can modify the configuration path, but this configured path needs a place to store, I think it is best to put in the software root directory, but this file will be deleted after software update. Hopefully, the ability to update reserved files can be added.

@fanchenio
Copy link

@mmaietta

@mmaietta
Copy link
Collaborator

mmaietta commented Feb 9, 2023

AFAIK, updates are supposed to wipe the app directory by nature. I'd advocate for storing/persisting the config file within AppData where the rest of app data should be located.

@mmaietta mmaietta closed this as completed Feb 9, 2023
@ribeirogab
Copy link

@mmaietta

This is not correct as it should be an update and not a reinstall.

In my case, for example, I am creating a launcher for a game and I give the user the option to choose the installation directory in the application (launcher). When starting the launcher, the game is downloaded to the same directory as the application (as it is quite complicated to simply save to AppData).

When the Launcher receives an automatic UPDATE, the game files are simply deleted and will need to be downloaded again...

This feat should be called AUTO REINSTALL instead of AUTO UPDATE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants