-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
CommandLet
New-WtWingetPackage
Full command
New-WtWingetPackage -InstallerContext System -PackageFolder $env:WINTUNER_PACKAGE_FOLDER -Locale "de-DE" -PackageId WinSCP.WinSCP
Module version
1.3.2
What happened?
When I'm trying to pack and test WinSCP I get an error in the Sandbox telling me it cant open the Installer:
$PackageInfo = New-WtWingetPackage -InstallerContext System -PackageFolder $env:WINTUNER_PACKAGE_FOLDER -Locale "de-DE" -PackageId WinSCP.WinSCP
$PackageInfo | Test-WtIntuneWin
The installer seems to get downloaded, but isn't named correctly:
dir $env:WINTUNER_PACKAGE_FOLDER\WinSCP.WinSCP\6.5.3
Directory: $env:WINTUNER_PACKAGE_FOLDER\WinSCP.WinSCP\6.5.3
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 13.10.2025 19:19 3313 app.json
-a--- 13.10.2025 19:19 116 detection.txt
-a--- 13.10.2025 19:19 31979569 download.intunewin
-a--- 13.10.2025 19:19 618 readme.txt
-a--- 13.10.2025 19:19 6053 win32LobApp.jsonI suspect it to be caused by the Installer URL pointing to sourceforge's CDN instead the direct download link:
https://github.com/microsoft/winget-pkgs/blob/master/manifests/w/WinSCP/WinSCP/6.5.3/WinSCP.WinSCP.installer.yaml#L33C25-L33C40
This also happens with other Installer hosted on sourceforge:
https://github.com/microsoft/winget-pkgs/blob/e25976ed1893fdd9aa26c5182e06314a63f1b9b7/manifests/p/Pidgin/Pidgin/2.14.9/Pidgin.Pidgin.installer.yaml#L18C17-L18C111
Installation with winget directly does work without this error:
winget install -e --id WinSCP.WinSCPUsing -PackageScript also doesn't work. I guess because WinTuner doesn't get the correct filename and thus putting the wrong names in the app.json:
"installerFilename": "download"The text-book way to fix this might be to submit a direct-link to the Winget repo (like here), but since winget seems to be fine with these links, I'm reporting this as a bug🙈
Command output
**********************
Windows PowerShell transcript start
Start time: 20251013191959
Username: F093FABA-8D9B-4\WDAGUtilityAccount
RunAs User: F093FABA-8D9B-4\WDAGUtilityAccount
Configuration Name:
Machine: F093FABA-8D9B-4 (Microsoft Windows NT 10.0. 26100.0)
Host Application: powershell. exe -ExecutionPolicy Bypass -File C:\Users\WDAGUtilityAccount\Downloads\Wintuner\wt_scripts\install.ps1
Process ID: 6516
PSVersion: 5.1.26100.6584
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.26100.6584
Buildversion: 10.0.26100.6584
CLRVersion: 4.0. 30319. 42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is c:\Users\WDAGUtilityAccount\Desktop\logs\wintuner. log
Installing winget
Installing Microsoft. UI. Xaml.2.8_8.2501. 31001.0_x64. appx
Installing Microsoft. VCLibs.140.00. UWPDesktop_14. 0. 33728.0_x64. appx
Excuting Add-AppxPackage downloads\dependencies\Microsoft. DesktopAppInstaller_8wekyb3d8bbwe. msixbundle
Winget installed
Installing notepad
.txt=txtfile
.log=txtfile
txtfile=c:\Windows\System32\notepad. exe %1
Notepad reinstalled
Starting installation
Installer: download
Arguments: msiexec /i download /qn /norestart
PS>TerminatingError(Start-Process): "This command cannot be run completely because the system cannot find all the information required."
Start-Process : This command cannot be run completely because the system cannot find all the information required.
At C:\Users\WDAGUtilityAccount\Downloads\Wintuner\wt_scripts\install.ps1:52 char:17
+ ... upProcess = Start-Process -FilePath "c:\Users\WDAGUtilityAccount\Down .
: Invalidoperation: (:) [Start-Process], InvalidoperationException
: InvalidoperationException, Microsoft. PowerShell. Commands. StartProcessCommand
Start-Process : This command cannot be run completely because the system cannot find all the information required.
At C:\Users\WDAGUtilityAccount\Downloads\Wintuner\wt_scripts\ install. ps1:52 char:17
+ ... upProcess = Start-Process -FilePath "c:\Users\WDAGUtilityAccount\Down ..
: Invalidoperation: (:) [Start-Process], InvalidoperationException
+ FullyQualifiedErrorId : InvalidoperationException, Microsoft. PowerShell. Commands. StartProcessCommand
Installer finished with exitcode
App installed, collecting installed apps
Installed apps collected
**********************
Windows PowerShell transcript end
End time: 20251013192010
**********************
+ CategoryInfo
+ FullyQualifiedErrorId
+
+ CategoryInfoPowerShell version
7.5.3
Code of Conduct
- I agree to follow this project's Code of Conduct
- I won't demand an immediate answer