“无法将许可证密钥文件写入目录...请确保此目录是可写的。”

最后编辑了

症状

试图完成鳞果时’s设置程序出现以下对话框:

写作失败

无法保存配置!

无法将许可证密钥文件写入目录‘X: '请肯定 这个目录是可写的。

[重试] [中止]

更多信息

squ looks for and tries to write the license key file .squish-3-license in the following paths in the specified order:

  1. Path in environment variable SQUISH_LICENSEKEY_DIR, if set.

  2. Path from combining environment variables HOMEDRIVE and HOMEPATH (Windows only), if both are set.

  3. Path in environment variable HOME, if set.

  4. Path in environment variable USERPROFILE (Windows only), if set.

请注意,相同的许可证密钥文件用于蜂蜜3和鳞片4。

可能的解决方案

将许可证文件放在啜饮中会自动寻找它

The easiest solution is to copy the .squish-3-license file to one of the directories that Squish automatically searches.

Use the SQUISH_LICENSEKEY_DIR environment variable

Another solution is to copy the .squish-3-license file to a directory on your local hard disk and set the SQUISH_LICENSEKEY_DIR environment variable to the name of that directory. Then make sure that the environment variable is always set before Squish runs.

检查环境变量并访问驱动器

如果上述情况均未工作,请检查环境变量,看看它们是否有您希望它们的目录。在Windows上,检查是否驱动器(例如, X:)断开连接或无法访问的网络驱动器。如果可能的话,将许可证文件放在机器上’s local disk.

退出并重新打开

这可能会恢复对蜂鸣欲者想要编写许可证文件的驱动器的访问权限。

进一步的原因

不兼容的文件服务器

略微不兼容的SMB(SAMBA)文件服务器也可能导致此问题。