diff options
author | Norbert Preining <preining@logic.at> | 2008-10-09 00:31:39 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-10-09 00:31:39 +0000 |
commit | 1b93a8074d5c6733926884ad77e8d0de3a5d177c (patch) | |
tree | 5b0bb4af1e89894819fa42fab50dec561c23d2a0 /Master/tlpkg/etc | |
parent | 9fc5c038d0dfb584115673df7ac846de06b7a121 (diff) |
add nsis texlive updater
git-svn-id: svn://tug.org/texlive/trunk@10894 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/etc')
-rw-r--r-- | Master/tlpkg/etc/nsis/texlive-installer.nsi | 36 | ||||
-rw-r--r-- | Master/tlpkg/etc/nsis/updater.nsi | 19 |
2 files changed, 55 insertions, 0 deletions
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 |