Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how-to: programmatic install on windows?

Can anyone list the steps needed to programatically install an application on Windows. Aside from copying the files where they need to be, what are the additional steps needed so that your app will be a first-class citizen in Windows (i.e. show up in the programs list, uninstall list...etc.)

I tried to google this, but had no luck.

BTW: This is for an unmanaged c++ application (developed in Qt), so I'd rather not involve the .net framework if I don't have to.

like image 445
JimDaniel Avatar asked Mar 02 '09 22:03

JimDaniel


1 Answers

I highly recommend NSIS. Open Source, very active development, and it's hard to match/beat its extensibility.

To add your program to the Add/Remove Programs (or Programs and Features) list, add the following reg keys:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PROGRAM_NAME]
"DisplayName"="PROGRAM_NAME"
"Publisher"="COMPANY_NAME"
"UninstallString"="PATH_TO_UNINSTALL_PROGRAM"
"DisplayIcon"="PATH_TO_ICON_FILE"
"DisplayVersion"="VERSION"
"InstallLocation"="PATH_TO_INSTALLATION_LOCATION"
like image 61
Andrew Ensley Avatar answered Oct 15 '22 23:10

Andrew Ensley