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
Solved

VB5: Test for Previous Installations

Posted on 1998-05-28
1
132 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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 …
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…
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…

839 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