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\sharen ame\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.
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\sharen
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.
psexec \\remotecomputer msiexec.exe /i "\\networkservername\share name\my.ms i /quiet /norestart"
psexec \\remotecomputer msiexec.exe /i "\\networkservername\share name\my.ms i" /quiet /norestart
Sorry, qoutes were wrong.....
Sorry, qoutes were wrong.....
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.
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
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
ASKER
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Johnb6767:
Using the batch file has same result.
Using the batch file has same result.
ASKER
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. "
"You cannot have both!
Either use implicit logon and loose any network resources on \\target.
Or use explicit logon. "
psexec \\remotecomputer cmd "msiexec.exe /i \\networkservername\sharen
If that doesn't work, try running just "msiexec.exe /i \\networkservername\sharen