Web Analytics

Chocolatey-for-wine

⭐ 107 stars English by PietJankbal

Chocolatey-for-wine

Chocolatey package manager automatic installer in wine, handy to quickly install programs in wine (and subsequently find bugs in wine ;) ) For some bugs workarounds are added like for Visual Studio Community 2022 and nodejs, see further on.

As I was bored during lock-down I wrote a custom winetricks(.ps1) with verbs I find handy. Just do 'winetricks' to see them. For some verbs a full restart of wine is needed (due to recent wine changes). You'll see a messagebox and the session will be ended. Just start powershell again and retry the verb. If this is done once, it won't be needed anymore for any verb.

Example:

'winetricks vs22_interactiveinstaller' ( --> session will be ended)

do 'wine powershell'

do 'winetricks vs22_interactiveinstaller'

(BTW via 'winetricks vs22_interactive_installer' you can install select what to install via the Visual Studio 2022 installer; 'winetricks vs22_interactive_installer' now got me in ten minutes into the main program (selected Desktop development with C++)).

Install :

Optional: MyDocuments and they don't need to be downloaded again if you create a new prefix) Optional: Optional: Screenshot from 2022-08-26 12-31-18 About PowerShell:

Tip: Chocolatey usually installs the latest version of a program, which might reveal new wine bugs. You might have more luck with an older version of the software. Example:

choco search --exact microsoft-edge --all (--> list all versions)

choco install microsoft-edge --version --version='135.0.3179.98'

General info:

About ConEmu:

ConEmu console suffers from a few wine-bugs:

About winetricks(.ps1):

from now on (this is how powershell handles multiple arguments) So 'winetricks riched20 gdiplus' won't work anymore, use 'winetricks riched20,gdiplus' instead screenshot About system programs:

Feature is added to replace simple system programs like for example setx.exe by a function in c:\\Program Files\Powershell\7\profile.ps1. Or add system programs that are missing like getmac.exe. If programs fail because of insufficient mature or missing system programs one could write a function to return whatever the program expects. Like in profile.ps1 I added (amongst others) a wmic.exe that supports a bit more options, and a basic setx.exe. Or you could just manipulate the arguments passed to the system program. See profile.ps1 and choc_install.ps1. No guarantee this works for more complex programs as well... Notes:

If you have any dotnet version already installed with regular winetricks.sh, it will likely fail, and even if it succeeds, you'll likely end up with a broken prefix. If you need to install stuff with regular winetricks.sh for programs, do NOT use any of the dotnet* verbs. BTW 'Arial' and 'd3dcompiler_47' verbs are already installed by default. Compile: --- Tranlated By Open Ai Tx | Last indexed: 2025-12-03 ---