Hi Mizter,Thanks for the post. You could try the below way and test if it works for you:$command = “cmd.exe /c D:MyInstaller.exe /s /v`”/qn”$process = WMICLASS“PCNameROOTCIMV2:win32process“$process.Create($command)Remember your installer should have silent mode on in it.Hope it helps.Best Regards,ElainePlease remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]. Hi Mizter,Thanks for the post. You could try the below way and test if it works for you:$command = “cmd.exe /c D:MyInstaller.exe /s /v`”/qn”$process = WMICLASS“PCNameROOTCIMV2:win32process“$process.Create($command)Remember your installer should have silent mode on in it.Hope it helps.Best Regards,ElainePlease remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected].
![]()
Why Chocolatey? Chocolatey is a software management solution unlike anything else you've ever experienced on Windows. Chocolatey brings the concepts of true package management to allow you to version things, manage dependencies and installation order, better inventory management, and other features.
Here are two procedures for Comodo Patch Agent, one is the silent installer and on the silent uninstaller.Requirements for procedures:Download the Patch Management Agent from your Comodo ITSM Patch Management console. Copy the agent command line as you will replace the one in the template with the one you get. They are site specific so each of your sites will need a separate one or they will all show under the same client.
The installer can be used on multiple computers at the same site.Change the path and the command to match your Patch Management Agent path and the copied command.Notes:I found running the procedure as system user rather than logged in user gave more consistent results.I also found that while the /qn switch worked most of the time, every now and then it would give me an Even Log error that it needs to be run as Administrator. I have not had that happen after trying it with /qr and the UI still does not shown for the user so your choice.EDIT:I changed the print message as I found that failed installs were only passing the letter T as the error.
Also failed installs due to bad paths were not triggering Comodo log to show as failures so you had to read each log and see if the logs showed a T or not. I added an undeclared variable that runs only if the install failed and thus triggers Comodo log to show it as a failure.Procedure to install Comodo Patch Management Agent:MAKE SURE YOU CHANGE THE PATH TO FIT YOUR ENVIRONMENT. Code: import subprocess;# Change driveletter and path to the location your msi is stored.
![]()
The path may need to be doubled. Example c:testtesttest.msi becomes c:testtesttest.msi.# I have had the single work but also fail while I have not had the fail.# Change the words agent command line to the corresponding keys you copied from the Comodo Patch Management Agent download linkprocess=subprocess.Popen('msiexec.exe', '/i', 'driveletter:pathpatchagent.msi', '/qr', 'AGENTUSERNAME=agent command line','PASSWORD=agent command line', 'CUSTOMER=agent command line', 'IPADDRESS=agent command line',stdout=subprocess.PIPE,stderr=subprocess.PIPE)result=process.communicate0if result ':print 'Install successful!' Else:print 'Install failed. Please check your file actually exists and is accessible in the path you specified.'
Print errProcedure to uninstall Comodo Patch Management Agent:MAKE SURE YOU CHANGE THE PATH TO FIT YOUR ENVIRONMENT. Code: import subprocess;# Change driveletter and path to the location your msi is stored. The path may need to be doubled. Example c:testtesttest.msi becomes c:testtesttest.msi.# I have had the single work but also fail while I have not had the fail.process=subprocess.Popen('msiexec.exe', '/x', 'driveletter:pathpatchagent.msi', '/qr',stdout=subprocess.PIPE,stderr=subprocess.PIPE)result=process.communicate0if result ':print 'Install successful!' Else:print 'Install failed.
![]()
Please check your file actually exists and is accessible in the path you specified.'
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |