Solved

Uninstalling CA eTrustITM 8.0 with msiexec, how to suppress question about reboot

Posted on 2009-04-03
3
1,664 Views
Last Modified: 2013-11-14
Hi,
I am working on an upgrade script that will uninstall eTrustITM ver 8.0 and install 8.1. The script works perfectly but i get a question during uninstall asking if i want to reboot now or later. It looks like it is eTrustITM asking the question and not msiexec. Does anyone know how i can suppress the question regarding reboot.


Here is the script (i am using kix):

 

CASE $eTrustITMver = "8.0"

shell 'MsiExec.exe /qbn /X{A73227F9-C4B0-4018-B0B0-4DCAF791A29E} /q /norestart' 

shell 'MsiExec.exe /qbn /X{847501DF-07C0-4691-B04A-893929F108AE} /q /norestart'

shell '\\server\CA\CA_INST\English\Bin\Win32\install.exe /s /n INO_ICFFILE=\\server\CA\CA_INST\English\Bin\Win32\inoc6.icf'

 

Everything works fine exept the question regarding reboot now or later.

Open in new window

0
Comment
Question by:Reset_
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Reset_ earned 0 total points
ID: 24069675
I solved it!

I tried 1000 variants of the msiexec commands, finally i realized that the placement for the /qn switch made a difference. I had it in the end, but when i placed it before the /x (uninstall switch it all worked fine).
shell 'MsiExec.exe /qn /X{847501DF-07C0-4691-B04A-893929F108AE}' ;iGateway

shell 'MsiExec.exe /qn /X{A73227F9-C4B0-4018-B0B0-4DCAF791A29E}' ;eTrustITM

Open in new window

0
 
LVL 40

Assisted Solution

by:Vadim Rapp
Vadim Rapp earned 500 total points
ID: 24183685
Actually, looking at what you posted first, it looks like it was evem the position, but the switch itself. You had it twice : /qbn and /q . Quite likely /q was overriding /qbn, and /q without anything following is incorrect; on the other hand, /qbn is also incorrect: should be either /qn, or /qb .
0
 
LVL 3

Author Comment

by:Reset_
ID: 24296199
You are quite right that both the double /q switch and the qbn switch are wrong. I realized that too when i read the help text for msiexec at technet. I skipped the /q switch in front on an early stage when i had the trouble as i realized that there would be no point in having it twice. The reason why it was so clear that the position mattered was because i was using the same sentence when i solved it as i was when it failed (the sentence i have posted above as solution). i moved the switch in front and it worked, that was the only change i made from the not working sentence to the working.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you don't know how to downgrade, my instructions below should be helpful.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now