Code Monkey home page Code Monkey logo

Comments (6)

Smith8154 avatar Smith8154 commented on June 1, 2024

This doesn't seem to be an issue on every machine. I just pushed the package to 35 machine and it is reporting incorrectly on about half of them.

from winget-cli-restsource.

denelon avatar denelon commented on June 1, 2024

Was this application installed on any of the devices before the push?

It's possible an entry from the installed database showed winget as the source before the private source was added.

Possible work around:
If you can test, try uninstalling the app and then reinstalling from the private source.

We don't have a notion of an order of preference for a source when the package is available in more than one source yet.

from winget-cli-restsource.

Smith8154 avatar Smith8154 commented on June 1, 2024

Yes, the application was already installed. I tried to upgrade it to a newer version.

Unfortunately, uninstalling it and reinstalling did not work. I even updated the package to have the same ID as the public repository to see if that would help, but it did not. Oddly enough, this was not an issue with the previous version.

In doing this testing, I may have found why I am having issues. I am having trouble with the internal repository after I uploaded a new version of an (unrelated) application. It looks like that may be keeping WinGet from exporting packages from the private repository. This is the error I am seeing on the other repository:

2024-01-12 01:06:16.583 [REPO] Finding available package from installed package using system reference search: Query:[none] Include:ProductCode='sapgui'[Exact] Include:NormalizedNameAndPublisher='sapguiforwindows'+'sapse'[Exact] Include:NormalizedNameAndPublisher='sapguiforwindows(x86)'+'sapse'[Exact]
2024-01-12 01:06:16.586 [REPO] Sending http GET request to: https://internal-repo-url.net/api/packageManifests/Company.SAPGUI
2024-01-12 01:06:16.690 [REPO] Response status: 200
2024-01-12 01:06:16.691 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerSharedLib\Versions.cpp(573)\WindowsPackageManager.dll!00007FF888AF6324: (caller: 00007FF888AF8E05) Exception(1) tid(727c) 80070057 The parameter is incorrect.

from winget-cli-restsource.

denelon avatar denelon commented on June 1, 2024

@Smith8154 I'm going to transfer this issue to the winget-cli-restsource repository so we can look into troubleshooting what went wrong since it seems like it may be an issue with the REST implementation then.

from winget-cli-restsource.

Smith8154 avatar Smith8154 commented on June 1, 2024

@denelon Is there anyone who can help me look into this?

from winget-cli-restsource.

Smith8154 avatar Smith8154 commented on June 1, 2024

Below is the YAML for the manifest. I only started having this issue after I uploaded version 8.05 to the repository.

{
    "Data": {
        "PackageIdentifier": "Company.SAPGUI",
        "Versions": [
            {
                "PackageVersion": "8.03",
                "DefaultLocale": {
                    "PackageLocale": "en-US",
                    "Publisher": "SAP SE",
                    "PackageName": "SAP GUI",
                    "License": "Proprietary",
                    "ShortDescription": "SAP GUI"
                },
                "Installers": [
                    {
                        "InstallerIdentifier": "aa2ce3e7-aedc-426d-b208-48c382a25720",
                        "InstallerSha256": "9c56f0badee3c921721fdca9a5dda780646c9190defb34956184c237384fd96e",
                        "InstallerUrl": "https://internalwingetrepo.net/abunchofstuff",
                        "Architecture": "x86",
                        "InstallerLocale": "en-US",
                        "InstallerType": "exe",
                        "Scope": "machine",
                        "InstallModes": [
                            "silent"
                        ],
                        "InstallerSwitches": {
                            "Silent": "/silent",
                            "Custom": "/package=\"CompanySAPGUI8.032bit\""
                        },
                        "InstallerSuccessCodes": [
                            129
                        ],
                        "InstallerAbortsTerminal": false,
                        "ReleaseDate": "0001-01-01T00:00:00",
                        "InstallLocationRequired": false,
                        "RequireExplicitUpgrade": false,
                        "AppsAndFeaturesEntries": [
                            {
                                "DisplayName": "SAP GUI for Windows 8.00 32bit  Patch 3",
                                "Publisher": "SAP SE",
                                "DisplayVersion": "8.00 Compilation 1",
                                "ProductCode": "SAPGUI"
                            }
                        ],
                        "DisplayInstallWarnings": false
                    }
                ]
            },
            {
                "PackageVersion": "8.05",
                "DefaultLocale": {
                    "PackageLocale": "en-US",
                    "Publisher": "SAP SE",
                    "PackageName": "SAP GUI",
                    "License": "Proprietary",
                    "ShortDescription": "SAP GUI"
                },
                "Installers": [
                    {
                        "InstallerIdentifier": "a062c1f0-6520-4d10-9c1d-5ec2f580e392",
                        "InstallerSha256": "8b9c6aeb2e33ba7424e788d10ea41c2261f9eca91b108a6d2c944be75ca86643",
                        "InstallerUrl": "https://internalwingetrepo.net/abunchofstuff",
                        "Architecture": "x86",
                        "InstallerLocale": "en-US",
                        "InstallerType": "exe",
                        "Scope": "machine",
                        "InstallModes": [
                            "silent"
                        ],
                        "InstallerSwitches": {
                            "Silent": "/silent",
                            "Custom": "/package=\"CompanySAPGUI8.00_32bit\""
                        },
                        "InstallerSuccessCodes": [
                            129
                        ],
                        "InstallerAbortsTerminal": false,
                        "ReleaseDate": "0001-01-01T00:00:00",
                        "InstallLocationRequired": false,
                        "RequireExplicitUpgrade": false,
                        "AppsAndFeaturesEntries": [
                            {
                                "DisplayName": "SAP GUI for Windows 8.00 32bit  Patch 5",
                                "Publisher": "SAP SE",
                                "DisplayVersion": "8.00 Compilation 1",
                                "ProductCode": "SAPGUI"
                            }
                        ],
                        "DisplayInstallWarnings": false
                    }
                ]
            }
        ]
    },
    "UnsupportedQueryParameters": [],
    "RequiredQueryParameters": []
}

from winget-cli-restsource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.