Seite 2 von 4

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 25.01.2024, 17:46
von Holgi
vlt. möchte jemand auch gleich die Settings.json von Winget bearbeiten lassen? Voila!
Der Forschrittsbalken (z.B.) wird dadurch auf "Rainbow" umgestellt. :smile:

Code: Alles auswählen

@ECHO OFF
::2024-02-06
set /a _Debug=0
chcp 1252 >nul 
::================================================================================================
:: Run Script as Administrator

set _Args=%*
if "%~1" NEQ "" (
  set _Args=%_Args:"=%
)
fltmc >nul || (
  cd /d "%~dp0"
  cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~dp0"" && ""%~dpnx0"" ""%_Args%""", "", "runas", 1 > "%temp%\GetAdmin.vbs"
  "%temp%\GetAdmin.vbs"
  del /f /q "%temp%\GetAdmin.vbs" 1>nul 2>nul
  exit
)

::================================================================================================


powershell -command "$ProgressPreference = 'SilentlyContinue' ; write-host "Downloade und installiere Abhängigkeiten" ; Invoke-WebRequest -Uri  https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; Invoke-WebRequest -Uri  https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.3 -OutFile .\microsoft.ui.xaml.2.7.3.nupkg.zip ; Expand-Archive -Path .\microsoft.ui.xaml.2.7.3.nupkg.zip -Force ; Add-AppXPackage -Path .\microsoft.ui.xaml.2.7.3.nupkg\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.7.appx; Add-AppXPackage -Path .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.6.3482/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle ; Add-AppXPackage -Path .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle" 2> nul

@SHIFT /0

CLS

echo ======================
echo konfiguriere Settings
echo ====================== & echo.

del "%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" /f /q

SET NEWLINE=^& echo.
@Echo off

ECHO %NEWLINE%^{>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^ "$schema": "https://aka.ms/winget-settings.schema.json",>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^   // For documentation on these settings, see: https://aka.ms/winget-settings>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json  
ECHO %NEWLINE%^ "source": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^ "autoUpdateIntervalInMinutes": 5 >>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^ },>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
 
ECHO %NEWLINE%^ "visual": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "progressBar": "rainbow">>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^},>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 

ECHO %NEWLINE%^ "experimentalFeatures": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "uninstall": true,>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "upgrade": true,>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "list": true,>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "experimentalMSStore": true>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^  },>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
 
ECHO %NEWLINE%^ "telemetry": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "disable": true>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^},>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 

ECHO %NEWLINE%^ "installBehavior": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "preferences": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^        "locale": [ "de-DE", "en-US" ]>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    }>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^},>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
 
ECHO %NEWLINE%^ "installBehavior": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "preferences": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^        "scope": "user">>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    }>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^}>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^}>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 

cls

ECHO.
ECHO  - fertisch!!
ECHO.
rem timeout -1
winget list --accept-source-agreements
pause

@EXIT

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 25.01.2024, 17:55
von DK2000
Die Settings.json könnte man ja auch so bearbeiten. Meine sieht da auch ganz anders mittlerweile aus:

Code: Alles auswählen

{
  "$schema": "https://aka.ms/winget-settings.schema.json",
  "visual": {
    "progressBar": "rainbow",
    "anonymizeDisplayedPaths": true
  },
  "source": {
    "autoUpdateIntervalInMinutes": 120
  },
  "network": {
    "downloader": "do",
    "doProgressTimeoutInSeconds": 60
  },
  "installBehavior": {
    "portablePackageUserRoot": "C:/Users/*****/AppData/Local/Programs/winget",
    "portablePackageMachineRoot": "C:/Program Files/winget",
    "disableInstallNotes": true,
    "preferences": {
      "locale": [
        "de-DE",
        "en-US"
      ],
      "architectures": [
        "x64",
        "x86"
      ]
    }
  },
  "uninstallBehavior": {
    "purgePortablePackage": true
  },
  "telemetry": {
    "disable": true
  },
  "logging": {
    "level": "info"
  }
}
Das in einen Batch zu packen, wäre mir da zu kompliziert.

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 25.01.2024, 18:30
von Holgi
DK2000 hat geschrieben: 25.01.2024, 17:55 Die Settings.json könnte man ja auch so bearbeiten.
Das in einen Batch zu packen, wäre mir da zu kompliziert.
Weißt ja; bei mir muss immer alles automatisiert ablaufen ;)

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 25.01.2024, 18:45
von DK2000
Ja, aber in so eine Falle pflege ich da die Konfigurationsdateien einzeln und packe die in ein Repository. Von da aus kopiere ich die dann manuell oder per cmd/ps1 an ihr Ziel. Die ganzen Dateien als Batch mit Echo neu erstellen, wäre mir da viel zu viel Aufwand.

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 25.01.2024, 18:50
von Holgi
DK2000 hat geschrieben: 25.01.2024, 18:45 Ja, aber in so eine Falle pflege ich da die Konfigurationsdateien einzeln und packe die in ein Repository. Von da aus kopiere ich die dann manuell oder per cmd/ps1 an ihr Ziel.
mach in normalerweise auch so.
Diese Batch sollte für User sein, die noch gar kein Winget und infolgedessen auch noch keine settings.json haben.

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 05.05.2024, 17:04
von Holgi
Die oben genannten Methoden, um bei einer Windows Installation Winget nachzuinstallieren (falls nicht schon vorhanden) haben einen gemeinsamen Nachteil:
die Abhängigkeiten sind fest verankert (z.B. UI-XAML 2.7 bzw. 2.8) und destawegen nicht immer auf dem neuesten Stand.
Deshalb hier noch eine neue Version, die auf dem Script hier: https://github.com/asheroto/winget-install aufbaut.
getestet von mir in einer Windows Sandbox.
Als nächstes werde ich mal schauen, ob das auch in einer SetupComplete.cmd (Firstlogon.cmd) funktioniert.
Nacheinander die folgenden Befehle in die Kommandozeile (cmd) (Adminrechte) hämmern:

Code: Alles auswählen

powershell Install-PackageProvider -Name "NuGet" -Force
powershell Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
powershell Install-Script -Name winget-install -force
PowerShell.exe -NoProfile -Command "& {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File """C:\Program Files\WindowsPowerShell\Scripts\winget-install.ps1""' -Verb RunAs}"
Bei der letzten Zeile bin ich mir nicht sicher, ob das nicht auch einfacher geht. Leider fehlen mir die Powershell-Kenntnisse, um das zu kürzen (wenn es denn überhaupt kürzer geht).
Vlt. kann jemand, der hier mitliest (@DK2000, @g-force?) da drauf eingehen und es umschreiben?
Apropo:
das Zeilen funktionieren zwar auch so; aber an welcher Stelle müßte man die möglichen Schalter zu dem Script "winget-install.ps1" in die letzte Zeile einfügen?
es gibt z.B. diese Schalter:
-Debug
Enables debug mode, which shows additional information for debugging.
-Force
Ensures installation of winget and its dependencies, even if already present.
-ForceClose
Relaunches the script in conhost.exe and automatically ends active processes associated with winget that could interfere with the installation.
-Wait
Forces the script to wait several seconds before exiting.
-UpdateSelf
Updates the script to the latest version on PSGallery.
-CheckForUpdate
Checks if there is an update available for the script.
-Version
Displays the version of the script.
-Help
Displays the full help information for the script

Wenn alle Befehle abgesetzt sind, dann sollte

Code: Alles auswählen

winget list --accept-source-agreements
funktionieren.

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 24.05.2024, 18:11
von Holgi
hier das ganze noch mal als vereinfachte Batch Version. Es kann z.B. gut in einer Windows Sandbox getestet werden.
Es wird weiterhin das PS-Script von asheroto als Grundlage genutzt. Der User bleibt immer Ball mit den Abhängigkeiten.
Meine Batch generiert mit den echo Zeilen eine angepasste settings.json, macht einen Download von asherotos aktuellen Version mit BitsTransfer, führt das PS-Script aus (Abhängigkeiten für Winget downloaden und installieren, dann Winget selbst downloaden und installieren, sowie Selbsttest). Am Schluss wird dann gleich noch Winget -list ausgeführt.
Zwischen der Ausführung des Powershells Script und Winget -list habe ich einen Timout von 60 Sekunden gesetzt. Bei mir haut das hin.
Lieber wäre mir gewesen, eine Art start /wait für das PS-Script. Das habe ich aber leider nicht hinbekommen. Deshalb die Sache mit dem Timout. Vlt. hat ja jemand von euch noch einen Verbesserungvorschlag. Viel Spaß damit! ;)
download_install_winget.cmd

