;Copyright (C) 2004-2026 John T. Haller of PortableApps.com ;Website: http://PortableApps.com/go/LibreOfficePortable ;This software is OSI Certified Open Source Software. ;OSI Certified is a certification mark of the Open Source Initiative. ;This program is free software; you can redistribute it and/or ;modify it under the terms of the GNU General Public License ;as published by the Free Software Foundation; either version 2 ;of the License, or (at your option) any later version. ;This program is distributed in the hope that it will be useful, ;but WITHOUT ANY WARRANTY; without even the implied warranty of ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;GNU General Public License for more details. ;You should have received a copy of the GNU General Public License ;along with this program; if not, write to the Free Software ;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. !define APPID "LibreOfficePortable" !define NAME "LibreOfficeDrawPortable" !define FRIENDLYNAME "LibreOffice Draw Portable" !define APP "LibreOfficeDraw" !define VER "3.1.0.0" !define WEBSITE "PortableApps.com/LibreOfficePortable" !define SUBAPP "draw" ;=== Program Details Name "${FRIENDLYNAME}" OutFile "..\..\${NAME}.exe" Caption "${FRIENDLYNAME} | PortableApps.com" VIProductVersion "${VER}" VIAddVersionKey ProductName "${FRIENDLYNAME}" VIAddVersionKey Comments "Allows ${APP} to be run from a removable drive. For additional details, visit ${WEBSITE}" VIAddVersionKey CompanyName "PortableApps.com" VIAddVersionKey LegalCopyright "John T. Haller" VIAddVersionKey FileDescription "${FRIENDLYNAME}" VIAddVersionKey FileVersion "${VER}" VIAddVersionKey ProductVersion "${VER}" VIAddVersionKey InternalName "${FRIENDLYNAME}" VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC." VIAddVersionKey OriginalFilename "${NAME}.exe" ;VIAddVersionKey PrivateBuild "" ;VIAddVersionKey SpecialBuild "" ;=== Runtime Switches CRCCheck On WindowIcon Off SilentInstall Silent AutoCloseWindow True RequestExecutionLevel user Unicode true ManifestDPIAware true ; Best Compression SetCompress Auto SetCompressor /SOLID lzma SetCompressorDictSize 32 SetDatablockOptimize On ;=== Include ;(Standard NSIS) !include FileFunc.nsh !insertmacro GetParameters !include LogicLib.nsh ;=== Program Icon Icon "..\..\App\AppInfo\appicon3.ico" Var strExec Section "Main" ${If} ${FileExists} "$EXEDIR\${APPID}.exe" StrCpy $strExec "$EXEDIR\${APPID}.exe" ${ElseIf} ${FileExists} "$EXEDIR\${APPID}Previous.exe" StrCpy $strExec "$EXEDIR\${APPID}Previous.exe" ${ElseIf} ${FileExists} "$EXEDIR\${APPID}LegacyWin7.exe" StrCpy $strExec "$EXEDIR\${APPID}LegacyWin7.exe" ${EndIf} SetOutPath $EXEDIR ;=== Get any passed parameters ${GetParameters} $0 ${If} $0 == "" StrCpy $strExec `$strExec -${SUBAPP}` ${Else} StrCpy $strExec `$strExec $0` ${EndIf} Exec $strExec SectionEnd