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

Try to update lintalist, error is shown #154

Closed
sine-w opened this issue Feb 18, 2020 · 3 comments
Closed

Try to update lintalist, error is shown #154

sine-w opened this issue Feb 18, 2020 · 3 comments
Assignees
Labels

Comments

@sine-w
Copy link

sine-w commented Feb 18, 2020

I try to update Lintalist by going to help>about>check for update
and the following error is shown:

Script file not found:
C:\Users\myname\Google

Is it because I put it in google drive that is why causing that error?

Or one possible guess is, my system is in Traditional chinese, and the path name after the word Google are four Chinese words, is that caused the problem?

my exact path is

C:\Users\myname\Google 雲端硬碟

@lintalist lintalist self-assigned this Feb 21, 2020
@lintalist
Copy link
Owner

Thank you for reporting it. There are two errors.

The first is my fault, I forgot to wrap the path to the update script in quotes, so in your case it already stops because of the space between Google and 雲端硬碟.

But, then you run into the second problem, before Lintalist unpacks the update (it downloads the Zip from GitHub) it tries to prepare a backup copy of the current version by zipping it, it seems that the standard Zip functions of Windows can't handle Unicode filenames as I get the following error message:

[Window Title] Compressed (zipped) Folders Error

[Content] 'D:\test\Google雲端硬碟' cannot be compressed
because it includes characters that cannot be used in a 
compressed folder, such as 雲端硬碟. You should rename
this file or directory.

I'm using https://github.com/cocobelgica/AutoHotkey-ZipFile which uses the Windows native Zip functions, perhaps something can be changed/added to make it work with unicode file names.

@lintalist
Copy link
Owner

From what I could find it is not possible to use native Zip functions and create a zip file with unicode file names. The users might be able to resolve it by installing language pack but that is not really helping I think. (Link with info below)

What I think I will do is display a message in advance saying if that error occurs, they can the download command line version of 7zip and when the update routine finds it, use 7zip instead of the native zip functions.

So for the moment you will have to update manually and download new version via https://github.com/lintalist/lintalist/releases

Install language pack: https://answers.microsoft.com/en-us/windows/forum/windows_10-files-winpc/windows-10-cannot-compressed-foldersfiles-that/f6e7884b-bdba-402a-8655-142f8bdf75d5

@lintalist
Copy link
Owner

lintalist commented Apr 12, 2020

If you want to try a new update routine with using 7-zip which should no longer show the error, you can try the zip file below. This assumes you haven't updated to v1.9.12 yet, if you did you need to edit version.ini in the lintalist folder (see note at the end)

It contains an updated files for:

lintalist.ahk
include\update.ahk

and new files

include\7za.exe (a stand alone console version of 7-zip exe downloaded from https://www.7-zip.org/download.html )

and a docs\Update.md

Unpack those files and overwrite lintalist.ahk and update.ahk - make sure the 7zip exe is placed in the include folder.

Now check for updates and it should ask if you want to create a backup, say YES, and it now should use 7zip and you should notice two Windows console/dos boxes popup that pack and unpack the updates. As 7-zip supports all characters it should work.

Edit 2: this has been added to v1.9.13

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