LibreOfficePortableImpressU.nsi 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ;Copyright (C) 2004-2017 John T. Haller of PortableApps.com
  2. ;Website: http://PortableApps.com/go/LibreOfficePortable
  3. ;This software is OSI Certified Open Source Software.
  4. ;OSI Certified is a certification mark of the Open Source Initiative.
  5. ;This program is free software; you can redistribute it and/or
  6. ;modify it under the terms of the GNU General Public License
  7. ;as published by the Free Software Foundation; either version 2
  8. ;of the License, or (at your option) any later version.
  9. ;This program is distributed in the hope that it will be useful,
  10. ;but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;GNU General Public License for more details.
  13. ;You should have received a copy of the GNU General Public License
  14. ;along with this program; if not, write to the Free Software
  15. ;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16. !define NAME "LibreOfficeImpressPortable"
  17. !define FRIENDLYNAME "LibreOffice Impress Portable"
  18. !define APP "LibrenOfficeImpress"
  19. !define VER "2.0.0.0"
  20. !define WEBSITE "PortableApps.com/LibreOfficePortable"
  21. !define EXECTHIS "LibreOfficePortable.exe -impress"
  22. ;=== Program Details
  23. Name "${FRIENDLYNAME}"
  24. OutFile "..\..\${NAME}.exe"
  25. Caption "${FRIENDLYNAME} | PortableApps.com"
  26. VIProductVersion "${VER}"
  27. VIAddVersionKey ProductName "${FRIENDLYNAME}"
  28. VIAddVersionKey Comments "Allows ${APP} to be run from a removable drive. For additional details, visit ${WEBSITE}"
  29. VIAddVersionKey CompanyName "PortableApps.com"
  30. VIAddVersionKey LegalCopyright "John T. Haller"
  31. VIAddVersionKey FileDescription "${FRIENDLYNAME}"
  32. VIAddVersionKey FileVersion "${VER}"
  33. VIAddVersionKey ProductVersion "${VER}"
  34. VIAddVersionKey InternalName "${FRIENDLYNAME}"
  35. VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
  36. VIAddVersionKey OriginalFilename "${NAME}.exe"
  37. ;VIAddVersionKey PrivateBuild ""
  38. ;VIAddVersionKey SpecialBuild ""
  39. ;=== Runtime Switches
  40. CRCCheck On
  41. WindowIcon Off
  42. SilentInstall Silent
  43. AutoCloseWindow True
  44. RequestExecutionLevel user
  45. Unicode true
  46. ManifestDPIAware true
  47. ; Best Compression
  48. SetCompress Auto
  49. SetCompressor /SOLID lzma
  50. SetCompressorDictSize 32
  51. SetDatablockOptimize On
  52. ;=== Include
  53. ;(Standard NSIS)
  54. !include FileFunc.nsh
  55. !insertmacro GetParameters
  56. ;=== Program Icon
  57. Icon "..\..\App\AppInfo\appicon4.ico"
  58. Var EXECSTRING
  59. Section "Main"
  60. StrCpy $EXECSTRING "${EXECTHIS}"
  61. ;=== Get any passed parameters
  62. SetOutPath $EXEDIR
  63. ${GetParameters} $0
  64. StrCmp "'$0'" "''" "" LaunchProgramParameters
  65. ;=== No parameters
  66. StrCpy $EXECSTRING `${EXECTHIS}`
  67. Goto LaunchNow
  68. LaunchProgramParameters:
  69. StrCpy $EXECSTRING `${EXECTHIS} $0`
  70. LaunchNow:
  71. Exec $EXECSTRING
  72. SectionEnd