Archived

This topic is now archived and is closed to further replies.

Goodlife

Writing an installer/uninstaller

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites