Jump to content
  • Advertisement

Archived

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

Goodlife

Writing an installer/uninstaller

This topic is 6270 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Check out Inno Setup

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

Its a kind of InstallShield clone which is Opensoure and much better.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!