The-Virtual-Desktop-Team / Virtual-Desktop-Optimization-Tool

The script and configuration files in this repository provide an easy method to customize and apply performance related settings to virtual desktop environments.
701 stars 173 forks source link

Re-install individual apps #30

Closed Digiroka closed 4 years ago

Digiroka commented 4 years ago

Hi all. hoping you can help me -

I used the 1909 script to remove apps, however we now require the 'Photos' app. I have tried to reinstall using the get-appxpackage and add-appxpackage command, however the photos app is not found. There is no photo app within the c':\program files\windowsapps' folder. I even tried via the windows store, but received a helpful 'something went wrong' error.

Any help greatly appreciated!

tmmuessig commented 4 years ago

Hi Digiroka,

If you look in the AppxPackages.json file for the Photos app, you should see a URL where you can reinstall the application from.

The URL specifically for the Photos app is: https://www.microsoft.com/en-us/p/microsoft-photos/9wzdncrfjbh4?activetab=pivot:overviewtab

Does this help, or does this lead to the same error?

Digiroka commented 4 years ago

Hi - thank you for your quick reply. Unfortunately I receive a 'something happened at our end' error when trying to install via the store. image

Digiroka commented 4 years ago

I have resolved this - the Windows store service is disabled as part of the optimisation script. Enabling the service allowed me to install. Could this be added to the guidance? I can see quite a few situations where changes or new apps would be required, so detailing the required process would be useful. Thanks. image

tmmuessig commented 4 years ago

Hi Digiroka,

You are absolutely correct and I have updated the readme to reflect these actions to be able to reinstall these packages.

Digiroka commented 4 years ago

hi @tmmuessig - I have hit another issue. You can't just download the store app as it doesn't provision for all users. To provision for all users, you need to use add-appxprovisionedpackage, but to do that you need the full .appx package, which I don't have. I'm going round in circles a bit here, do you have another method I could use to restore applications on the master image? TIA. https://docs.microsoft.com/en-us/powershell/module/dism/add-appxprovisionedpackage?view=win10-ps

robsmi-msfte commented 4 years ago

Hello @Digiroka,

Check to see if the 'Microsoft Store Install Service' service is disabled. If so, set it to Manual, then try again. You can control that service through the optimization scripts, or with Group Policy. If you want to edit your optimization scripts, either delete this code block from 'Services.json':

{ "Name": "InstallService", "VDIState": "Disabled", "Description": "Microsoft Store install service." },

Or, within that code block, change the parameter 'VDIState' to anything other than "Disabled", such as "Unchanged".

Thanks,

Robert M. Smith

Digiroka commented 4 years ago

Hello @Digiroka,

Check to see if the 'Microsoft Store Install Service' service is disabled. If so, set it to Manual, then try again. You can control that service through the optimization scripts, or with Group Policy. If you want to edit your optimization scripts, either delete this code block from 'Services.json':

{ "Name": "InstallService", "VDIState": "Disabled", "Description": "Microsoft Store install service." },

Or, within that code block, change the parameter 'VDIState' to anything other than "Disabled", such as "Unchanged".

Thanks,

Robert M. Smith

Hi Robert - thanks for your reply, but I already started the app install service (please see post above) https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool/issues/30#issuecomment-734817275