Solved

Installer Problem/Question

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# Gridview 1 63
Calculate number of nights between two dates 5 85
defining NULL or 0 10 50
Connect Gridview column to Textbox in C# 2 34
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 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