We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

push software installation

Medium Priority
372 Views
Last Modified: 2012-11-05
I have windows XP machine and
I am looking for a reliable and free software to push my application(i have exe and msi files)  to users's xp machines without having them to log-off from their systems

thanks a lot
Comment
Watch Question

chris_martin62Desktop Systems Analyst
CERTIFIED EXPERT

Commented:
If you don't have that many machines ps exicute. Part of the PS tools

chris_martin62Desktop Systems Analyst
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
thanks.. have u used it? any tips ? thanks
chris_martin62Desktop Systems Analyst
CERTIFIED EXPERT

Commented:
Sorry I have not used it.
chris_martin62Desktop Systems Analyst
CERTIFIED EXPERT

Commented:
Sorry I have not used it.

Author

Commented:
hmmm bcos i am trying to do it on users machines and i donot want to mess nething on users's machines... thanks
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
can you pl explain on how to do it using group policy ? Do you have the scripts? thanks..
Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT

Commented:
Pushing installations methods are usually dependant on the methods allowed by the software you are installing.  Sometimes removing old software versions is necessary and sometimes not depending on what we're talking about.

... a lot of installers allow suppressing all user input using common switches.  /q /s
Msi files can usually be installed silently with these switches.

To "push" something like that... you would need to create a backround process on the remote machine and the installation method would have to allow installing without any user interaction using switches like the above..  (ie   c:\msiinstallerfile.msi /q /n /s )

The below script ( useage: wscript c:\TSScript.vbs 'computername' ) I used once upon a time to push some ware.  PSEXEC, is used to do this sort of thing as well.

This script checks for the presence of software, ...if it exists...it removes it, then it downloads the new installation files from our server, then launches it in quiet mode... then deletes the installer files.




set args=wscript.arguments
strcomputer = args(0)


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

Set colSoftware = objWMIService.ExecQuery _
    ("Select * from Win32_Product Where Name = 'TS Agent v1.0'")

For Each objSoftware in colSoftware
    objSoftware.Uninstall()
Next

strxcopy = "cmd /c xcopy "
strdel = "cmd /c rd "

set WshShell = WScript.CreateObject("WScript.Shell") 
wshShell.run strxcopy & """\\192.168.6.2\monitor\TSAgent*.*"" " & """\\"  & strcomputer & "\c$\TSAgent\""" & " /D /E /I /Y"

'Give 20 seconds to finish copying.
WScript.Sleep(20000)

'Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 
Set objSoftware = objWMIService.Get("Win32_Product")
errReturn = objSoftware.Install("c:\TSAgent\TSAgent.msi /S /v/qn",,True)
Wscript.Echo errReturn

'Give 45 seconds for installer to finish then delete the installer.
WScript.Sleep(45000)
wshShell.run strdel & " " & """\\" & strcomputer & "\c$\TSAgent\""" & " /S /Q"

Wscript.Echo strcomputer & " " & "Done !"

Open in new window

Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
Thanks i will try that...

Can I do an uninstall in the same way as install? If not then how can i do uninstall without having user to log - off..

thanks..

Author

Commented:
sorry neglect my previous comment i found the details from xuserx2000's comments on 04/22/2011
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.