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

.exe & .zip both are portable classify them as such! #1072

Closed
Droyk opened this issue Mar 12, 2022 · 5 comments
Closed

.exe & .zip both are portable classify them as such! #1072

Droyk opened this issue Mar 12, 2022 · 5 comments

Comments

@Droyk
Copy link

Droyk commented Mar 12, 2022

Many times my brain just pauses and tries to understand the d/f's b/w the two & it happens every damn time!
which one is better? what are the diff's b/w the two?
which is one is for me?

since in your app case both are portable, just the .exe is compressed & the .zip one is uncompressed. if the user chooses .exe it will take some seconds to start the application and the .zip case needs to be extracted first but since it's an uncompressed version it will start immediately.

I think it would be better for everyone to mention the above differences (maybe with more clarity!) on the release page!
Thank you @mifi for continuously providing the time to maintain the app & to provide the requested features!
made my life a bit easier!

@Droyk Droyk changed the title .exe & zip both are portable classify them as such .exe & .zip both are portable classify them as such! Mar 12, 2022
@mifi
Copy link
Owner

mifi commented Mar 12, 2022

Thanks! That’s a good idea. I will update the readme

@mifi
Copy link
Owner

mifi commented Mar 12, 2022

unfortunately the release page it's not possible to mention, but i added to the readme.

@mifi mifi closed this as completed in bb4bb17 Mar 12, 2022
@Droyk
Copy link
Author

Droyk commented Mar 12, 2022

how .exe is a self-extracting? it doesn't seem to extract anything on my system
does it extracts in the temp. folders?

is there is any reason to not do it like this?
image

Of course with better words to differentiate b/w the two so users can understand easily which one suits their needs better.

@mifi
Copy link
Owner

mifi commented Mar 13, 2022

does it extracts in the temp. folders?

yes AFAIK it extracts to a temporary folder every time you run it. that's why it takes longer to start up.

Actually when I think about it, I don't really see much benefit of the .exe version (electron-builder calls it the portable target). Drawbacks:

So I think I will try to remove the exe variant in the next version and see if there are any objections (if there are good arguments for it I can put it back).

I will also try to use 7zip instead of zip for the windows download, because zip compression is not that great, leading to large downloads.

created a PR here: #1073

See also

@Dragodraki
Copy link

Dragodraki commented Jun 24, 2024

Hi there. In my opinion the self-executable was just great. For all apps that are not as lets say larger than 500MB or need persistence for some reason I am fond of the SFX-Archive format. I already asked to get them back here (#2055).

Of course they have its disadvaantages. But here are my thoughts related to them:

  • As for the time delay to extract, I can say, everyday you use Windows 10 or higher you suffer from apps loading significantly slower than back in the day in Windows XP/7/8 - even notepad, cmd, control, settings, etc.
  • mifi talked about problems NSIS had to find apps in temp. For my portable creations I had reduced those issues by these things: ruling out spaces in path names, defining a working dir, switching from the build-in temp folder variable to a self-defined location (like %temp%\LosslessCut[RandomNumber]), never using virtualized filesystem/registration and (especially for NSIS) extracting the files at beginning all at once using wildcard to keep folder structure.
  • SFX-Archives needs more disk space. But does it really matter? Back in the 90's when every byte counted and CD's/floppys had more space than HDD's (not talking about the price) it may had been a waste, but today? SSD's and NVMe's come not less than 256GB (tend is 2TB) and Windows itself eats about 30GB away. It seems rather ridiculous to me to worry about 150MB that is written to temp and gets auto-deleted at end.
  • That browsers block executables is an arguing fact we cannot change so easily. Everyone has to decide theemselves whether you let a browser tell you what to do or not. Silent NSIS and WinRAR SFX-archives are known for causing some false positives (check out on virustotal.com), because many nasty attackers use(d) these vendors for distributing malware in the past. I program tiny applications and need upload and whitelisting them in some cases, this is normal.
  • But my main argument pro SFX-archive is that I don't like loose library files lying around in uncountable folders and subfolders. I think: Either using a real setup with permanent installation and forgetting about the dependency files or using a single-file portable. This way accidentially changes to the program can be prevented in a effective way and the download folder is kept clean.

I hope, mifi will consider about providing the portable version for LossLessCut in the next versions again.

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

3 participants