Solved

Installer Problem/Question

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

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

Suggested Solutions

Title # Comments Views Activity
Handle null when using linq in this line 1 26
Programmatically signing Word macros 4 61
scanning dentists xray (the small ones) 3 43
ASP.NET 5 Templates 2 65
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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 is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

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

18 Experts available now in Live!

Get 1:1 Help Now