Solved

VB5: Test for Previous Installations

Posted on 1998-05-28
1
134 Views
Last Modified: 2010-05-18
I have modified the standard setup.exe project in VB to give me what I need.  One last function I would like to add is the ability of setup to check and see if my application is currently installed on the user's computer.  If so, I want to either alert the user that they need to perform an un-install or just launch the un-install from setup.exe.

Control Panel Add/Remove keeps a list of installed applications.  Where is this list?  How can I parse it?  Is there simply an API call that I can ustilize to check for a current installation?

Microsoft's programs all check for previous installations and even go so far as to note which components were installed.  How do they do this?  It appears as if their programs actually search the hard disk for files related to the application.  Why would they do this if the information is accessible via the control panel?

Aaaaah!!!

Has anyone run accross this?  Any ideas?

Lankford
0
Comment
Question by:lankford
[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 1

Accepted Solution

by:
tstrob earned 100 total points
ID: 1461962
I am using to store information of installation to registry. (Im doing this with a modified setup-application)

When setup launches, I first check if my software installed.

You can launch the deinstallationprogram in this case (safe also the path to your installation to registry)

To make this more effective, you can store a value to registry when starting setup which will be removed after setup. So you can check for aborted installations.

Use this Registrykey for example
HKEY_LOCAL_MACHINE\SOFTWARE\Your_Name\Your_Applicationname\Setupinformation


0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

696 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