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

Could not start portable version anymore #1003

Closed
virtualdreams opened this issue Mar 28, 2022 · 8 comments
Closed

Could not start portable version anymore #1003

virtualdreams opened this issue Mar 28, 2022 · 8 comments
Labels

Comments

@virtualdreams
Copy link

Problem Description

Could not start VidCoder-7.13-Portable.exe.

What version of VidCoder are you running?

7.13

Encode Log

VidCoder 7.12 SquirrelInstaller
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\MyUsername\AppData\Local\Temp\packages\RELEASES'.
@RandomEngy
Copy link
Owner

You get that error after you launch the portable version? Is there anything else to the error? Usually it has some more information below it.

I'm wondering if it's incorrectly concluded that it's the installer version...

@virtualdreams
Copy link
Author

virtualdreams commented Mar 29, 2022

Yes, I got the error message right after the start. After the error there was an exception, which was not copied. Unfortunately, the logs from yesterday are gone and I can no longer reproduce the error.
The only thing I did, in the folder "AppData/Local/Temp" tried to delete everything and the computer was then in sleep mode.

And I have never used an installer or a pure ZIP version.

@RandomEngy
Copy link
Owner

RandomEngy commented Mar 29, 2022

Did it break after you deleted everything in the temp folder? Or was it fixed after you deleted everything in the temp folder?

The portable version works by extracting all the files needed to run to that temp folder (under RarSFX0), then running the program from there. When the program exits it deletes those files.

@virtualdreams
Copy link
Author

It only worked after I cleared the temp folder. The folder was not created at all.

In the meantime I tried to create "/packages/RELEASES" in the hope that it is a rights problem.

@RandomEngy
Copy link
Owner

That makes sense actually. The Squirrel installer library has a function that you can call to determine if it was installed via that platform. Their implementation of that function checks around the folder structure to see if it can find certain files like Update.exe. It must have gotten confused about another file inside the Temp folder and thought that it was active, then crashed when it couldn't find another expected file. That's why it fixed it to clear out the Temp folder.

I'll report the issue to the library creators and implement a workaround for the install type checking.

@virtualdreams
Copy link
Author

You can reproduce it by creating a file Update.exe under AppData/Local/Temp. The program crashes instantly.

@RandomEngy
Copy link
Owner

Thanks, that's good to know. Reported to the creators of the installer library: clowd/Clowd.Squirrel#63 . Will also work on a workaround to get the correct value even that Update.exe is there.

@RandomEngy
Copy link
Owner

Fixed in 7.14.

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

No branches or pull requests

2 participants