From 1b93a8074d5c6733926884ad77e8d0de3a5d177c Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 9 Oct 2008 00:31:39 +0000 Subject: add nsis texlive updater git-svn-id: svn://tug.org/texlive/trunk@10894 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/etc/nsis/texlive-installer.nsi | 36 +++++++++++++++++++++++++++++ Master/tlpkg/etc/nsis/updater.nsi | 19 +++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 Master/tlpkg/etc/nsis/texlive-installer.nsi create mode 100644 Master/tlpkg/etc/nsis/updater.nsi (limited to 'Master/tlpkg/etc') diff --git a/Master/tlpkg/etc/nsis/texlive-installer.nsi b/Master/tlpkg/etc/nsis/texlive-installer.nsi new file mode 100644 index 00000000000..923245fb9e1 --- /dev/null +++ b/Master/tlpkg/etc/nsis/texlive-installer.nsi @@ -0,0 +1,36 @@ +!include "FileFunc.nsh" +!insertmacro GetParent + +!define REV "rev10888" + +Page directory +Page instfiles + +Name "TeX Live Update ${REV}" +OutFile "update-texlive-${REV}.exe" +InstallDir "$PROGRAMFILES\texlive\2008" + +DirText "Setup will update your TeX Live installation in the following folder. \ + To install in a different folder, click Browse and select another folder. \ + Click Install to start the update." + +Function .onInit + SearchPath $0 tlmgr.bat + ${GetParent} $0 $1 + ${GetParent} $1 $0 + ${GetParent} $0 $1 + ;MessageBox MB_OK "tlmgr=$1" + StrCpy $INSTDIR $1 + ;SetOutPath $1 +FunctionEnd + +Function .onVerifyInstDir + IfFileExists $INSTDIR\tlpkg\texlive.tlpdb PathGood + Abort + PathGood: +FunctionEnd + +Section "MainGroup" + SetOutPath "$INSTDIR" + File /r tlupdates\*.* +SectionEnd diff --git a/Master/tlpkg/etc/nsis/updater.nsi b/Master/tlpkg/etc/nsis/updater.nsi new file mode 100644 index 00000000000..16efa8f381c --- /dev/null +++ b/Master/tlpkg/etc/nsis/updater.nsi @@ -0,0 +1,19 @@ +# set the name of the installer +outfile "hello world.exe" + +Function .onInit + MessageBox MB_YESNO "This will update your TeX Live installation. Do you wish to continue?" IDYES gogogo + Abort + gogogo: +FunctionEnd + + +# create a default section. +section + +# create a popup box, with an OK button and the text "Hello world!" +messageBox MB_OK "Hello world!" + +#untgz::extract "-d" "$INSTDIR\temp" "$TEMP\${DICT_FILENAME}" + +sectionEnd -- cgit v1.2.3