Solved

VB5: Test for Previous Installations

Posted on 1998-05-28
1
129 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

771 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

8 Experts available now in Live!

Get 1:1 Help Now