Archive: How to create little apps with NSIS


How to create little apps with NSIS
Hi! i'm new here, so have patience with me:P What I need is to know the basics for creating little apps with NSIS. For example: An app which let you choose and apply custom icon sizes for Windows icons. In this example, what I need are some reg files to change icon size via the registry (I have them), but how I make a gui for that? Also I need (after apply one setting) a prompt telling the user to restart, and when OK is clicked, the system restarts automatically.

Thanks in advance.


For the GUI, you can use InstallOptions (comes with NSIS) or InstallOptionsEx (see my signature or search for it).

To write to registry, you can also use WriteRegStr and the other register commands to write and read information from registry. (not necessary if you think it's easier with .reg files)

For the message box and reboot, use MessageBox and Reboot commands. Also, if you want the reboot to occur from just one place in the application, there is SetRebootFlag and IfRebootFlag commands for the detection of reboot flag.