Windows

Barnaby Keene edited this page Nov 13, 2018 · 20 revisions

Installing

Installing sampctl on Windows is a simple task and there are a couple of ways you can choose from depending on your preferences.

If you want to get up and running ASAP and you're not much of a PowerShell/CMD user then use the first method.

If you're more of a console junkie and you're a fan of Linux tools such as aptitude then check out the Scoop method.

Installing with Wizard (Easiest way)

Crytrax/_CX and BigETI built an installer for sampctl, this is the easiest and fastest way to get sampctl on your Windows machine:

If you're conscious of what executables you run on your system, you can check the installer's source code here.

Installing with Scoop

If you've not head of Scoop.sh before, it's like apt-get for Windows.

Installing scoop is very easy, first make sure you have allowed PowerShell to execute local scripts:

set-executionpolicy remotesigned -scope currentuser

Then simply install Scoop:

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

If you run into issues, make sure you read the Scoop Quick-Start Documentation.

And installing sampctl is another one-liner:

scoop bucket add southclaws https://github.com/Southclaws/scoops.git; scoop install sampctl

if you're extra lazy you can concatenate those two lines into one, separated by a ;!

You can then run sampctl from PowerShell, CMD, git-bash, etc. but you will need to restart any open terminals if you installed scoop for the first time so it is loaded into the PATH environment variable properly.

Installing with Windows Subsystem for Linux

If you use Windows Subsystem for Linux (WSL) you can simply follow the Linux (Debian/Ubuntu) installation instructions. This has not been tested by me but I'm told that it works flawlessly.

Installing Manually

If for some reason you can't use Scoop, you can install sampctl by hand.

  1. Create a directory on your C:\ drive root named sampctl
  2. A Download a Windows release of sampctl and place the .exe file into the sampctl directory you created
  3. Add C:\sampctl\ to your system PATH
  4. Open a new shell (PowerShell, Cmd or Bash) and type sampctl - if you did the above correctly, you'll see the sampctl help text

Updating

Updating with Installer

Just run the installer again.

Updating with Scoop

Simply update your scoop metadata then upgrade the sampctl app itself:

scoop update
scoop update sampctl

More information in the Scoop documentation.

Updating Manually

Simply download the next version you want and overwrite the binary in C:\sampctl.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.