plecos/logrotatewin

'choco install -y logrotate' does not work

Opened this issue · 4 comments

This was via a psexec onto a remote host:

 Processing archive: C:\Users\automat\AppData\Local\Temp\chocolatey\logrotate\logrotateInstall.zip
 Extracting  setup.exe
 Everything is Ok
 Size:       1580478
 Compressed: 917358
 C:\Users\automat\AppData\Local\Temp\chocolatey\logrotate
 Installing logrotate...
 [ERROR] Running
 C:\Users\automat\AppData\Local\Temp\chocolatey\logrotate\setup.exe with /S
 /v/qn  was not successful. Exit code was '1603' Error Message:
 .
 At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p
 s1:92 char:5
 +     throw $errorMessage
 +     ~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : OperationStopped: ([ERROR] Running...or Message:
 .:String) [], RuntimeException
     + FullyQualifiedErrorId : [ERROR] Running C:\Users\automat\AppData\Local\T
    emp\chocolatey\logrotate\setup.exe with /S /v/qn  was not successful. Exit
    code was '1603' Error Message:
 .
The install of logrotate was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\LogRotate\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 package(s). 1 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
 - logrotate

Host was:

C:\ProgramData\chocolatey\lib-bad\LogRotate>ver

Microsoft Windows [Version 6.1.7601]

A workaround was to run the set-up and copy the LogRotate.msi to manually install via:

msiexec /quiet /l* logrotate-install.log /i LogRotate.msi

What version? I just ran choco install logrotate and version 0.0.0.14 installed to c:\Program Files (x86)\LogRotate

Windows 2012 R2

I'm now seeing this error periodically when installing from chocolatey.

I don't know entirely if it is relevant, but my destination directory for the install of logrotate 0.0.0.18_20170228 under Chef had / characters instead of \ and that caused it to fail with a 1603. I replaced them all with \ and it worked. e.g. D:/path/to/logrotate changed to D:\path\to\logrotate.

Can you please tell me how to install logrotatewin ?