Solved

Autorun Program reading registry

Posted on 2003-10-29
3
316 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
3 Comments
 
LVL 5

Expert Comment

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

Try first,
fantasy
0
 

Author Comment

by:jxharding
Comment Utility
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 50 total points
Comment Utility
Have you tried Inno Setup?

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

It's free.
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

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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

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

12 Experts available now in Live!

Get 1:1 Help Now