# Script generated by the HM NIS Edit Script Wizard.
# HM NIS Edit Wizard helper defines
!define PRODUCT_GROUP "Fiber Mountain"
!define PRODUCT_NAME "Aos"
!define PRODUCT_VERSION "VERSIONSTRING"
!define PRODUCT_PUBLISHER "Fiber Mountain Inc."
!define PRODUCT_WEB_SITE "http://www.fibermountain.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\${PRODUCT_GROUP}\${PRODUCT_NAME}"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_GROUP}\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define STARTMENUBASE "${PRODUCT_GROUP}\${PRODUCT_NAME}"
Var Desktopshortcut
Var Quicklaunchshortcut
#Var dsktopState
# MUI 1.67 compatible ------
!include "InstallOptions.nsh"
!include "MUI2.nsh"
!include "x64.nsh"
#installer attribute, remove version string
BrandingText " "
# MUI Settings ------
!define MUI_ABORTWARNING
# set logos
!define MUI_ICON "assets\logo.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
# set default section description empty
!define MUI_INNERTEXT_COMPONENTS_DESCRIPTION_INFO " "
# finish run link settings, This define value does not make any different but the define needs to be there for the page to show.
!define MUI_FINISHPAGE_RUN "Blah"
# set welcome page picture, commended size: 164x314 pixels
!define MUI_WELCOMEFINISHPAGE_BITMAP "assets\datacenter.bmp"
#Set intallment pages
# Welcome page
!insertmacro MUI_PAGE_WELCOME
# License page
#!define MUI_LICENSEPAGE_CHECKBOX
#!insertmacro MUI_PAGE_LICENSE "Install\license.rtf"
# Check whether componenets have been selected
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE MustChooseComponents
# Components page
!insertmacro MUI_PAGE_COMPONENTS
# Directory page
Page Directory "" "" DirLeave
# Instfiles page
Page InstFiles
# Shortcut page, this is custom page
Page custom SetShortcut
# This is for the option to launch the application at the end of the installation.
#!define MUI_FINISHPAGE_RUN_TEXT "Add shortcut to Start Menu"
!define MUI_FINISHPAGE_RUN_FUNCTION "RunApp"
!insertmacro MUI_PAGE_FINISH
# Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
# Language files
!insertmacro MUI_LANGUAGE "English"
# MUI end ------
!macro VerifyUserIsAdmin
UserInfo::GetAccountType
pop $0
${If} $0 != "admin" ;Require admin rights on NT4+
messageBox mb_iconstop "Administrator rights required!"
setErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
quit
${EndIf}
!macroend
# spe
# HM NIS Edit Wizard helper defines
!define PRODUCT_GROUP "Fiber Mountain"
!define PRODUCT_NAME "Aos"
!define PRODUCT_VERSION "VERSIONSTRING"
!define PRODUCT_PUBLISHER "Fiber Mountain Inc."
!define PRODUCT_WEB_SITE "http://www.fibermountain.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\${PRODUCT_GROUP}\${PRODUCT_NAME}"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_GROUP}\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define STARTMENUBASE "${PRODUCT_GROUP}\${PRODUCT_NAME}"
Var Desktopshortcut
Var Quicklaunchshortcut
#Var dsktopState
# MUI 1.67 compatible ------
!include "InstallOptions.nsh"
!include "MUI2.nsh"
!include "x64.nsh"
#installer attribute, remove version string
BrandingText " "
# MUI Settings ------
!define MUI_ABORTWARNING
# set logos
!define MUI_ICON "assets\logo.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
# set default section description empty
!define MUI_INNERTEXT_COMPONENTS_DESCRIPTION_INFO " "
# finish run link settings, This define value does not make any different but the define needs to be there for the page to show.
!define MUI_FINISHPAGE_RUN "Blah"
# set welcome page picture, commended size: 164x314 pixels
!define MUI_WELCOMEFINISHPAGE_BITMAP "assets\datacenter.bmp"
#Set intallment pages
# Welcome page
!insertmacro MUI_PAGE_WELCOME
# License page
#!define MUI_LICENSEPAGE_CHECKBOX
#!insertmacro MUI_PAGE_LICENSE "Install\license.rtf"
# Check whether componenets have been selected
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE MustChooseComponents
# Components page
!insertmacro MUI_PAGE_COMPONENTS
# Directory page
Page Directory "" "" DirLeave
# Instfiles page
Page InstFiles
# Shortcut page, this is custom page
Page custom SetShortcut
# This is for the option to launch the application at the end of the installation.
#!define MUI_FINISHPAGE_RUN_TEXT "Add shortcut to Start Menu"
!define MUI_FINISHPAGE_RUN_FUNCTION "RunApp"
!insertmacro MUI_PAGE_FINISH
# Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
# Language files
!insertmacro MUI_LANGUAGE "English"
# MUI end ------
!macro VerifyUserIsAdmin
UserInfo::GetAccountType
pop $0
${If} $0 != "admin" ;Require admin rights on NT4+
messageBox mb_iconstop "Administrator rights required!"
setErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
quit
${EndIf}
!macroend
# spe