I’ve been trying to find this in the forum but can’t seem to find it. My question would be is how can I convert this msiexec command in PSADT?
command is msiexec /fomusv APS_PM_V11.msi /qn /norestart
The command I am using at the moment on my PSADT is execute-msi -Action Repair -Path “$dirfiles\APS_PM_V11.msi” -Parameters “/qn /NoRestart”
The syntax I use for PSADT is valid but I am having issues when I do a repair on some machines and the original installation source used for the app i am trying to repair is gone or changed its location, I get this message that the Installation source is missing if I try to manually do a repair
To get around that error, i use the /fomusv command from msiexec so that it wont look for the original source of the installation source.
This would also give me an idea hopefully how to translate msiexec commands into PSADT terms.
I haven’t tested this myself but if you look in AppDeployToolkitMain.ps1 where it builds the MSI parameters for the specified “Action” you can see that if it’s a Repair action and you are using the -RepairFromSource switch it will add the /fvomus parameter that you want to use: