Solved

Installer Problem/Question

Posted on 2003-11-30
1
196 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
1 Comment
 
LVL 20

Accepted Solution

by:
TheAvenger earned 250 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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

13 Experts available now in Live!

Get 1:1 Help Now