We help IT Professionals succeed at work.

Install .MSI on remote computer using PSEXEC

SensibleOne
SensibleOne used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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.
Most Valuable Expert 2011
Top Expert 2011

Commented:
psexec \\remotecomputer msiexec.exe /i "\\networkservername\sharename\my.msi /quiet /norestart"
Most Valuable Expert 2011
Top Expert 2011

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

Sorry, qoutes were wrong.....

Author

Commented:
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.

Commented:
Yes ^ I was wondering why it looked funny :)
Most Valuable Expert 2011
Top Expert 2011

Commented:
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

Author

Commented:
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.
Most Valuable Expert 2011
Top Expert 2011
Commented:
""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."

Thats a permissions error.....

Who has the permissions to the share? The remote user, or YOUR user launching psexec?

"I should add that the msi package has a space in the name."

Doesnt matter, it is in qoutes....    :-)

Try this one, with credentials for a user that has confirmed access to that share.....





psexec \\remotecomputer -u Domain\Username -p Password msiexec.exe /i "\\networkservername\sharename\my.msi" /quiet /norestart

Open in new window

Author

Commented:
Johnb6767:

Using the batch file has same result.

Author

Commented:
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. "