Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB5: Test for Previous Installations

Posted on 1998-05-28
1
Medium Priority
?
136 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 300 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
Suggested Courses

636 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