Script to setup Windows 10 1903
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

8 lines
851 B

; Config for creating a WinRAR SFX archive of Sophia Script for Windows 11 for WinGet
; Expand SFX archive
Path=%TEMP%\Sophia_Script_for_Windows_11_vSophiaScriptVersion
; Copy folder recursively to user's Desktop folder
Setup=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -WindowStyle Hidden -Command & {$Downloads = Get-ItemPropertyValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' -Name '{374DE290-123F-4565-9164-39C4925E467B}'; Copy-Item -Path "$env:TEMP\Sophia_Script_for_Windows_11_vSophiaScriptVersion" -Destination (Join-Path -Path $Downloads -ChildPath "Sophia_Script_for_Windows_11_vSophiaScriptVersion") -Recurse -Force; Invoke-Item -Path (Join-Path -Path $Downloads -ChildPath "Sophia_Script_for_Windows_11_vSophiaScriptVersion")}
; No GUI while expaning SFX archive
Silent=1