Windows Installer

Windows installer is an engine for the installation, maintenance, and removal of software on more modern microsoft systems.

To do something similar to this, you can get Inno Setup 5 or up. Just follow the wizard or if you are more advanced in programming, use the code editor.