petben Posted April 24, 2024 Posted April 24, 2024 We have an error in logs during Office365 install (errors only when using startup script that runs after imaging PC). Error removing appx package Microsoft.Office.Desktop, which we assume is the Store office app that the full Office install removes first. After a lot of attempts my next thought is to remove this appx package before the office install script runs. We use MDT, I could do something with the base windows image. Remove-AppxProvisionedPackage etc or offline wim changes. In the past I found this to break other things in MDT. Any other ideas? Thanks
CHiLL Posted April 25, 2024 Posted April 25, 2024 Does office install fine and those errors are logged anyway, or does the install fail because of this? I'm fairly confident that our machines that M365 Apps installed and works correctly, whilst the Microsoft.Office.Desktop AppX package is still installed. By reading your post, I don't think you mean the Store app itself, as it's not recommended to remove that as it can break a lot of other things that depend on it. You're talking about the default, small AppX package that comes with Windows called Microsoft Office, which is basically a web re-direct to the online apps or how to buy Office, correct? If you must manually remove the Microsoft.Office.Desktop package, you use a Powershell script to detect and remove it as a computer startup script in GP. I can't think of the code right now, but the logic would be along the lines of: - Check if the app is detected - if not, end the script. - If the app is detected, run "Get-AppxPackage -name “Microsoft.Office.Desktop” | Remove-AppxPackage -Force" - Check if the app is detected and maybe write to a log
petben Posted April 25, 2024 Author Posted April 25, 2024 thanks, on further inspection, the error we need to troubleshoot is: 04/18/2024 17:16:25.849 OFFICECL (0x1d2c) 0x12b4 Click-To-Run Non Task Error c0dow Unexpected InspectorToolDeployment::ToolScratchWrapper {"MachineId": "97e5222f6ce61f4fad05433c7d286233", "SessionID": "a081b5ce-0767-48bf-ba85-0aacc3df4526", "GeoID": 242, "Ver": "16.0.17328.20282", "C2RClientVer": "16.0.17328.20282", "ErrorCode": 0, "ErrorType": "", "AppVErrorSource": "", "ErrorMessage": "", "ErrorDetails": "", "ContextData": "{"message":"Run Inspector tool process","Process":"InspectorOfficeGadget.exe","Command":"deprovisionuninstall --displayname \"Microsoft.Office.Desktop\" --logfile \"C:\\\\windows\\\\TEMP\\\\Office.DeprovisionError.scratch\"","Message":"Exception: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component."}"} during the office install this is logged and then an identical entry every 10 minutes... if you have any ideas? Thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now