Is there any example code for installing and uninstalling a program ?
I mean to show my program between Control Panel ----> Programs
The uninstall program can be anything you want, when you install the program you must simply register the uninstall program in the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YourProgName\
You can look at the entries in the key to see what you need to include.
It's probably advisable to keep clear of the registry when installing programs - it gets messy and can be problematic.
A simple folder delete is more efficient as an uninstall function.
:wink
Thanks
first I need to know how to install my program
Unless your program (you have told us nothing about it) is really complicated, involving a number of COM components,...the simplest method of installation is merely to create a new directory (folder) and unzip your program into it, with all dependent files.
That way the user can just delete the folder to uninstall.
...Simple and almost fool-proof,...especially during development.
yes its easy way and i do it i can make short way icon on the desktop from that folder also
in fact i dont know really why lot of programmers use installion wizard for their programs
I just wondered it so i wanted to learn installion technique
I think that the install thing came about from Dos. it used to be that you had to configure a program manually after you unzipped into a directory, and it could be kind of complicated to set up the environmental variables in your Bat file. The autoexec.bat file was where you set of your path string,among other things.
Quote from: Force on March 26, 2012, 07:52:17 PM
I just wondered it so i wanted to learn installion technique
This is probably a result of MSoft's drive to do it
'their way'This is offered as an easy (default) option for those lazy RAD developers, but here at
Masm County, the folk are a bit different, if not, impossible :wink
Quote from: Force on March 26, 2012, 07:52:17 PM
I just wondered it so i wanted to learn installion technique
This is a mission on it's own..
I my vague 'bottled' memory, you have to literally write another program (script or C based [say no more]) to install the crap.
.. when a simple copy would do.
Nudge.. Nudge.. Wink.. Wink.. :bdg
Quote from: Force on March 26, 2012, 07:52:17 PM
in fact i dont know really why lot of programmers use installion wizard for their programs
Coz.. they're stupid and lazy. BUT you'll find them as 'experts' in IT departments.. :U
They use installion wizard even if with simple program so as you said we think it's way of experts