OP says he is writing his own installer, not using Windows Installer.
You need to register your uninstaller with Windows. Specifically, you'll have to add your application to the registry
Create a new unique key. Many applications create a GUID, but the (unique) name of your app is fine.
Under your app's key, create a REG_SZ value called "UninstallString
" with the full path to your application's uninstaller, plus any command-line arguments (if needed).
Other useful values are:
DisplayIcon REG_SZ "C:\Program Files (x86)\RRabits\rrabbits.exe"
DisplayName REG_SZ "Rabid Rabbits"
DisplayVersion REG_SZ "Version 3.14 AKA Easter Bunny Pellets"
HelpLink REG_SZ "http://some.url"
InstallLocation REG_SZ "C:\Program Files (x86)\RRabbits"
Publisher REG_SZ "Stav Industries Inc"
VersionMajor REG_DWORD 3
VersionMinor REG_DWORD 14
The DisplayIcon usually points to the executable because the executable has an embedded ico resource. If you wish, you could easily point it to an .ico file instead.
If you peruse other application values with regedit
, you'll see a lot of different values in there in addition to the ones I listed for you above. Don't bother -- they only have meaning in a specialized context that you are opting out of by writing this yourself.
You're killing yourself to write this yourself. Go get a copy of Inno Setup
Hope this helps.