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

x
?
Solved

Autorun Program reading registry

Posted on 2003-10-29
3
Medium Priority
?
324 Views
Last Modified: 2013-11-14
First of all i recognise the fact that you are not here to do my homework.
I respect that and would only like guidelines for my problem.
I am using VB6 and visual studio installer.
I need to make an autorun menu for my application that
reads if the program is currently installed. According to this, the "Install Applicaition" button will be disabled, or would be called "Reinstall Application".
I would also like to add "Uninstall Application" to the options list.
This menu will come up everytime the cd is inserted.
I do not know currently how to write values to the registry to say that
if myprogram installed ok then
writetoregistry(program oK)
else
writetoregistry(program NOTOK)
end if
And from there would i simply call the installer / Uninstaller using a shell call (once the user has pressed the button)?


0
Comment
Question by:jxharding
[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
3 Comments
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9648261
There is a Deployment Package comes with VS6.
Visual Studio Tools>Package And Deployment Wizard

Try first,
fantasy
0
 

Author Comment

by:jxharding
ID: 9648730
Thanx for the reply,
my application is already written and i have compiled an installer using Visual studio installer.
I reckon what i want is once i installed the program, i write a value to the registry under my program's section. This value is say "1" , then in the autorun program i check if the value is "1" and then i set the INSTALL button to state REINSTALL.
It seems the problem is that VS Installer does not have an uninstaller for my program and
a developer urged me to use installshield.
Just a shame its a bit expensive and i livein a 3rd world country.
I guess my other option would be to set and UNINSTALL button on my autorun page, and then just call the control panel from there.
0
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 150 total points
ID: 9661901
Have you tried Inno Setup?

http://www.jrsoftware.org/isinfo.php

It's free.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 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…
Suggested Courses

604 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