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

Windows (un)installer deletes all sibling files where it is run! #186

Closed
TheIronMarx opened this issue Mar 26, 2017 · 8 comments
Closed

Comments

@TheIronMarx
Copy link

Possibly related to #176 .

When installing, I assumed it would create a folder for itself and I selected a Program Files folder on a disk containing a lot of important metadata for software. It did not. I assumed I could safely use the uninstaller to clear out those new files. And the thing just starts expelling everything in the folder.

For God's sake that can't be the functionality of an uninstaller! If it's an Electron issue, scrap the uninstaller with the release.

@yishn
Copy link
Member

yishn commented Mar 26, 2017

I'm so sorry, I hope nothing really important got deleted! I guess I'm just going back to plain old 7z archive after these fiascos with the Windows installer. At least until electron-builder gets its shit together.

@develar
Copy link

develar commented Mar 27, 2017

electron-userland/electron-builder#1301 will be merged soon.

guess I'm just going back to plain old 7z archive after these fiascos with the Windows installer.

You can use portable target to create portable windows app without installation.

@yishn
Copy link
Member

yishn commented Mar 27, 2017

@develar Thank you for your work! I'll try out the portable target.

@yishn
Copy link
Member

yishn commented Mar 27, 2017

@develar The portable target looks good in theory, but there are a few caveats I can't live with:

  1. It takes longer time to start the portable version than the non-portable version.
  2. Arguments aren't passed to electron which makes it unusable as an editor. (E.g. opening files in Windows Explorer by clicking 'Open With...' and selecting the portable version won't open the file.)

Also another reason I'm using the installer is the automatic file association that comes with it.

@develar
Copy link

develar commented Mar 27, 2017

I will merge electron-userland/electron-builder#1301 tomorrow.

It takes longer time to start the portable version than the non-portable version.

zip compression maybe used, I will check.

Arguments aren't passed to electron which makes it unusable as an editor

it is bug, I will check it (could you please file issue?)

Also another reason I'm using the installer is the automatic file association that comes with it.

Yes. And auto-update.

@yishn
Copy link
Member

yishn commented Mar 27, 2017

I've opened an issue at electron-userland/electron-builder#1410.

@yishn yishn added this to the v0.30.0 milestone Mar 27, 2017
@yishn yishn changed the title Windows uninstaller deletes all sibling files where it is run! Windows (un)installer deletes all sibling files where it is run! Mar 27, 2017
@develar
Copy link

develar commented Mar 28, 2017

Error fixed in the electron-builder 16.5.0 Now you are forced to install to subdirectory named as app if target installation dir is exist.

@yishn yishn closed this as completed in 207c68a Mar 29, 2017
@TheIronMarx
Copy link
Author

Thank you for dealing with this so swiftly.

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

No branches or pull requests

3 participants