<commit_before>;NSIS Modern User Interface
;Start Menu Folder Selection Example Script
;Written by <NAME>

;--------------------------------
;Include Modern UI

  !include "MUI2.nsh"

;--------------------------------
;General

  ;Name and file
  Name "IlastikGUI 3D"
  OutFile "ilastikGUI-0.39_setup.exe"

  ;Default installation folder
  InstallDir "$PROGRAMFILES\IlastikGUI3D"
  
  ;Get installation folder from registry if available
  InstallDirRegKey HKCU "Software\IlastikGUI3D" ""

  ;Request application privileges for Windows Vista
  RequestExecutionLevel user

;--------------------------------
;Variables

  Var StartMenuFolder

;--------------------------------
;Interface Settings

  !define MUI_ABORTWARNING

;--------------------------------
;Pages

  !insertmacro MUI_PAGE_COMPONENTS
  !insertmacro MUI_PAGE_DIRECTORY
  
  ;Start Menu Folder Page Configuration
  !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" 
  !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\IlastikGUI3D" 
  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
  
  !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
  
  !insertmacro MUI_PAGE_INSTFILES
  
  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages
 
  !insertmacro MUI_LANGUAGE "English"

;--------------------------------
;Installer Sections

Section "Ilastik" SecDummy

  SectionIn RO
  SetOutPath "$INSTDIR"
  
  FILE /r *
  
  ;Store installation folder
  WriteRegStr HKCU "Software\IlastikGUI3D" "" $INSTDIR
  
  ;Create uninstaller
  WriteUninstaller "$INSTDIR\Uninstall.exe"
  
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
    
    ;Create shortcuts
    CreateDirectory "$SMPROGRAMS\$StartMenuFolder"

    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\IlastikGUI3D.lnk" "$INSTDIR\ilastikMain.exe"  
    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
  
  !insertmacro MUI_STARTMENU_WRITE_END

SectionEnd

Section "Demo Files" SecDemo

  SetOutPath "$INSTDIR"
  
  FILE ..\..\..\..\gui\demo\a_wood.jpg
  FILE ..\..\..\..\gui\demo\b_animal1.jpg
  FILE ..\..\..\..\gui\demo\c_cells_1.png
  FILE ..\..\..\..\gui\demo\c_cells_2.png
  FILE ..\..\..\..\gui\demo\c_cells_3.png
  FILE ..\..\..\..\gui\demo\d_gewebe_1.png
  FILE ..\..\..\..\gui\demo\e_letter.png
  FILE ..\..\..\..\gui\demo\f_animal1_gray.jpg
  FILE ..\..\..\..\gui\demo\3d_example_1.h5
  FILE ..\..\..\..\gui\demo\3d_example_2.h5
  FILE ..\..\..\..\gui\demo\ms_example_1.h5
  FILE ..\..\..\..\gui\demo\2d_cells_apoptotic.png
  FILE ..\..\..\..\gui\demo\2d_cells_apoptotic_small.png
  FILE ..\..\..\..\gui\demo\2d_cells_firstType.png
  FILE ..\..\..\..\gui\demo\2d_cells_mixed.png
  FILE ..\..\..\..\gui\demo\2d_cells_secondType.png
  FILE ..\..\..\..\gui\demo\2d_cells_twoTypes.png
  FILE ..\..\..\..\gui\demo\2d_texture.png
  FILE ..\..\..\..\gui\demo\CoventryCathedral.png
  

  
SectionEnd



;--------------------------------
;Descriptions

  ;Language strings
  LangString DESC_SecDummy ${LANG_ENGLISH} "Ilastik binaries (required)"

  ;Assign language strings to sections
  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
    !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
    !insertmacro MUI_DESCRIPTION_TEXT ${SecDemo} "Demo Files"
  !insertmacro MUI_FUNCTION_DESCRIPTION_END
 
;--------------------------------
;Uninstaller Section

Section "Uninstall"

  ;ADD YOUR OWN FILES HERE...
<commit_msg>installer script new h4 files<commit_after>;NSIS Modern User Interface
;Start Menu Folder Selection Example Script
;Written by <NAME>

;--------------------------------
;Include Modern UI

  !include "MUI2.nsh"

