Seite 3 von 4

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

Verfasst: 17.10.2024, 13:33
von HAL 9000
Tatsächlich nichts.
Du weist cmd.exe an, einen neuen Prozess (eine neue Instanz von cmd) zu starten, den nach /c übergebenen Befehl auszuführen und sich dann wieder zu beenden soll.
Da Du nichts übergeben hast, passiert auch nichts.
gib mal die Zeile ohne "cmd.exe /c" am Anfang ein.
Bedeutet also, wenn Du den Befehl hinter "cmd.exe /c" direkt eingibst,, erfolgt die Ausführung im aktuellen Fenster und Dir werden die daraus resultierenden Meldungen angezeigt , die Du sonst nicht sehen würdest.

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

Verfasst: 17.10.2024, 15:57
von KaiM
Mein Problem konnte ich bisher nicht lösen, wie lautet die Zeile korrekt?

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

Verfasst: 17.10.2024, 16:20
von HAL 9000
???
Geh mal drei Posts zurück.

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

Verfasst: 17.10.2024, 16:47
von Holgi
Ich bin sprachlos. :betruebt:

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

Verfasst: 17.10.2024, 17:10
von HAL 9000

Code: Alles auswählen

Ich bin sprachlos. :betruebt:
Das funktioniert leider auch nicht. :ironie:

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

Verfasst: 17.10.2024, 17:37
von KaiM

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"
Da passiert bei mir gar nichts.
Im cmd Terminal und in der Powershell habe ich es versucht.

https://github.com/memstechtips/Unatten ... /issues/66

Ich versuche mich daran:
https://github.com/muradbu/winget-script

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

Verfasst: 17.10.2024, 17:40
von Holgi
@Hal 9000
funzt es bei dir (so wie bei mir)?

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

Verfasst: 17.10.2024, 18:09
von KaiM
Macht Ihr erst eine Windows 10 LTSC Vollupdate, oder verwendet ihr direkt nach dem ISO Install die folgende Zeile im CMD Admin _Terminal?

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"
Was für ein Windows 10 LTSC Iso benutzt Ihr konkret?

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

Verfasst: 17.10.2024, 18:29
von HAL 9000
Holgi hat geschrieben: 17.10.2024, 17:40 @Hal 9000
funzt es bei dir (so wie bei mir)?
Natürlich.
Gestartet ohne vorangestelltes "cmd.exe /c ", damit ich den Fortschritt verfolgen kann.
Aufruf aus Konsole mit administrativer Eingabeaufforderung.
Versteckter Text:
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/Mi ... 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 ... msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle ; Add-AppXPackage -Path .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Downloade und installiere Frameworks
Installiere Winget

Musste erst mal einen Rechner mit Windows starten, deshalb hat die Antwort etwas gedauert.

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

Verfasst: 17.10.2024, 19:02
von KaiM

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

Verfasst: 17.10.2024, 20:14
von Holgi
KaiM hat geschrieben: 17.10.2024, 18:09 Macht Ihr erst eine Windows 10 LTSC Vollupdate, oder verwendet ihr direkt nach dem ISO Install die folgende Zeile im CMD Admin _Terminal?

Was für ein Windows 10 LTSC Iso benutzt Ihr konkret?
mache das per autounattend.xml
früher so:
viewtopic.php?t=30594&start=255#p416429
Windows 11 IOT ENT LTSC
Das was da in deinen Links steht ist im Grunde genommen alles das Gleiche:
zuerst Abhängigkeiten installieren, dann MicrosoftDesktopAppInstaller.
Macht der Einzeiler genauso.

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

Verfasst: 17.10.2024, 20:36
von HAL 9000
Komische Schrift, evtl. aktuelle Lösung
Für Chinesen nicht.

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

