-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request! Updates montioring or checking! #41
Comments
Hey thanks for the suggestion, however this feature requires some work to implement. for updating each uwp app installed in the pc we need to first fetch all installed uwp apps details and compare their version with that available on ms server and download and install them if a new version is available. this for implementing 2nd (automatic option) for implementing the 1st (manual option) we would require to filter installed apps and only select apps which are given using their product id and do the same as 2nd method. for implementing the 2nd option (automatic mode) here are some of my thoughts instead of trying to read AppxManifest and get version we can use a powershell command I currently don't have time to implement this myself but in future i might implement it or if someone is willing to do it feel free to make a PR. |
Here the api for generating the download link using PackageFamilyName, this will produce the
|
For now this code is working for few apps, let's see how I can make it more accurate with different PackageFullNames PackageFamilyName = '38833FF26BA1D.UnigramPreview_g9c9v27vpyspw'
details_api = f"https://displaycatalog.mp.microsoft.com/v7.0/products/lookup?alternateId=PackageFamilyName&Value={PackageFamilyName}&market=US&languages=en-US&fieldsTemplate=Details"
r = requests.get(details_api, timeout=20)
response = json.loads(r.text)
cat_id = response["Products"][0]["DisplaySkuAvailabilities"][0]["Sku"]["Properties"]["FulfillmentData"]["WuCategoryId"]
PackageFullName = response["Products"][0]["DisplaySkuAvailabilities"][0]["Sku"]["Properties"]['Packages'][0]['PackageFullName']
def extract_version(tuple_data):
# Extract the first string from the tuple
version_string = tuple_data[0]
# Split the version string using underscores
parts = version_string.split('_')
# Find the index of the first and second underscores
first_underscore_index = version_string.index('_')
second_underscore_index = version_string.index('_', first_underscore_index + 1)
# Extract the version substring between the first and second underscores
version_number = version_string[first_underscore_index + 1:second_underscore_index]
return version_number
# Given tuple
tuple_data = (PackageFullName, PackageFamilyName)
# Extract version using the logic
version = extract_version(tuple_data)
print("Extracted Version:", version) |
There are several issues I am facing right now! PackageFullNames might not be similar to PackageFamilyNames or may not have correct versions mentioned in the names of the powershell reads |
you can directly extract the version from the can you tell me which is the name of the app that you faced issue where it downloads arm64 instead of neutral also which all apps showed out of index error |
Hello! Its been quite a while I solely rely on Alt App Installer, as I have removed the store from my laptop! A feature which halves the effort of finding the app on store and then checking the version already installed on the pc and the latest version available on store-guard/store can be added! as I think it much adds the great insight and an all-in-one store replacement solution for those who update apps regularly! Maybe not always active but in the portable package you can add a flag/menu-feature which let know the users about the apps installed and current version available! Please share your thoughts on this!
Few flows which I can come up with but too noob to build package myself are! :
Where a menu of updates can be introduced and user has to enter the product-id or list of product-ids from the url of teh app to check in future which app updates they want to monitor!
2)Automatic mode
Where the Alt app installer takes permission to read 'C:\Program Files\WindowsApps' and sub folders in it to collect all the unique 'AppxManifest.xml' of all the packages installed, and read Display name and Publisher name of the apps using RegEx Maybe! and search and provide the necessary information!
Please share your thoughts on this, and let know, can we expect something like this in future updates!
The text was updated successfully, but these errors were encountered: