Winget install -e -id $package -accept-source-agreements $null = Add-AppxProvisionedPackage -online -PackagePath $winget_PackagePath -LicensePath $License_Path -DependencyPackagePath $VCLibs_PackagePath Write-Host "winget installer downloaded, adding package" Invoke-WebRequest -UseBasicParsing -Uri $VCLibs_URL -OutFile $VCLibs_PackagePath Invoke-WebRequest -UseBasicParsing -Uri $License_URL -OutFile $License_Path Invoke-WebRequest -UseBasicParsing -Uri $winget_URL -OutFile $winget_PackagePath $winget_PackagePath = '' -f $TEMP, ($VCLibs_URL -split "/") $AppsList = ('Google.Chrome', '.32-bit', 'Oracle.JavaRuntimeEnvironment') Hopefully that makes some sort of sense, let me know what files / info you need from me to investigate further if anyone can help! I've also ensured UAC prompts are disabled so this does not conflict with running programs in the post setup portion. I also thought it may have been that by default the ExecutionPolicy on PC's will be set to restricted so I included a registry key to set this as unrestricted, I can see the regkey has worked as when checking the Execution Policy on PC's that have been built the policy is set to unrestricted. Thinking it may be an issue with the scripts, I used PS2EXE converter and then integrated both EXE's into the post-setup section, again no luck there. I can see both the files I have created in the FilesU folder. I've noticed that when the image is created, NO SetupComplete.cmd script is created in the sources\$OEM$\$$\Setup\Scripts location. Nothing I seem to do is making these post setup scripts run, I've had success in the past using EXE's that silently install for Chrome, Reader and Java but these quickly become outdate and using Winget ensures that it's always the latest version being used as it's from the online Winget repository. I've also now included the latest online updates in the Integrate updates section, unfortunately this has made no difference either. I then changed it incase this was causing issues to create a windows account via NTLite but this also made no change. Originally I wanted Windows to prompt you to create a user, not automatically create one as we wanted to set the password on build. I tried to include a script that runs post setup in User context using Unattended setup (Ensuring OEM Setup Complete and Copy to boot image are ticked) - Nothing pops up and runs when this is setup, it just boots to windows like normal I tried to add the AppInstaller bunder using the W10_11StoreApps script created by another user on here (Sorry I forget their name) - When the image is created Winget does not work as it still believes the command is unrecognized in Powershell. I'm trying to make an NTLite image that automatically runs a Winget powershell script to install Chrome, Adobe Reader and Java post install on a Windows 10 ISO (and Windows 11 once I get it to work) First time posting here, at my wits end trying to work out how to get this to work so hoping someone can share some knowledge.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |