Permission Issue: Default Bootstrap Archive Location
See original GitHub issueDear @mordechaim, we recently upgraded the application from a business app updated by a custom launcher that is delivered by a Windows installer, to business + launcher apps updated by a script that is delivered by a Windows installer. The local folder where the updates are stored is %LOCALAPPDATA%/AppName
The solution to use the update4j’s Bootstrap works fine on the development computer, but on any other computer the installed wrapper runs into a permission issue: java.nio.file.AccessDeniedException: update.zip
I suspect the problem is that this is hardcoded to a relative path of update.zip
:
Path zip = Paths.get(ZIP_LOCATION); // always resolves to 'update.zip'
In our case, the current work directory is typically in c:/Program Files/AppName
and applications don’t have the permissions to write there. For this use case to work, we would either need to hardcode this to the system %TEMP%
directory, or at least allow specifying the work folder with an argument. What would you suggest?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top GitHub Comments
No, the old config path is a location inside the zip file.
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。