;--------------------------------
;General

  ;Name and file
  Name "IlastikGUI 3D"
  OutFile "ilastikGUI-0.39_setup.exe"

  ;Default installation folder
  InstallDir "$PROGRAMFILES\IlastikGUI3D"
  
  ;Get installation folder from registry if available
  InstallDirRegKey HKCU "Software\IlastikGUI3D" ""

  ;Request application privileges for Windows Vista
  RequestExecutionLevel user

;--------------------------------
;Variables

  Var StartMenuFolder

;--------------------------------
;Interface Settings

  !define MUI_ABORTWARNING

;--------------------------------
;Pages

  !insertmacro MUI_PAGE_COMPONENTS
  !insertmacro MUI_PAGE_DIRECTORY
  
  ;Start Menu Folder Page Configuration
  !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" 
  !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\IlastikGUI3D" 
  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
  
  !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
  
  !insertmacro MUI_PAGE_INSTFILES
  
  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages
 
  !insertmacro MUI_LANGUAGE "English"

;--------------------------------
;Installer Sections

Section "Ilastik" SecDummy

  SectionIn RO
  SetOutPath "$INSTDIR"
  
  FILE /r *
  
  ;Store installation folder
  WriteRegStr HKCU "Software\IlastikGUI3D" "" $INSTDIR
  
  ;Create uninstaller
  WriteUninstaller "$INSTDIR\Uninstall.exe"
  
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
    
    ;Create shortcuts
    CreateDirectory "$SMPROGRAMS\$StartMenuFolder"

    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\IlastikGUI3D.lnk" "$INSTDIR\ilastikMain.exe"  
    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
  
  !insertmacro MUI_STARTMENU_WRITE_END

SectionEnd

Section "Demo Files" SecDemo

  SetOutPath "$INSTDIR"
  
  FILE ..\..\..\..\gui\demo\a_wood.jpg
  FILE ..\..\..\..\gui\demo\b_animal1.jpg
  FILE ..\..\..\..\gui\demo\c_cells_1.png
  FILE ..\..\..\..\gui\demo\c_cells_2.png
  FILE ..\..\..\..\gui\demo\c_cells_3.png
  FILE ..\..\..\..\gui\demo\d_gewebe_1.png
  FILE ..\..\..\..\gui\demo\e_letter.png
  FILE ..\..\..\..\gui\demo\f_animal1_gray.jpg
  FILE ..\..\..\..\gui\demo\3d_example_1.h5
  FILE ..\..\..\..\gui\demo\3d_example_2.h5
  FILE ..\..\..\..\gui\demo\ms_example_1.h5
  FILE ..\..\..\..\gui\demo\2d_cells_apoptotic.png
  FILE ..\..\..\..\gui\demo\2d_cells_apoptotic_small.png
  FILE ..\..\..\..\gui\demo\2d_cells_firstType.png
  FILE ..\..\..\..\gui\demo\2d_cells_mixed.png
  FILE ..\..\..\..\gui\demo\2d_cells_secondType.png
  FILE ..\..\..\..\gui\demo\2d_cells_twoTypes.png
  FILE ..\..\..\..\gui\demo\2d_texture.png
  FILE ..\..\..\..\gui\demo\CoventryCathedral.png
  FILE ..\..\..\..\gui\demo\calyx.h5
  FILE ..\..\..\..\gui\demo\neuro1.h5
  

  
SectionEnd



;--------------------------------
;Descriptions

  ;Language strings
  LangString DESC_SecDummy ${LANG_ENGLISH} "Ilastik binaries (required)"

  ;Assign language strings to sections
  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
    !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
    !insertmacro MUI_DESCRIPTION_TEXT ${SecDemo} "Demo Files"
  !insertmacro MUI_FUNCTION_DESCRIPTION_END
 
;--------------------------------
;Uninstaller Section

Section "Uninstall"

  ;ADD YOUR OWN FILES HERE...

{'fraction_non_alphanumeric': 0.21297220242337847, 'fraction_numerical': 0.009408410548823949, 'mean_word_length': 2.3016470588235296, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2534280', 'n_tokens_mistral': 2689, 'n_tokens_neox': 2325, 'n_words': 430}