Skip to content

Instantly share code, notes, and snippets.

@Fuwn
Last active January 8, 2024 16:44
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Fuwn/faf6dd3afe8d5a183d3d32713b0b49f4 to your computer and use it in GitHub Desktop.
Save Fuwn/faf6dd3afe8d5a183d3d32713b0b49f4 to your computer and use it in GitHub Desktop.
A simple Batch script to force install Steam without administrator permissions on Windows
cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" "SteamSetup.exe"
@Battleknight07
Copy link

But does it work

@Battleknight07
Copy link

And can you play tf2

@Turbojax07
Copy link

Does work, but you have an extra quotation mark.
Fixed command:
cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start " "SteamSetup.exe"

@udfm
Copy link

udfm commented Aug 11, 2023

how exactly do you use it my school computer says "unc paths are not supported defaulting to windows directory" can you fix it?

@Turbojax07
Copy link

Unfortunately, you cannot fix this issue. It is the result of your computer running the script off of a network drive. The way this is normally resolved is to change some things in regedit, which requires admin to access. And no, you cannot run it with the command above. Especially if the UNC error occurs.

@udfm
Copy link

udfm commented Aug 11, 2023

thanks

@ThunderBlitz03
Copy link

I have both Steam setup and the batch file, but when I double-click the batch file with this code, command setup pops up and closes just as fast as it appears and nothing happens afterward. Does someone know why this is? It doesn't even say that the file type is unsupported.

@ThunderBlitz03
Copy link

I am on windows 10 right now if that affects anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment