Last active
May 2, 2019 08:53
-
-
Save friendlyfreedom/4eeabd38d11800431d82048cfc7518a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $code = { | |
| python -m pip install --upgrade pip | |
| pip install robotframework | |
| pip install robotframework-seleniumlibrary | |
| pip install robotframework-faker | |
| pip install robotframework-databaselibrary | |
| pip install webdrivermanager | |
| webdrivermanager -d "C:\Python36\Scripts" -l "C:\Python36\Scripts" chrome firefox | |
| pip install robotframework-ride | |
| } | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe" -OutFile "c:/temp/python-3.6.8-amd64.exe" | |
| c:/temp/python-3.6.8-amd64.exe /passive InstallAllUsers=1 PrependPath=1 Include_launcher=1 Include_test=0 TargetDir="C:/Python36"| out-null | |
| rm c:/temp/python-3.6.8-amd64.exe -recurse -force | |
| Start-Process -FilePath powershell.exe -ArgumentList $code -verb RunAs -WorkingDirectory C: | out-null | |
| python --version | |
| robot --version | |
| write-host "Gefeliciteerd, RobotFramework geïnstalleerd! (Dat rijmt!) " | |
| write-host "Druk op een toets om dit venster te sluiten. " | |
| $response = read-host | |
| if ( $response -ne "Y" ) { exit } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This PowerShell script is for windows only. Tried on WIN7 and WIN10
Installs: