Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 18th March 2017, 17:08   #1
Coby
Banned
 
Join Date: Feb 2016
Posts: 40
ISSkinEx is an easy to use plugin on NSIS installer and Setup Innno

ISSkinEx is an easy to use plugin on NSIS installer and Setup Innno

PHP Code:
;=== Program Details ====

Name "ISSkinEx"
OutFile "ISSkinEx.exe"
InstallDir "$PROGRAMFILES\NSIS"
Caption "ISSkinEx"

;=== Runtime Switches ====

RequestExecutionLevel Admin
ShowInstDetails hide
ShowInstDetails nevershow
ShowUninstDetails NeverShow
XPStyle off

;=== Best Compression ====

SetCompress Auto
SetCompressor 
/SOLID lzma
SetCompressorDictSize 32
SetDatablockOptimize On

;=== Include ====

!include 
"MUI2.nsh"
!include "LogicLib.nsh"
!Include "WinMessages.nsh"
!include "WordFunc.nsh"
!include "FileFunc.nsh"

;=== Icon Stye ===

BrandingText " "

; === Program Icon ===

!
define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install-nsis.ico"

;=== Pages ===

!
define MUI_CUSTOMFUNCTION_GUIINIT onGUIInit
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

; === Languages ===

!
insertmacro MUI_LANGUAGE English
!insertmacro MUI_LANGUAGE Arabic
!insertmacro MUI_LANGUAGE Bulgarian
!insertmacro MUI_LANGUAGE Croatian
!insertmacro MUI_LANGUAGE Dutch
!insertmacro MUI_LANGUAGE French
!insertmacro MUI_LANGUAGE German
!insertmacro MUI_LANGUAGE Greek
!insertmacro MUI_LANGUAGE Hebrew
!insertmacro MUI_LANGUAGE Indonesian
!insertmacro MUI_LANGUAGE Italian
!insertmacro MUI_LANGUAGE Japanese
!insertmacro MUI_LANGUAGE Korean
!insertmacro MUI_LANGUAGE Lithuanian
!insertmacro MUI_LANGUAGE Macedonian
!insertmacro MUI_LANGUAGE Norwegian
!insertmacro MUI_LANGUAGE Polish
!insertmacro MUI_LANGUAGE Portuguese
!insertmacro MUI_LANGUAGE Romanian
!insertmacro MUI_LANGUAGE Russian
!insertmacro MUI_LANGUAGE SimpChinese
!insertmacro MUI_LANGUAGE Slovenian
!insertmacro MUI_LANGUAGE Spanish
!insertmacro MUI_LANGUAGE Swedish
!insertmacro MUI_LANGUAGE TradChinese
!insertmacro MUI_LANGUAGE Turkish
!insertmacro MUI_LANGUAGE Ukrainian

; === Init ===

Function .
onInit
  
!insertmacro MUI_LANGDLL_DISPLAY
  InitPluginsDir
  SetOverwrite 
try
  
AllowSkipFiles off
  File 
"/oname=$PLUGINSDIR\AquaG.cjstyles" "Styles\AquaG.cjstyles"
FunctionEnd

; === Gui ===

Function 
onGUIInit
  ISSkinEx
::nsLoadSkin /NOUNLOAD "$PLUGINSDIR\AquaG.cjstyles" ""
FunctionEnd

; === Section ===

Section "MAIN" SEC01
  Setoutpath 
"$INSTDIR\Contrib\ISSkinEx\Styles"
      
File //x thumbs.db "Styles\*.*"

  
Setoutpath "$INSTDIR\Contrib\ISSkinEx"
      
File //x thumbs.db "*.nsi"
      
File //x thumbs.db "ISSkinViewer.exe"

  
Setoutpath "$INSTDIR\Plugins"
      
File //x thumbs.db "ISSkinEx.dll"
      
File //x thumbs.db "ISSkinExU.dll"

  
Sleep 500
  Sleep 500
  SetAutoClose true 
SectionEnd 

; === End ===

Function .
onGUIEnd
  ISSkinEx
::nsUnloadSkin
FunctionEnd 
Attached Files
File Type: 7z ISSkinEx.7z (1.32 MB, 31 views)
Coby is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump