Solved

Cancel msiexec application removal if not found

Posted on 2015-01-16
12
141 Views
Last Modified: 2015-01-19
Hi
I am setting up a deployment of skype 7 via our deployment tool. We previously managed and deployed Skype 6.18 via GPO, so I have set a pre-deployment task to remove 6.18 via the application GUID.
cmd file is MsiExec.exe /X{1845470B-EB14-4ABC-835B-E36C693DC07D} /passive /norestart
Then Skype 7 deploys.
However if for some reason Skype has been uninstalled the whole thing fails as it cant find 6.18 to remove, anyway to set it to skip 6.18 removal should it not be found?
0
Comment
Question by:kwatt562
  • 7
  • 5
12 Comments
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40553259
The answer is in your deployment tool. You probably have to tell it to ignore the failure of pre-deployment task.
0
 

Author Comment

by:kwatt562
ID: 40553381
Hi, thanks for that
In the tool I have two text fields below my added script
Script Arguments :    
Proceed if exit code is :  

I am new to application deployment, can you help assist what I need to enter here to  allow the install to run if the pre-deployment script is unable to locate 6.18 Skype?
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40553396
You need to tell it to "Proceed if exit code is : (anything)". How to do that probably can be found in documentation on the tool.
0
 

Author Comment

by:kwatt562
ID: 40557379
there is no documentation in the tool, checked with the provider too :(
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40557537
Then you probably have these 3 choices: (1) contact the real developer (2) experiment by trying some well-known values, like * or -1 (3) look in the log, if there's one, maybe it tells there what was expected (4) choose another deployment tool.

What is the tool, by the way?
0
 

Author Comment

by:kwatt562
ID: 40557637
Desktop Central
The only numerical error value in the logs was 1605, tried that but didn't affect anything
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 40557658
I would write a script that encapsulated calling msiexec, so the script would return 0 in any case.  You probably can make it as easy as to call not msiexec <parameters> but cmd /c msiexec <parameters> .
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40557717
...also maybe ask on their forum at https://forums.manageengine.com/desktop-central; another way is to find real name of their developer from their blog, and try to call directly by name. Depending on their size, policies, and other factors, it may work.
0
 

Author Comment

by:kwatt562
ID: 40558439
thanks again, encapsulating the msi did the trick, can you explain more about what it does?
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40558504
it's a program (command shell) that in turn calls msiexec, waits for the completion, and quits. Regardless of the return code returned by msiexec, the shell always returns 0. The drawback is black window showing on the screen.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40558515
>The drawback is black window showing on the screen.

...here's freeware that overcomes this, and more:

http://www.ntwind.com/software/hstart.html
0
 

Author Comment

by:kwatt562
ID: 40558575
great thanks a lot
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

911 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

21 Experts available now in Live!

Get 1:1 Help Now