杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1877|回复: 0

NSIS PowerBuilder实例

[复制链接]
发表于 2017-2-26 11:05:09 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. Name "PFC Examples for PowerBuilder 8.0.1"
  2. ;name of your application
  3. OutFile "setup_pfc_examples_pb801.exe"
  4. ;name of the installer program


  5. ;perform self-check upon start up
  6. CRCCheck on


  7. ;define default installation directory and whether
  8. user has option to override it
  9. InstallDir "$PROGRAMFILES\PowerBuilder\PFC Examples"
  10. DirShow show
  11. DirText "Select the directory to install PowerBuilder
  12. PFC Examples in:"


  13. Section "" ; (default section)
  14. SetDetailsView show ;display the files to the user as
  15. they are being installed
  16. SetOverwrite on ;overwrite any files if
  17. they are already there
  18. SetOutPath "$INSTDIR" ;define the output directory
  19. for the all the proceeding
  20. File command


  21. ;application files
  22. File "C:\Program Files\Sybase\PowerBuilder 8.0\PFC\
  23. demoapp\peat.exe"
  24. File "C:\Program Files\Sybase\PowerBuilder 8.0\PFC\
  25. demoapp\peat.pbd"
  26. File "C:\Program Files\Sybase\PowerBuilder 8.0\PFC\
  27. *.pbd"


  28. ;deployment DLLs
  29. File "C:\Program Files\Sybase\Shared\PowerBuilder\
  30. libjcc.dll"
  31. File "C:\Program Files\Sybase\Shared\PowerBuilder\
  32. pbvm80.dll"
  33. File "C:\Program Files\Sybase\Shared\PowerBuilder\
  34. pbdwe80.dll"
  35. File "C:\Program Files\Sybase\Shared\PowerBuilder\
  36. pbodb80.dll"
  37. File "C:\Program Files\Sybase\Shared\PowerBuilder\
  38. pbodb80.ini"


  39. ;create shortcuts
  40. CreateDirectory "$SMPROGRAMS\PowerBuilder"
  41. CreateShortCut "$SMPROGRAMS\PowerBuilder\
  42. PFC Examples.lnk" "$INSTDIR\peat.exe"


  43. ;set up uninstall parameters
  44. WriteRegStr HKEY_LOCAL_MACHINE
  45. "Software\Microsoft
  46. \Windows\CurrentVersion\
  47. Uninstall\PowerBuilder" "DisplayName"
  48. "PowerBuilder PFC Examples (remove only)"
  49. WriteRegStr HKEY_LOCAL_MACHINE
  50. "Software\Microsoft\Windows\CurrentVersion\Uninstall\
  51. PowerBuilder"
  52. "UninstallString" '"$INSTDIR\uninst.exe"'
  53. WriteUninstaller "$INSTDIR\uninst.exe"
  54. SectionEnd ; end of default section


  55. ; begin uninstall settings/section
  56. UninstallText "This will uninstall PowerBuilder PFC Examples
  57. from your system"


  58. Section Uninstall
  59. ;delete the uninstaller and all of the application files
  60. Delete "$INSTDIR\uninst.exe"
  61. Delete "$INSTDIR\*.*"
  62. RMDir "$INSTDIR"


  63. ;delete all the shortcuts created during installation
  64. Delete "$SMPROGRAMS\PowerBuilder\PFC Examples.lnk"
  65. RMDir "$SMPROGRAMS\PowerBuilder"


  66. ;remove the entry from the Add/Remove Programs panel
  67. DeleteRegKey HKEY_LOCAL_MACHINE
  68. "SOFTWARE\Microsoft\Windows\CurrentVersion\
  69. Uninstall\PowerBuilder"


  70. SectionEnd ; end of uninstall section
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-19 14:46 , Processed in 0.104074 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表