@@ -127,25 +127,26 @@ sudo make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS
127127### Install AStyle
128128
129129# Download
130- iwr 'https://sourceforge.net/projects /astyle/files/ astyle/astyle%202.05.1/AStyle_2.05. 1_windows.zip/download ' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile astyle.2.05 .zip
130+ iwr 'https://netix.dl. sourceforge.net/project /astyle/astyle/astyle%203.1/AStyle_3. 1_windows.zip' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile astyle.3.1 .zip
131131
132132# Unzip the filed & move the C:\Program Files
133- expand-archive astyle.2.05 .zip
134- mv .\astyle.2.05 'C:\Program Files\AStyle\ '
133+ expand-archive astyle.3.1 .zip
134+ mv .\astyle.3.1.zip\AStyle 'C:\Program Files\AStyle'
135135
136136# Add AStyle to your path
137+ [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\AStyle\bin")
137138[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\AStyle\bin", [EnvironmentVariableTarget]::Machine)
138139
139140### Install Cppcheck (either 64-bit or 32-bit depending upon your version of Windows - pick one below)
140141
141142# 64-bit
142- iwr 'http ://github.com/danmar/cppcheck/releases/download/1.76.1 /cppcheck-1.76.1 -x64-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.76.1 -Setup.msi
143+ iwr 'https ://github.com/danmar/cppcheck/releases/download/1.88 /cppcheck-1.88 -x64-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.88 -Setup.msi
143144
144145# 32-bit
145- iwr 'http ://github.com/danmar/cppcheck/releases/download/1.76.1 /cppcheck-1.76.1 -x86-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.76.1 -Setup.msi
146+ iwr 'https ://github.com/danmar/cppcheck/releases/download/1.88 /cppcheck-1.88 -x86-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.88 -Setup.msi
146147
147148# Launch installer to install Cppcheck
148- & .\cppcheck-1.76.1 -Setup.msi
149+ & .\cppcheck-1.88 -Setup.msi
149150
150151### Add Cppcheck to your path
151152[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Cppcheck", [EnvironmentVariableTarget]::Machine)
0 commit comments