Code: Alles auswählen

@echo off
if exist "%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" del "%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" /f /q
if not exist "%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState" mkdir "%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState"
SET NEWLINE=^& echo.
@Echo off

ECHO %NEWLINE%^{>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^ "$schema": "https://aka.ms/winget-settings.schema.json",>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^   // For documentation on these settings, see: https://aka.ms/winget-settings>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json  
ECHO %NEWLINE%^ "source": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^ "autoUpdateIntervalInMinutes": 5 >>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^ },>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
 
ECHO %NEWLINE%^ "visual": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "progressBar": "rainbow">>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^},>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 

ECHO %NEWLINE%^ "experimentalFeatures": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "uninstall": true,>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "upgrade": true,>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "list": true,>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "experimentalMSStore": true>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^  },>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
 
ECHO %NEWLINE%^ "telemetry": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "disable": true>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^},>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 

ECHO %NEWLINE%^ "installBehavior": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "preferences": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^        "locale": [ "de-DE", "en-US" ]>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    }>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^},>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
 
ECHO %NEWLINE%^ "installBehavior": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    "preferences": {>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^        "scope": "user">>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^    }>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^}>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 
ECHO %NEWLINE%^}>>%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 

cls
cd "%homepath%\downloads"
powershell -noprofile "Start-BitsTransfer -DisplayName Winget-install.ps1 "https://github.com/asheroto/winget-install/releases/latest/download/winget-install.ps1"
powershell -NoProfile -Command "& {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%homepath%\downloads\winget-install.ps1"' -Verb RunAs}"

