[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Installer Problem/Question

Posted on 2003-11-30
1
Medium Priority
?
214 Views
Last Modified: 2010-04-16
If someone tries to uninstall a version of a previous program, and part of it is running, the uninstaller still says it completed ok even though the .exe and a loaded dll that were installed were not removed.  Is this normal?  

Also, how can I ensure that an .exe is not running when the installer begins?  I know how to detect it in an .exe, but what do I do to stop the installer during the execution of the install Script that checks to see if this exe is running?
0
Comment
Question by:jjacksn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 20

Accepted Solution

by:
TheAvenger earned 1000 total points
ID: 9849007
Yes, this is normal with MSI installers. Sometimes they mark the files to be removed next time you restart the system. So try restarting the system and see if the files are still there.

To detect if the app is running: create a very small application that checks if the application is running and returns a result that is not 0 if it is running and 0 otherwise. Then put a call to this application in the uninstall part of the script. What will happen is this: the small app is called. If it detects the main app running, it will return non zero result. The installer will receive this and will say that a required component failed during the process and will rollback (so no uninstall). You can also review the conditions possibilities of the setup projects and play with it a little in the same way.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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