View Single Post
Old 16th August 2018, 03:41   #1
scarleton
Junior Member
 
Join Date: Jan 2018
Posts: 5
Question Understanding the MUI Settings

As I posted a few days ago, I am migrating from .Net 3.5 to 4.7.1 and trying to tweak the install which normally requires little attention on my part.

Thanks to folks in this form I did discover that the NSISDotNetChecker is working correctly. The only problem is on Windows 10 it isn't working exactly to my liking and on Windows 7 there is no visual that it is downloading and installing.

The reason I don't think there is a visual is because I am using the MUI, which if memory serves is the newer UI. Right now I have the NSISDotNetChecker running in the .onInit. I tried moving it later in the process, but then the UI simply did the "not responding".

I am wondering if anyone as any tips for how to get some type of UI so the user knows what is going on. Here is the beginning of my script:
code:
; -------------------------------
; Start
!define PRODUCT_NAME "App Name"
!define PRODUCT_VERSION "app version"
!define PRODUCT_PUBLISHER "Company Name"
!define PRODUCT_WEB_SITE "http://www.AppName.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\AppName.exe"
!define PRODUCT2_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\KioskViewingStation.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
;!define QTDIR ${QTDIR}

!define SHORT_APP_NAME "App Name - Grand Marshal"
!define SUPPORT_EMAIL "scarleton@miltonstreet.com"

!define GM_SHORTCUT_NAME "App Name GM v${PRODUCT_VERSION}"

!define /date NOW "%m:%d:%Y"

SetCompressor /SOLID LZMA
;--------------------------------
;General

Name "${PRODUCT_NAME} v${PRODUCT_VERSION}"
OutFile "AppNameSetup_${PRODUCT_VERSION}.exe"
InstallDir "$PROGRAMFILES\Company Name\${PRODUCT_NAME}"
ShowInstDetails nevershow
ShowUnInstDetails nevershow

!include "LogicLib.nsh"
!include "RegDlg\RegDlg2.nsh"
!include "RegDlg\x64.nsh"
!include "RegDlg\DotNetChecker.nsh"

; MUI 1.67 compatible ------
!include "MUI.nsh"

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"

Function .onInit
!insertmacro CheckNetFramework 471
FunctionEnd

;--------------------------------
;Modern UI Configuration
!insertmacro MUI_PAGE_WELCOME
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "..\licence\Licence.txt"
!insertmacro MUI_PAGE_DIRECTORY

Page custom ppRegPageShow ppRegPageValidate

!insertmacro MUI_PAGE_INSTFILES
#!define MUI_FINISHPAGE_RUN "$INSTDIR\AppName.exe"
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "English"

; MUI end ------
LangString REGFORM_TITLE ${LANG_ENGLISH} "Registration."
LangString REGFORM_SUBTITLE ${LANG_ENGLISH} "Enter your Unlock Key."

VIProductVersion "${PRODUCT_VERSION}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "App Name"
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright © 2007 - 2018, Company Name"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Setup program for ${PRODUCT_NAME}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "v${PRODUCT_VERSION}"

Section "MainSection" SEC01

scarleton is offline   Reply With Quote