Solved

VB5: Test for Previous Installations

Posted on 1998-05-28
1
133 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
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

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

730 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