Skip to content

Commit

Permalink
feat: use error code (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 6, 2023
1 parent 5bb8a5c commit 7240f1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/playbook/Configuration/atlas/start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ title: Initial Configuration
description: Copies Atlas folders/files, installs dependencies and performs the preliminary configuration
privilege: TrustedInstaller
actions:
# AME Wizard Live Log for development Playbooks
# AME Wizard Live Log for development playbooks
# Do not change the line position of this, otherwise things will break
# - !run: {exe: 'cmd.exe', args: '/c start "AME Wizard Live Log" PowerShell -NoP -C "gc -Wait Logs\TIOutput.txt -EA SilentlyContinue | Write-Output; pause"', baseDir: true, wait: false}

# Prevent annoying notifications during deployment
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance', value: 'Enabled', type: REG_DWORD, data: '0'}

# Prevent computer from going to sleep
# Prevent computer from going to sleep during deployment
- !run: {exe: 'powercfg.exe', args: '/setacvalueindex scheme_current sub_sleep standbyidle 0'}
- !run: {exe: 'powercfg.exe', args: '/setdcvalueindex scheme_current sub_sleep standbyidle 0'}

Expand Down
2 changes: 1 addition & 1 deletion src/playbook/Executables/WIN11.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\QuickActionsStateCap
:: Remove 'Bitmap File' from 'New' context menu
set "mrtCache=HKEY_USERS\%~1\Software\Classes\Local Settings\MrtCache"
echo %~1 | find "_Classes" > nul
if errorlevel 0 (
if errorlevel 1 (
for /f "tokens=*" %%a in ('reg query "%mrtCache%" /s ^| find /i "%mrtCache%"') do (
for /f "tokens=1-2" %%b in ('reg query "%%a" /v * ^| find /i "ShellNewDisplayName_Bmp"') do (
reg add "%%a" /v "%%b %%c" /t REG_SZ /d "" /f
Expand Down

0 comments on commit 7240f1a

Please sign in to comment.