Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2011
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Copyright (C) 2004-2010 John T. Haller of PortableApps.com
  2.  
  3. ;Website: http://portableapps.com/
  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 "StartPortableApps"
  23. !define FULLNAME "Start PortableApps.com"
  24. !define VER "1.999.5.0"
  25. !define WEBSITE "PortableApps.com"
  26.  
  27. ;=== Program Details
  28. Name "${FULLNAME}"
  29. OutFile "${NAME}.exe"
  30. Caption "${FULLNAME} | PortableApps.com"
  31. VIProductVersion "${VER}"
  32. VIAddVersionKey ProductName "${FULLNAME}"
  33. VIAddVersionKey Comments "For additional details, visit ${WEBSITE}"
  34. VIAddVersionKey CompanyName "PortableApps.com"
  35. VIAddVersionKey LegalCopyright "PortableApps.com"
  36. VIAddVersionKey FileDescription "${FULLNAME}"
  37. VIAddVersionKey FileVersion "${VER}"
  38. VIAddVersionKey ProductVersion "${VER}"
  39. VIAddVersionKey InternalName "${FULLNAME}"
  40. VIAddVersionKey LegalTrademarks "PortableApps.com is a registered trademark of Rare Ideas, LLC."
  41. VIAddVersionKey OriginalFilename "${NAME}.exe"
  42. ;VIAddVersionKey PrivateBuild ""
  43. ;VIAddVersionKey SpecialBuild ""
  44.  
  45. ;=== Runtime Switches
  46. CRCCheck On
  47. WindowIcon Off
  48. SilentInstall Silent
  49. AutoCloseWindow True
  50. RequestExecutionLevel user
  51. XPStyle On
  52.  
  53. ; Best Compression
  54. SetCompress Auto
  55. SetCompressor /SOLID lzma
  56. SetCompressorDictSize 32
  57. SetDatablockOptimize On
  58.  
  59. ;=== Program Icon
  60. Icon "${NAME}.ico"
  61.  
  62. Section "Main"
  63.     IfFileExists `$EXEDIR\PortableApps\PortableApps.com\PortableAppsPlatform.exe` "" NotFound
  64.         ;=== Check that it's the real deal
  65.         MoreInfo::GetProductName `$EXEDIR\PortableApps\PortableApps.com\PortableAppsPlatform.exe`
  66.         Pop $1
  67.         StrCmp $1 "PortableApps.com Platform" "" InvalidFile
  68.         MoreInfo::GetCompanyName `$EXEDIR\PortableApps\PortableApps.com\PortableAppsPlatform.exe`
  69.         Pop $1
  70.         StrCmp $1 "PortableApps.com" "" InvalidFile
  71.         Exec '"$EXEDIR\PortableApps\PortableApps.com\PortableAppsPlatform.exe"'
  72.         Goto TheEnd
  73.  
  74.     NotFound:
  75.         MessageBox MB_OK|MB_ICONINFORMATION `Could not find $EXEDIR\PortableApps\PortableApps.com\PortableAppsPlatform.exe.`
  76.         Goto TheEnd
  77.     InvalidFile:
  78.         MessageBox MB_OK|MB_ICONINFORMATION `The PortableAppsPlatform.exe file is not a valid PortableApps.com release and can not be launched.`
  79.         Goto TheEnd
  80.     TheEnd:
  81. SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement