Forum Discussion
Installing from script
I am installing a bit of software using a Powershell script and deploying the script as a Win32App into the company portal.
We need to supersede the script since the software is regularly updated.
Now the install part works as expected. We created an uninstall script, but unfortunately it doesn't work. The company portal returns the error "An error occurred while requesting the application"
There are a few things I have tried to get the uninstall to work, but nothing has worked.
The following command has been added before the powershell script in Intune: Powershell.exe -NoProfile -ExecutionPolicy Bypass -File ./UninstallScript.ps1.
Even putting the full file path of where the script is hasn't worked.
Also, I tried uninstalling it from MSIEXEC.EXE /x [GUID], but that didn't work either.
The uninstall script also works as I've run it outside of the company portal.
Is there anything else I can try