Commit Graph

43 Commits

Author SHA1 Message Date
Pavel Iakovenko
7eede67cd0 Validate authenticode signature using the certificate Subject (#12474)
* Use cerificate subject to verify authenticode signature

* Use function instead of script variables

* Switch all places to using Get-MicrosoftPublisher

* Remove SignatureThumbprint

* Use common subject for the Edge driver
2025-06-30 19:33:57 -06:00
kishorekumar-anchala
938abb9f14 [windows] Remove checksum validation for WSL2 and AzCosmos db (#12425) 2025-06-19 10:29:20 -06:00
kishorekumar-anchala
42e65904de [windows] Replace WebClient with Invoke-WebRequest & Update EdgeDrive Thumbprint (#12390)
* [windows] Update EdgeDriver signature

* feat: Improve temp directory handling and update file download method

- Added check for \ existence before accessing it.
- If the directory does not exist, it is now created.
- Replaced System.Net.WebClient with Invoke-WebRequest for file downloads, improving compatibility and maintainability.

Co-authored-by: Subir0071 <subir0071@github.com>

* [Windows] Remove check for TEMP_Dir

---------

Co-authored-by: Subir0071 <subir0071@github.com>
2025-06-17 08:33:00 -06:00
kishorekumar-anchala
68d05af296 [windows] Pin the cmake version to 3.31.6 (#11936)
* [windows] Pin the cmake version to 3.31.6

* [windows] adjust  choco script

* Fix choco build failure

* Add version parameter to choco script
2025-04-05 23:37:45 -06:00
kishorekumar-anchala
b5421c9536 [windows 22 & 25 ] Upgrade visual studio to postGRO channel (#11595)
* [windows 22 and 25 Upgrade visual studio to postGRO

* Add condition for windows 19 to skip

* [Windows] Update Vs installation script

* Refactor the visual studio installation script

* Fix windows 19  faliure

* Fix windows 19 visual studio failure

* [windows] Fix Windows 19 failure

* Add condition for windows 19

* [windows] Fix windows 19 failure

* [windows] update script by changing the condition syntax

* Make installchannel as optioanl parametr

* Update Installer script

* [ windows ] Update the installation script with conditional statement

* Update the installation script

* Update toolsets

* Update the channel ID

* Update channel ID

* Resolve conflicts

* Resolve conflicts
2025-02-28 11:25:17 -07:00
Lawrence Gripper
6020692ce2 Merge pull request #11047 from lawrencegripper/lg/postgres-win-update
[Windows] Unpin Postgres allowing latest v14 version
2025-01-21 12:30:37 +00:00
Shamil Mubarakshin
ee530b00e3 [windows] Update Get-WindowsUpdateStates function (#11397) 2025-01-20 11:12:30 +01:00
lawrencegripper
39055770c9 Merge branch 'main' into lg/postgres-win-update 2024-12-20 14:55:28 +00:00
lawrencegripper
0fae0a3b0b Fix getting output 2024-12-04 11:55:32 +00:00
lawrencegripper
66ee991884 Missing recurse 2024-12-04 11:06:53 +00:00
Lawrence Gripper
692b6af2e9 Update images/windows/scripts/helpers/InstallHelpers.ps1 2024-12-03 09:45:08 +00:00
lawrencegripper
0d3756a2ec Handle looking for installer log before exit 2024-12-02 14:36:15 +00:00
Erik Bershel
a0b19fa01b [Windows] Update Get-GithubReleasesByVersion function sorting (#11064) 2024-11-29 11:09:38 +01:00
Alexey-Ayupov
e3ba729b37 [Windows] Add Windows 2025 code (#11037) 2024-11-29 11:08:29 +01:00
Lawrence Gripper
ba0b242503 Update images/windows/scripts/helpers/InstallHelpers.ps1 2024-11-28 15:42:57 +00:00
lawrencegripper
d3779e8ed4 Merge branch 'main' into lg/postgres-win-update 2024-11-28 15:41:57 +00:00
Alexey-Ayupov
5a263020f5 [Windows] Reorganize temporary file storage and separate cleanup activities (#11054) 2024-11-28 13:30:26 +01:00
lawrencegripper
181b98660d hack: get stdout and stderr for failing install 2024-11-27 10:57:26 +00:00
kishorekumar-anchala
5e9605c7dc Fix vs signature issue (#10593) 2024-09-11 17:50:40 +05:30
Congyi Wu
5ecfd27e8f VisualStudioHelpers.ps1 stop enabling 8.3 filename creation (#9862)
The bug that prompted enabling 8.3 filename creation was fixed 5 years ago, see https://github.com/xamarin/xamarin-android/issues/3407:
> Fix included in Xamarin.Android 10.1.0.30.
>
> Fix included on Windows in Visual Studio 2019 version 16.4.

We're on VS 2019 16.11: 9815039618/images/windows/Windows2019-Readme.md (L233)

8.3 filename creation is known to hurt file creation performance, especially when there are a large number of similarly named files in the same folder:
* https://learn.microsoft.com/en-us/archive/blogs/josebda/windows-server-2012-file-server-tip-disable-8-3-naming-and-strip-those-short-names-too
* https://www.linkedin.com/pulse/dont-forget-disable-short-filenames-83-servers-folders-wes-brown
* https://deep.data.blog/2013/06/19/debugging-story-slowness-due-to-ntfs-short-file-8-3-name-generation/

I created a new VM with the base Azure Marketplace Windows 2019 image and confirmed that 8.3 name generation is disabled by default for both the OS and temp disk:
```
fsutil 8dot3name query C:
The volume state is: 1 (8dot3 name creation is disabled).
The registry state is: 2 (Per volume setting - the default).

Based on the above settings, 8dot3 name creation is disabled on C:

fsutil 8dot3name query D:
The volume state is: 1 (8dot3 name creation is disabled).
The registry state is: 2 (Per volume setting - the default).

Based on the above settings, 8dot3 name creation is disabled on D:
```

This might help a bit with https://github.com/actions/cache/issues/752, although I haven't tested it, and AFAICT it's unlikely make an order of magnitude difference.
2024-05-16 18:32:15 +02:00
Erik Bershel
dafa292860 [Windows] Force Resolve-ChocoPackageVersion function to use CLI (#9605) 2024-04-02 23:37:28 +02:00
Shamil Mubarakshin
ebef5f5fee [windows] Add dynamic path for Get-ToolsetContent (#9147)
* [windows] Add dynamic path for Get-ToolsetContent

* Add missing variable in win22 template
2024-01-12 12:31:21 +01:00
Erik Bershel
cd286f70f7 [Windows] Force Chocolatey to check packages hashes (#9020) 2023-12-15 00:28:36 +01:00
Vasilii Polikarpov
7fe65a2204 [Windows] Apply code style rules to Windows scripts (#8957)
* Apply code style rules to Windows scripts

* Fix typo

* Fix configure-toolset script

* Fix parameters in Msys2 installation script

* Improve log readability

* Remove broken exit code validation
2023-12-11 22:23:36 +01:00
Erik Bershel
f28573731f [Windows] Update Resolve-GithubReleaseAssetUrl function (#8981) 2023-12-11 11:59:52 +01:00
Vasilii Polikarpov
5ed2615017 [Windows] Cleanup various scripts (#8942)
* Use Resolve-GithubReleaseAssetUrl more widely

* Add the Get-ChecksumFromUrl function

* Sort exported functions and add docs

* Remove alias and fix typo

* Fix kind checksum url and syntax

* Fix checksums url for gh cli and msys2

* [Windows] Cleanup various scripts

* Add spaces after type specifications

* Rename the Take-Part function
2023-12-04 10:50:53 +01:00
Vasilii Polikarpov
d86c4900fa [Windows] Update functions that get urls and hashes from Github (#8917)
* [Windows] Update function to get hash from github

* Remove redundant function and add documentation

* Fix aws-sam-cli url
2023-11-30 17:12:17 +01:00
Vasilii Polikarpov
eb0e4ff100 [Windows] Move Android and VS helpers to dedicated files (#8903) 2023-11-30 16:53:16 +01:00
Vasilii Polikarpov
92e22bd8c6 [Windows] Refactor helpers that verify hashsum and signature (#8886) 2023-11-30 09:22:14 +01:00
Vasilii Polikarpov
7dba8776df [Windows] Rename and refactor downloading function (#8906) 2023-11-29 13:02:29 +01:00
Vasilii Polikarpov
bfe32a2b12 [Windows] Refactor PATH helpers (#8885) 2023-11-29 13:00:16 +01:00
Vasilii Polikarpov
c73276d3f6 [Windows] Rename the Invoke-SBWithRetry function (#8880) 2023-11-29 12:58:37 +01:00
Vasilii Polikarpov
da1c04b81a [Windows] Reimplement function resolving GH asset (#8899)
* [Windows] Reimplement function resolving GH asset

* Fix tests and software report

* Fix selenium-server version check
2023-11-28 15:08:03 +01:00
Vasilii Polikarpov
e1e621e78c [Windows] Update helper function that returns Windows Update states (#8878) 2023-11-27 12:29:42 +01:00
Vasilii Polikarpov
12066050d0 [Windows] Refactor script installing Android SDK and packages (#8877) 2023-11-27 12:28:21 +01:00
Vasilii Polikarpov
79c347765a [Windows] Unify services handling (#8871)
* [Windows] Unify services handling

* Fix Set-Service usage
2023-11-23 18:08:20 +01:00
Vasilii Polikarpov
6efbc46fc7 [Windows] Update helper name to Expand-7ZipArchive (#8875)
* [Windows] Update helper name to Expand-7ZipArchive

* Fix typo
2023-11-23 11:59:49 +01:00
Vasilii Polikarpov
64d5d2c1f4 [Windows] Rename ToolCache path helpers (#8874) 2023-11-23 11:59:08 +01:00
Vasilii Polikarpov
1254bc94a5 [Windows] Split VSIX installation helper into two (#8872) 2023-11-23 11:58:34 +01:00
Vasilii Polikarpov
d3e630f774 [Windows] Implement installation helpers refactoring (#8865)
* [Windows] Refactor base Installer helper functions

* Fix helper name

* Fix name gen logic and improve error handling

* Fix hash checking logic

* Fix Install-VsixExtension invocation

* Fix variable name in Install-OpenSSL.ps1

* Fix type for git downloadUrl
2023-11-22 15:14:08 +01:00
Vasilii Polikarpov
07e8da79f8 [Windows] Use common approach to set machine vars (#8830) 2023-11-17 13:52:52 +01:00
Vasilii Polikarpov
0263bdd53e [Windows] Rename image build scripts (#8808) 2023-11-16 11:20:11 +01:00
Vasilii Polikarpov
d1f2c9a3be [Windows] Implement new directories hierarchy (#8616) 2023-11-15 11:24:45 +01:00