TakataSanshiro / Chocolatey-Packages

Some packages that can be installed via chocolatey.org
MIT License
15 stars 29 forks source link

[exiftoolgui] crashes with access violation #86

Closed jedfrechette closed 1 year ago

jedfrechette commented 2 years ago

Attempting to run exiftool 5.16.20211222 results in a message box with the error message:

Access violation at address 758AB248 in module 'shell32.dll'.
Read of address 05630070

From googling this seems to be a result of exiftoolgui trying and failing to write files to the directory it was run from, in this case C:\ProgramData\bin\

TakataSanshiro commented 2 years ago

I cannot reproduce this issue. The chocolatey ExifToolGUI.exe default path is C:\ProgramData\chocolatey\bin Please check your settings.

jedfrechette commented 2 years ago

Sorry, chocolatey\bin is what I had intended to write and that is in fact where it is installed. On two different machines unprivileged users are reporting the error, although it does seem to be somewhat intermittent so I'm not exactly sure what triggers it. In all cases though there is also a message "Cannot save GUI settings" when closing the application.

TakataSanshiro commented 2 years ago

I'll look at it.

TakataSanshiro commented 2 years ago

I can reproduce this issue - "Cannot save GUI settings". There is no

Access violation at address 758AB248 in module 'shell32.dll'.

Run exiftoolgui with unprivileged and click Program> GUI color> Blue, then closing the application. As exiftoolgui save GUI settings on the same folder.

I added a parameter to specify a custom installation folder.

choco install exiftoolgui --version 5.16.20221012 --params="'/installPath:C:\Users\<YourUsername>\Downloads\exiftoolgui'"

I can save the GUI settings with unprivileged. If it's not working, please a comment.

TakataSanshiro commented 1 year ago

I added Set-Acl in the chocolateyInstall.ps1. No need to use package parameters. This permission issue was resolved in 5.16.20230730.