diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml
index 21f3ec6e..2a372946 100644
--- a/.github/workflows/build_and_test.yaml
+++ b/.github/workflows/build_and_test.yaml
@@ -86,22 +86,22 @@ jobs:
                     - name: Windows (x86) Squirrel
                       os: windows-2022
                       artifact: win-ia32
-                      executable: "%LOCALAPPDATA%/element-desktop*/Element.exe"
+                      executable: "$env:LOCALAPPDATA/element-desktop*/Element.exe"
                       prepare_cmd: ". './dist/squirrel-windows*/Element Setup*.exe'"
                     - name: Windows (x86) MSI
                       os: windows-2022
                       artifact: win-ia32
-                      executable: "C:/Program Files (x86)/Element/Element*.exe"
+                      executable: "C:/Program Files (x86)/Element*/Element*.exe"
                       prepare_cmd: "msiexec ./dist/Element*.msi"
                     - name: Windows (x64) Squirrel
                       os: windows-2022
                       artifact: win-x64
-                      executable: "%LOCALAPPDATA%/element-desktop*/Element.exe"
+                      executable: "$env:LOCALAPPDATA/element-desktop*/Element.exe"
                       prepare_cmd: ". './dist/squirrel-windows*/Element Setup*.exe'"
                     - name: Windows (x64) MSI
                       os: windows-2022
                       artifact: win-x64
-                      executable: "C:/Program Files/Element/Element*.exe"
+                      executable: "C:/Program Files/Element*/Element*.exe"
                       prepare_cmd: "msiexec ./dist/Element*.msi"
         name: Test ${{ matrix.name }}
         runs-on: ${{ matrix.os }}