Skip to content
⌘ NSIS Forum Archive

Launch Modern UI

8 posts

Anjali#

Launch Modern UI

Hello,
I installed the latest version of NSIS on my machine with Modern UI option selected while installing. Everything went well but I don't understand how should I launch the Modern User Interface? It always takes me to the compiler interface.
Could someone help me out?
Thanks,
-Anjali.
Anjali#
What i mean is NSIS 2 makes it is possible to create installers with a custom user interface. The Modern UI is an interface with a style like the wizards of recent Windows versions.

This new interface also features new pages (Welcome, Finish, Start Menu) and a description area on the components page. The interface and the graphics can be customized using the provided settings.

Instead of opening a notepad and typing in the script, you can use this wizard like interface, point it to your install files and it generate a script for you. But how do I launch that UI?

You can find information in NSIS Modern UI Readme but it lists all the functions that can be used in Modern UI.
Afrow UK#
None such wizard comes with NSIS.
You can take a look at the Related Software category though.

Stu
DariTo#
Ya, NSIS Installer comes with the compiler, documentation and some extra stuff, but nothing like a wizard 🙂
bl4d3#
Afrow UK, didn't you mean: Development Environments
most of them have an integrated and easy to use wizard.

when you want to use the modern interface for your installer you should take the following code:

!define APPNAME "My Application"
!define APPNAMEANDVERSION "My Application 1"
Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\My Application"
InstallDirRegKey HKLM "Software\${APPNAME}" ""
OutFile "Setup.exe"
SetCompressor LZMA
!include "MUI.nsh" // modern interface
!define MUI_ABORTWARNING
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES 
Red Wine#
@ Anjali

Take a look on this,