timeout /t 60
"CMD" /c winget list --accept-source-agreements ^& pause

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 16.10.2024, 18:54
von KaiM
Hallo, ist die Anleitung heute noch gültig?
Eine de-de_windows_10_enterprise_ltsc_2021_x64_dvd_71796d33.iso Installation möchte ich mit winget ausstatten.
Wie funktioniert es sicher, bequem und schnell?
VG
KaiM

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 16.10.2024, 19:56
von Holgi
grds. funktioniert es. Hatte nur eben eine Dauerschleife. Vlt. fehlt ein exit am Ende.
kannst aber auch dieses hier verwenden:

Code: Alles auswählen

cmd.exe /c powershell -command "$ProgressPreference = 'SilentlyContinue' ; write-host "Downloade und installiere Frameworks" ; Invoke-WebRequest -Uri  https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; Invoke-WebRequest -Uri  https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.8.6 -OutFile .\microsoft.ui.xaml.2.8.6.nupkg.zip ; Expand-Archive -Path .\microsoft.ui.xaml.2.8.6.nupkg.zip -Force ; Add-AppXPackage -Path .\microsoft.ui.xaml.2.8.6.nupkg\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.8.appx; Add-AppXPackage -Path .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle ; Add-AppXPackage -Path .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle"

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 17.10.2024, 04:34
von KaiM
Leider funktioniert der Code von Holgi nicht.

