Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error returned when i try to run an intall script on a remote computer

Status
Not open for further replies.

Guy1983

Programmer
Jan 7, 2005
13
US
Hi,

I am trying to run a script that will install lotus notes on a computer on my network remotely. The computer has XP sp2 on it. I have already disabled the firewall on it. When I run the script, a message box pops up with the # 3 as its message. When you look at the script below, you will notice that in the last line of the file i am echoing the error message returned by the install command. I know that if it returns a 0, the install was successful and that if it returns a 1 it failed. I do not however know what a 3 means. Here is my script (It uses WMI):

strComputer = "132.17.123.844"

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set objSoftware = objWMIService.Get("Win32_Product")

errReturn = objSoftware.Install("L:\DOMINO\Notes653\Lotus Notes 6.5.3.msi",,True)

Wscript.Echo errReturn


Any advice would be greatly appreciated.

Thank you,

guy
 
Guy1983,

I would check the availability/accessibility of the resources at L:\...

regards - tsuji
 
What should i check for? Both computers can access any file on the L: drive. It is a shared network drive. Everyone has permissions to read/write, remove, move any of the files on that drive.

thank you
 
Guy1983,

How about use the unc path pointing to the share rather than the map drive? (3=2+1; usually, you get 2 when you cannot actually find the resouce location. 1 might be related to the application being advertised-but I cannot say for sure.)

- tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top