clamwin silent install broken (Internal error: Failed to expand shell folder constant "userappdata")

0

Im trying to follow the docs and install clamwin clamwin-0.99.4 silently

Start-Process -file "C:/Windows/Temp/clamwin-setup.exe" `
    -arg '/SP- /VERYSILENT /NORESTART /LOG="C:/Windows/Temp/setup.log" /DIR="c:\clam"' `

I get this error:

2020-02-19 13:55:47.505   Windows version: 6.02.9200  (NT platform: Yes)
2020-02-19 13:55:47.505   64-bit Windows: Yes
2020-02-19 13:55:47.505   Processor architecture: x64
2020-02-19 13:55:47.505   User privileges: Administrative
2020-02-19 13:55:47.521   64-bit install mode: No
2020-02-19 13:55:47.521   Created temporary directory: C:\Windows\TEMP\is-L6AJF.tmp
2020-02-19 13:55:47.616   Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8002
2020-02-19 13:55:47.809   Starting the installation process.
2020-02-19 13:55:47.824   Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x801A
2020-02-19 13:55:47.824   Fatal exception during installation process (Exception):
                          Internal error: Failed to expand shell folder constant "userappdata"
2020-02-19 13:55:47.824   Exception message:
2020-02-19 13:55:47.824   Message box (OK):
                          Internal error: Failed to expand shell folder constant "userappdata"

I tried modifying the shell folder location but still get same error after doing this:

set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' -Name AppData 'c:\clam'

SHGetFolderPath is deprecated so that sucks they are probably doing something wrong here already. I dont want to have to rebuild their inno package myself to unbreak it. Any possible workarounds?

Per this I also tried deleting the entire key which did not work:

remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' -Name '*'
windows
windows-server-2019
clamav
asked on Server Fault Feb 19, 2020 by red888 • edited Feb 19, 2020 by red888

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0