Writing an installer/uninstaller
Hi all,
I wondered if anyone knew, or could point me toward some resources about, writing an installer/uninstaller program? I want to write the whole thing from scratch, as a learning experience. I have the whole shebang done, and it works fine, but my only issues are:
1) What do I do to signal to windows that I installed this program, so that "Uninstall whatever" appears when the user selects "Add/Remove programs" from control panel.
2) How do I set a shortcut file up in the programs menu? Right now I am copying a pre-defined shortcut into it, but that shortcut becomes invalid if the user puts the program anyplace but where I pre-defined the shortcut to fit.
Thanks in advance!
John
-- Goodlife-----------------------------Those whom the gods would destroy, they first drive mad.--DirectX design team official motto
Check out Inno Setup
http://www.jrsoftware.org/isinfo.htm
Its a kind of InstallShield clone which is Opensoure and much better.
http://www.jrsoftware.org/isinfo.htm
Its a kind of InstallShield clone which is Opensoure and much better.
We are boki. The rest is known.
hi
1) take a look at this key with RegEdit u''ll figure out how the Add/Remove stuff works :
HKEY_LOCAL_MACHINE\\Software\Microsoft\Windows\CurrentVersion\Uninstall
you must add a subkey and some stuff to that root and ur software will be seen in the Add/Remove Programs list.
2) take a look at some windows programming guide like MSDN or PlatformSDK search for IShellLink interface, it has enough description and a working code snippet which does make a shortcut file to be placed anywhere on the disk.
1) take a look at this key with RegEdit u''ll figure out how the Add/Remove stuff works :
HKEY_LOCAL_MACHINE\\Software\Microsoft\Windows\CurrentVersion\Uninstall
you must add a subkey and some stuff to that root and ur software will be seen in the Add/Remove Programs list.
2) take a look at some windows programming guide like MSDN or PlatformSDK search for IShellLink interface, it has enough description and a working code snippet which does make a shortcut file to be placed anywhere on the disk.
--MFC (The Matrix Foundation Crew)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement