2
I'm not sure why this is the case, but I can't install a local copy of a MSI if I remote into the machine in PowerShell with msiexec. I get this error:
[computername]: PS C:\temp> msiexec -q -i installer.msi
T h i s i n s t a l l a t i o n p a c k a g e c o u l d n o t b e o p e n e d . V e r i f y t h a t t h e p a c k a g e e x i s t s a n d t h a t y o u c a n
a c c e s s i t , o r c o n t a c t t h e a p p l i c a t i o n v e n d o r t o v e r i f y t h a t t h i s i s a v a l i d W i n d o w s I n s t a l l e r p
a c k a g e .
(I'm also not sure why it gets the extra spacing in there.)
However, I have no issues installing it from the network using psexec like this:
psexec -s \\computername msiexec -i -q \\networkpath\to\installer.msi
I've made sure that the local copy isn't blocked, so I'm not sure what's causing this.
How can I copy a MSI to the machine, and install it from within a remote session? Or is psexec the best way to do this?
Welcome to the super user community! I added the extra info from the link you provided. This is to prevent people in the future from NOT clicking on a dead link. (Link rot) – Tim_Stewart – 2018-04-04T21:09:44.490