Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion doc/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,30 @@ scoop install adb # if you don't have it yet

_See [build.md](build.md) to build and install the app manually._

## Add scrcpy to PATH

## Run
First we need to locate the executable. Then create a shortcut for it or add it to PATH.

### If installed with WinGet
Open the Run dialog (<kbd>Win+R</kbd>) and type `%USERPROFILE%\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe`, (press <kbd>Enter</kbd>) and double click the "scrcpy-win64-v3.3.3" folder (or the corresponding version you have), you should see a `scrcpy.exe` file inside.

If you don't plan to execute it with arguments you could just create a Desktop shortcut for the executable. If you want to use the CLI, you can add the executable to user PATH via CLI with:

```bat
setx PATH "%PATH%;%USERPROFILE%\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\scrcpy-win64-v3.3.3"
```
_Don't forget to use the actual numbering from the version you are installing (v3.3.3 in this example)._

You can also add it to (user or system) PATH manually via 'Edit Environment Variables'.

## Connect the Android device
_Make sure that your device meets the [prerequisites](/README.md#prerequisites)._

Connect your device via USB and accept the connection with any mode. Both "Charging Only" and "File Transfer / Android Auto" should work. You can also use any other mode, the important part is to accept the following dialog ("Allow USB debugging?") for enabling ADB (Android Debug Bridge) between the computer and the device.


## Run

Scrcpy is a command line application: it is mainly intended to be executed from
a terminal with command line arguments.

Expand Down