Verfasst: 04.11.2024, 15:51
von Holgi
hier mal ein Lösungsansatz für die neueste Version von Winget (zum Zeitpunkt dieses Beitrags 04.11.2024 ist es die Version 1.9.25180):
Hintergrund:
mit der Version 1.9.XXX werden neue Abhängigkeiten nötig. Der Permanent Link für die Microsoft.VCLibs.140.00.UWPDesktop verweist leider noch auf eine alte Version (s. hier: https://www.deskmodder.de/blog/2024/10/ ... ent-287479 )
Dann festgestellt, dass MS die Abhängigkeiten zumindest jetzt unter https://github.com/microsoft/winget-cli/releases selbst zur Verfügung stellt. Diese sind in der Datei DesktopAppInstaller_Dependencies.zip enthalten.
Also flugs das kleine Script umgeschrieben.
Nachteil: keine Permanent Links. Das Script gilt also nur für diese bestimmte Version (1.9.25180). Für zukünftige Versionen muss die Versionsnummer angepasst werden.
winget install v1.9.25180.cmd

Code: Alles auswählen

@ECHO OFF
::2024-11-04
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://github.com/microsoft/winget-cli/releases/download/v1.9.25180/DesktopAppInstaller_Dependencies.zip -OutFile .\DesktopAppInstaller_Dependencies.zip ; Expand-Archive -Path .\DesktopAppInstaller_Dependencies.zip -Force ; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64.appx; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.9.25180/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
@Echo off
(
Echo {
Echo    "$schema": "https://aka.ms/winget-settings.schema.json",

Echo    // For documentation on these settings, see: https://aka.ms/winget-settings
Echo "source": {
Echo    "autoUpdateIntervalInMinutes": 5
Echo  },

Echo "visual": {
Echo     "progressBar": "rainbow"
Echo  },

Echo  "experimentalFeatures": {
Echo     "uninstall": false,
Echo     "upgrade": false,
Echo     "list": false,
Echo     "experimentalMSStore": false
Echo  },

Echo "telemetry": {
Echo     "disable": true
Echo },

Echo "installBehavior": {
Echo     "preferences": {
Echo         "locale": [ "de-DE", "en-US" ]
Echo     }
Echo },

Echo "installBehavior": {
Echo     "preferences": {
Echo        "scope": "user"
Echo   }
Echo  }
Echo }

) > "%localAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"

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

pause
del MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle /f /q
del DesktopAppInstaller_Dependencies.zip /f /q
rmdir DesktopAppInstaller_Dependencies /s /q

@EXIT
Die einzig wichtige Zeile ist diese:

Code: Alles auswählen

powershell -command "$ProgressPreference = 'SilentlyContinue' ; write-host "Downloade und installiere Abhängigkeiten" ; Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.9.25180/DesktopAppInstaller_Dependencies.zip -OutFile .\DesktopAppInstaller_Dependencies.zip ; Expand-Archive -Path .\DesktopAppInstaller_Dependencies.zip -Force ; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64.appx; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.9.25180/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: 13.11.2024, 11:48
von Holgi
Script für die neueste Preview von WinGet 1.10.40 (Windows Package Manager) :

Code: Alles auswählen

powershell -command "$ProgressPreference = 'SilentlyContinue' ; write-host "Downloade und installiere Abhängigkeiten" ; Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.10.40-preview/DesktopAppInstaller_Dependencies.zip -OutFile .\DesktopAppInstaller_Dependencies.zip ; Expand-Archive -Path .\DesktopAppInstaller_Dependencies.zip -Force ; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64.appx; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.9.25180/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle ; Add-AppXPackage -Path .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle"

ideal z.B. für für Windows Sandbox zum Testen

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

Verfasst: 19.11.2024, 01:04
von Holgi
Winget Stable Ver.1.9.25200:

Code: Alles auswählen

powershell -command "$ProgressPreference = 'SilentlyContinue' ; write-host "Downloade und installiere Dependencies" ; Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.9.25200/DesktopAppInstaller_Dependencies.zip -OutFile .\DesktopAppInstaller_Dependencies.zip ; Expand-Archive -Path .\DesktopAppInstaller_Dependencies.zip -Force ; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64.appx ; Add-AppXPackage -Path .\DesktopAppInstaller_Dependencies\x64\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64.appx ; write-host "Installiere Winget" ;  Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.9.25200/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle ; Add-AppXPackage -Path .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle"