  @MkDir("@WinDrive:\\Program Files\\ssce\\runtime\\lex")

  @DefineDisk
    @If(@InstallFromHard)
      @Label="HardDisk"
    @Else
      @Label="Disk 2"
    @Endif
    @BeginLib HJPAD.RED
      @File HJPad.exe    @Out "@OutDrive:\\@TempDir\\HJPad.exe"
      @File Hjpad.hlp    @Out "@OutDrive:\\@TempDir\\Hjpad.hlp"
      @File hjpad.cnt    @Out "@OutDrive:\\@TempDir\\hjpad.cnt"
      @File ssce5232.dll @Out "@WinDrive:\\@WinDir\\ssce5232.dl0"
      @File accent.tlx   @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\accent.tlx"
      @File correct.tlx  @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\correct.tlx"
      @File Html.tlx     @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\Html.tlx"
      @File Ssceam.tlx   @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\Ssceam.tlx"
      @File ssceam2.clx  @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\ssceam2.clx"
      @File Sscebr.tlx   @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\Sscebr.tlx"
      @File sscebr2.clx  @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\sscebr2.clx"
      @File userdic.tlx  @Out "@WinDrive:\\Program Files\\ssce\\runtime\\lex\\userdic.tlx"
    @EndLib
  @EndDisk

  @WriteRegistryKey(@HKeyLocalMachine,"SOFTWARE\\Wintertree\\SSCE",
		"HelpFile","@WinDrive:\\Program Files\\ssce\\runtime\\ssce.hlp")

  @WriteRegistryKey(@HKeyLocalMachine,"SOFTWARE\\Wintertree\\SSCE",
		"MainLexFiles","ssceam.tlx,ssceam2.clx")

  @WriteRegistryKey(@HKeyLocalMachine,"SOFTWARE\\Wintertree\\SSCE",
		"MainLexPath","@WinDrive:\\Program Files\\ssce\\runtime\\lex")

  @If (@Exists("@WinDrive:\\@WinDir\\ssce5232.dll"))
    @If (@CheckFile("@WinDrive:\\@WinDir\\ssce5232.dll" ,"5.7.57.0") == @False)
      @RenameOnReboot("@WinDrive:\\@WinDir\\ssce5232.dl0", "@WinDrive:\\@WinDir\\ssce5232.dll")
      @SetDllUsageState( "@WinDrive:\\@WinDir\\SSCE5232.dll", @True )
    @Endif
  @Else
      @Rename("@WinDrive:\\@WinDir\\ssce5232.dl0", "@WinDrive:\\@WinDir\\ssce5232.dll")
      @SetDllUsageState( "@WinDrive:\\@WinDir\\SSCE5232.DLL", @True )
  @Endif


