This file contains 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
# Script for setting up new Windows 11 PC for graphic development | |
# You need need to run it with administator rights | |
if (!([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList @("-ExecutionPolicy Bypass", "-File `"$($MyInvocation.MyCommand.Path)`"") | |
Exit | |
} | |
Push-Location $env:TEMP | |
function ShowFileExtensions { |
This file contains 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
@echo off | |
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -property installationPath`) do ( | |
set VSDetectedDir=%%i | |
) | |
call "%VSDetectedDir%\Common7\Tools\VsDevCmd.bat" > nul | |
echo %WindowsSdkVerBinPath% |
This file contains 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
rem Script for setting up new Windows 11 PC for graphic development | |
rem You need need to run it with administator rights | |
rem You can modify list of installed software below | |
rem Windows explorer settings | |
rem Sets option to always show file extensions | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f | |
rem Sets option to show hidden files (but not OS protected files) | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 1 /f | |
rem Sets option to show full path instead of just folder name in file explorer window title |