Link to home
Start Free TrialLog in
Avatar of SensibleOne
SensibleOne

asked on

Install .MSI on remote computer using PSEXEC

I'm trying to install an MSI package that is located on Network Server 1.
I'm wanting to install MSI package on Computer A (Windows XP) from Computer B (Windows 7).

So tried this...

psexec \\remotecomputer cmd /c "msiexec.exe /i \\networkservername\sharename\my.msi /quiet /norestart"

I can see msiexec.exec, psexec processes on the remote machine but it's not doing anything.  It doesn't install the msi file.

Any assistance is appreciated.
Avatar of josika
josika
Flag of United States of America image

Try removing '/c':

psexec \\remotecomputer cmd "msiexec.exe /i \\networkservername\sharename\my.msi /quiet /norestart"

If that doesn't work, try running just "msiexec.exe /i \\networkservername\sharename\my.msi /quiet /norestart" from the remote computer and make sure it can actually get to the MSI file.
Avatar of johnb6767
psexec \\remotecomputer msiexec.exe /i "\\networkservername\sharename\my.msi /quiet /norestart"
psexec \\remotecomputer msiexec.exe /i "\\networkservername\sharename\my.msi" /quiet /norestart

Sorry, qoutes were wrong.....
Avatar of SensibleOne
SensibleOne

ASKER

I've tried both.  The first suggestion to remove /c...that doesn't do anything.  
Previously verified that the remote computer can access and run the msi file.
Yes ^ I was wondering why it looked funny :)
Anothr alternative is to use a local .bat file.....

Save this as AppInstall.bat, in the same directory you are launching psexec from....

Then use this one....

psexec \\remotecomputer -c AppInstall.bat


@echo off
c:\windows\system32\msiexec.exe /i "\\networkservername\sharename\my.msi" /quiet /norestart
exit

Open in new window

Johnb6767:

I tried your suggestion and the following information was returned:

"This installation package could not be opened.  Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package. msiexec.exe exited on 'remote computer name' with error code 1619.

I should add that the msi package has a space in the name.
Also the package is a data collection package created with the Microsoft Application Compatibility Toolkit.
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Johnb6767:

Using the batch file has same result.
Thank you.  I thought since I am a domain admin, I wouldn't need to do that.
The explanation can be found at http://forum.sysinternals.com/psexec-remote-share-problem_topic5072.html:

"You cannot have both!
Either use implicit logon and loose any network resources on \\target.
Or use explicit logon. "