Solved

Installer Problem/Question

Posted on 2003-11-30
1
207 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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