Bild



Hallo Holgi und Kenner, wie betriebssicher schätzt Du die Nachrüstung von Windows 10 LTSC ein?
Ist evtl. die Nachrüstung vom MS Windows Store evtl. die **hüstel bessere Lösung?

https://github.com/kkkgo/LTSC-Add-MicrosoftStore

Hintergrund: Windows 10 möchte ich bis 1. Jan. 2024

https://learn.microsoft.com/de-de/lifec ... -ltsc-2021

MfG
KaiM

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 17.10.2024, 07:06
von Holgi
KaiM hat geschrieben: 17.10.2024, 04:34 Leider funktioniert der Code von Holgi nicht.
bei mir und @Scoty funktioniert das. Haben wir so in der autounattend.xml drin.
Gerade jetzt noch mal in einer Windows Sandbox ausprobiert:
Winget 1.JPG

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 17.10.2024, 07:15
von KaiM
Mit LTSB-Add-MicrosoftStore-2016.zip von https://github.com/kkkgo/LTSB-Add-MicrosoftStore läßt sich der Microsoft Store in
de-de_windows_10_enterprise_ltsc_2021_x64_dvd_71796d33.iso
installieren.

@Holgi
Wie finde ich meinen Fehler, ist bin irritiert.

Code: Alles auswählen

cmd.exe /c powershell -command "$ProgressPreference = 'SilentlyContinue' ; write-host "Downloade und installiere Frameworks" ; Invoke-WebRequest -Uri  https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; Invoke-WebRequest -Uri  https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.8.6 -OutFile .\microsoft.ui.xaml.2.8.6.nupkg.zip ; Expand-Archive -Path .\microsoft.ui.xaml.2.8.6.nupkg.zip -Force ; Add-AppXPackage -Path .\microsoft.ui.xaml.2.8.6.nupkg\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.8.appx; Add-AppXPackage -Path .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle ; Add-AppXPackage -Path .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Mit Copy & Paste kann man ja wenig falsch machen.
"autounattend.xml", wo ist die wichtig, wie wende ich die an?

Mein Windoows 10 LTSC Testsystem befindet sich in Virtualbox.

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 17.10.2024, 08:27
von Holgi
KaiM hat geschrieben: 17.10.2024, 07:15 @Holgi
Wie finde ich meinen Fehler, ist bin irritiert.
Mit Copy & Paste kann man ja wenig falsch machen.
kömisch! Hab auch nur C&P gemacht.
du hast eine Eingabeaufforderung bereits als Administrator geöffnet:
gib mal die Zeile ohne "cmd.exe /c" am Anfang ein.

Das mit der autounattend.xml vergiss mal. Würde hier den Rahmen sprengen.

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 17.10.2024, 13:15
von KaiM
Bild

Und nun, was bedeutet das?

Re: Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo) [gelöst]

Verfasst: 17.10.2024, 13:21
von Holgi
ok. Wußte nicht, dass man das falsch verstehen kann:
"gib mal die Zeile ohne "cmd.exe /c" am Anfang ein."
Bedeutet: cmd.exe /c weglassen, dafür aber den Rest der Zeile, also

Code: Alles auswählen

powershell -command "$ProgressPreference = 'SilentlyContinue' ; write-host "Downloade und installiere Frameworks" ; Invoke-WebRequest -Uri  https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; Invoke-WebRequest -Uri  https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.8.6 -OutFile .\microsoft.ui.xaml.2.8.6.nupkg.zip ; Expand-Archive -Path .\microsoft.ui.xaml.2.8.6.nupkg.zip -Force ; Add-AppXPackage -Path .\microsoft.ui.xaml.2.8.6.nupkg\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.8.appx; Add-AppXPackage -Path .\Microsoft.VCLibs.x64.14.00.Desktop.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle ; Add-AppXPackage -Path .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
eingeben.