diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-22 13:53:45 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-22 13:53:45 +0000 |
commit | caf7c2d9bbb52f72bdca0ee6775bd02f42b5c5fd (patch) | |
tree | 82e1c01963d36c79277ad0f75d09b34aab48f45e /setup_native/source/win32/nsis | |
parent | 5a2cb76d25e8f4ec3fb4e1a61fe8415f939d005f (diff) |
INTEGRATION: CWS mh1990 (1.1.2); FILE ADDED
2005/04/06 14:57:36 mh 1.1.2.1: add: NSIS, #i4729#
Diffstat (limited to 'setup_native/source/win32/nsis')
-rw-r--r-- | setup_native/source/win32/nsis/downloadtemplate.nsi | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/setup_native/source/win32/nsis/downloadtemplate.nsi b/setup_native/source/win32/nsis/downloadtemplate.nsi new file mode 100644 index 000000000..8cbc39e87 --- /dev/null +++ b/setup_native/source/win32/nsis/downloadtemplate.nsi @@ -0,0 +1,90 @@ +!define PRODUCT_NAME "PRODUCTNAMEPLACEHOLDER" +!define PRODUCT_VERSION "PRODUCTVERSIONPLACEHOLDER" +!define PRODUCT_PUBLISHER "PUBLISHERPLACEHOLDER" +!define PRODUCT_WEB_SITE "WEBSITEPLACEHOLDER" + +; SetCompressor lzma +SetCompressor zlib + +; MUI 1.67 compatible ------ +!include "MUI.nsh" + +Function .onInit +IfSilent onInitSilent onInitNoSilent + +onInitSilent: + StrCpy $INSTDIR "$TEMP\PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER Installation Files" +GoTo onInitDone + +onInitNoSilent: + StrCpy $INSTDIR "$DESKTOP\PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER Installation Files" +GoTo onInitDone + +onInitDone: + +FunctionEnd + +; MUI Settings +!define MUI_HEADERIMAGE +!define MUI_HEADERIMAGE_RIGHT +!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH +!define MUI_HEADERIMAGE_BITMAP BANNERBMPPLACEHOLDER +!define MUI_WELCOMEFINISHPAGE_BITMAP WELCOMEBMPPLACEHOLDER +!define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH +!define MUI_ABORTWARNING +!define MUI_ICON "SETUPICOPLACEHOLDER" + +; Welcome page +!insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +!macro MUI_LANGUAGE_PACK LANGUAGE + !verbose push + !verbose ${MUI_VERBOSE} + !include "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nsh" + !verbose pop +!macroend + +!macro MUI_LANGUAGEFILE_PACK_BEGIN LANGUAGE + !ifndef MUI_INSERT + !define MUI_INSERT + !insertmacro MUI_INSERT + !endif + LoadLanguageFile "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nlf" +!macroend + +; Language files +ALLLANGUAGESPLACEHOLDER + +; Reserve files +;!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS + +; MUI end ------ + +Name "PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER" +OutFile "OUTPUTDIRPLACEHOLDER\DOWNLOADNAMEPLACEHOLDER" +; InstallDir "$DESKTOP\PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER Installation Files" +; ShowInstDetails show + +Section "MainSection" SEC01 +ALLFILESPLACEHOLDER +SectionEnd + +Section -Post + +IfSilent onPostSilent onPostNoSilent + +onPostSilent: + ExecWait "$INSTDIR\setup.exe -lang $LANGUAGE /qr -ignore_running" + RMDir /r $INSTDIR + RMDir $INSTDIR +GoTo onPostDone + +onPostNoSilent: + Exec "$INSTDIR\setup.exe -lang $LANGUAGE" +GoTo onPostDone + +onPostDone: + +SectionEnd |