home *** CD-ROM | disk | FTP | other *** search
/ Freelog 100 / FreelogNo100-NovembreDecembre2010.iso / GestionFichiers / Toucan / Toucan_3.0.2.paf.exe / Other / Source / ToucanLauncher.nsi < prev   
Text File  |  2010-06-30  |  2KB  |  73 lines

  1. ;Copyright (C) 2004-2008 John T. Haller
  2.  
  3. ;Website: http://PortableApps.com/Toucan
  4.  
  5. ;This software is OSI Certified Open Source Software.
  6. ;OSI Certified is a certification mark of the Open Source Initiative.
  7.  
  8. ;This program is free software; you can redistribute it and/or
  9. ;modify it under the terms of the GNU General Public License
  10. ;as published by the Free Software Foundation; either version 2
  11. ;of the License, or (at your option) any later version.
  12.  
  13. ;This program is distributed in the hope that it will be useful,
  14. ;but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. ;GNU General Public License for more details.
  17.  
  18. ;You should have received a copy of the GNU General Public License
  19. ;along with this program; if not, write to the Free Software
  20. ;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  21.  
  22. !define NAME "Toucan"
  23. !define FRIENDLYNAME "Toucan"
  24. !define APP "Toucan"
  25. !define VER "3.0.2.0"
  26. !define WEBSITE "PortableApps.com/Toucan"
  27.  
  28. ;=== Program Details
  29. Name "${NAME}"
  30. OutFile "..\..\${NAME}.exe"
  31. Caption "${FRIENDLYNAME} | PortableApps.com"
  32. Icon "..\..\App\AppInfo\appicon.ico"
  33. VIProductVersion "${VER}"
  34. VIAddVersionKey ProductName "${FRIENDLYNAME}"
  35. VIAddVersionKey CompanyName "PortableApps.com"
  36. VIAddVersionKey LegalCopyright "Steven Lamerton"
  37. VIAddVersionKey FileDescription "${FRIENDLYNAME}"
  38. VIAddVersionKey FileVersion "${VER}"
  39. VIAddVersionKey ProductVersion "${VER}"
  40. VIAddVersionKey InternalName "${FRIENDLYNAME}"
  41. VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
  42. VIAddVersionKey OriginalFilename "${NAME}.exe"
  43. ;VIAddVersionKey PrivateBuild ""
  44. ;VIAddVersionKey SpecialBuild ""
  45.  
  46. ;=== Include
  47. ;(Standard NSIS)
  48. !include TextFunc.nsh
  49. !insertmacro GetParameters
  50.  
  51. ;=== Runtime Switches
  52. CRCCheck On
  53. WindowIcon Off
  54. SilentInstall Silent
  55. AutoCloseWindow True
  56. RequestExecutionLevel user
  57.  
  58. Section "Main"
  59.     ${GetParameters} $0
  60.     StrCmp $0 "" LaunchWithoutParameters LaunchWithParameters
  61.     
  62.     LaunchWithoutParameters:
  63.         SetOutPath $EXEDIR\App\toucan
  64.         ExecShell "open" "$EXEDIR\App\toucan\Toucan.exe" "" SW_HIDE
  65.         Goto TheEnd
  66.  
  67.     LaunchWithParameters:
  68.         SetOutPath $EXEDIR
  69.         ExecShell "open" "$EXEDIR\App\toucan\Toucan.exe" "$0"
  70.  
  71.     TheEnd:
  72. SectionEnd
  73.