Program install and uninstall files in c++

Started by
8 comments, last by Misery 11 years, 3 months ago
Hello,
I just finish my last aplication and now I want to distribute.
First I thinked put all the aplication files in a winrar archive, but I dont realy like the poor appearance of this. So I thinked to use any of the install files creators like SSE Setup, but I have troubles with this too.

So, I am wondering, ¿How can I program my own setup files?
I need a setup.exe that put all aplication files in "Program Files" and create a shortcut in deskopt, and a unistall.exe for do the inverse operation.

I think is posible to do, but I dont know how to start with this.
Thanks in advance!
(And sorry for my bad english :P)
Advertisement
Your IDE may have the ability to build an installer for your program. For example, with Visual Studio you can create a Setup/Deployment project. Otherwise you might want to try a different installer program. Some other options are NSIS and WiX.
The NullSoft installer is another option.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
I tend use Visual Studio's deployment projects, as SiCrane suggested. However, be forewarned that Visual Studio 2012 removed this project type. Microsoft has received a lot of backlash for this decision.
I cant use the setup proyects of visual c++ because i'm using Express Edition.
I will try some of this installers, but if someone know how to make an instaler please share the information, im more intrested in this.
Thanks!!
Unless you really want to program an installer yourself, theres always alternatives such as http://www.advancedinstaller.com/ which is really good
I see NSIS has been mentioned aready. I admit it has been long since I last tried NSIS, but I always found Inno Setup more straight forward to use. It's free, and definitely worth a look: http://www.jrsoftware.org/

Thanks for the answers.

Anyway, if someone knows how to write a setup, Im really interested in this.

Just use WiX. It's very easy and also very well documented.

For multiplatform deployment I use Python with Tk. On Linux and Mac python is present by default, on Windows there is a possibility to make one exe file without necessity to require a Python installation.

This topic is closed to new replies.

Advertisement