[Github-comments] [geany/geany] geany-addons won't install via chocolatey since the geany version is later. (#2849)

Jacob Gustafson notifications at xxxxx
Wed Jul 21 17:13:31 UTC 2021


```
Chocolatey v0.10.15
Installing the following packages:
geany-plugins
By installing you accept licenses for the packages.
Progress: Downloading geany-plugins 1.37... 100%

geany-plugins v1.37 [Approved]
geany-plugins package files install completed. Performing other installation steps.
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Hashes match.
Hashes match.
Installing geany-plugins...
WARNING: Setup was cancelled.
ERROR: Running ["C:\Users\Jatlivecom\AppData\Local\Temp\chocolatey\geany-plugins\1.37\geany-plugins-1.37_setup.exe" /S ] was not successful. Exit code was '2'. Exit code indicates the following: Setup was cancelled..
The install of geany-plugins was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\geany-plugins\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - geany-plugins (exited 2) - Error while running 'C:\ProgramData\chocolatey\lib\geany-plugins\tools\chocolateyinstall.ps1'.
 See log for details.
```

If I manually install Geany 1.37 from https://download.geany.org/ then install geany-plugins using chocolatey, the `choco install -y geany-plugins` command automatically upgrades geany to 1.37.1 and installs geany-addons a second time, resulting in the same error and the plugins are not installed.

Note that Chocolatey seems to be the only way to get geany-plugins.
- [ ] I had a hard time finding it since the Geany plugin registry doesn't point to https://plugins.geany.org/install.html

- [ ] Running the geany-plugins install file manually from Windows Explorer reveals a warning dialog that warns that problems will occur if geany-plugins is installed since it is version 1.37 and Geany is 1.37.1. 
  - [ ] This is apparently what prevents silent install, but I actually get an error if I manually use the /S switch:
```
"C:\Users\Jatlivecom\AppData\Local\Temp\chocolatey\geany-plugins\1.37\geany-plugins-1.37_setup.exe" /S
At line:1 char:102
+ ... l\Temp\chocolatey\geany-plugins\1.37\geany-plugins-1.37_setup.exe" /S
+                                                                         ~
You must provide a value expression following the '/' operator.
At line:1 char:102
+ ... l\Temp\chocolatey\geany-plugins\1.37\geany-plugins-1.37_setup.exe" /S
+                                                                         ~
Unexpected token 'S' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ExpectedValueExpression
```

## Workaround
- Install geany-plugins using chocolatey (allow the install to fail, but note the location of the installer in Temp)
- Uninstall Geany
- Install Geany 1.37 from https://download.geany.org/
- Install the temporary geany-plugins 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210721/edbc8630/attachment.htm>


More information about the Github-comments mailing list