脚本:PFC Examples for PowerBuilder 8.0.1
优质
小牛编辑
135浏览
2023-12-01
Name "PFC Examples for PowerBuilder 8.0.1" ;name of your application OutFile "setup_pfc_examples_pb801.exe" ;name of the installer program ;perform self-check upon start up CRCCheck on ;define default installation directory and whether user has option to override it InstallDir "$PROGRAMFILES\PowerBuilder\PFC Examples" DirShow show DirText "Select the directory to install PowerBuilder PFC Examples in:" Section "" ; (default section) SetDetailsView show ;display the files to the user as they are being installed SetOverwrite on ;overwrite any files if they are already there SetOutPath "$INSTDIR" ;define the output directory for the all the proceeding File command ;application files File "C:\Program Files\Sybase\PowerBuilder 8.0\PFC\ demoapp\peat.exe" File "C:\Program Files\Sybase\PowerBuilder 8.0\PFC\ demoapp\peat.pbd" File "C:\Program Files\Sybase\PowerBuilder 8.0\PFC\ *.pbd" ;deployment DLLs File "C:\Program Files\Sybase\Shared\PowerBuilder\ libjcc.dll" File "C:\Program Files\Sybase\Shared\PowerBuilder\ pbvm80.dll" File "C:\Program Files\Sybase\Shared\PowerBuilder\ pbdwe80.dll" File "C:\Program Files\Sybase\Shared\PowerBuilder\ pbodb80.dll" File "C:\Program Files\Sybase\Shared\PowerBuilder\ pbodb80.ini" ;create shortcuts CreateDirectory "$SMPROGRAMS\PowerBuilder" CreateShortCut "$SMPROGRAMS\PowerBuilder\ PFC Examples.lnk" "$INSTDIR\peat.exe" ;set up uninstall parameters WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft \Windows\CurrentVersion\ Uninstall\PowerBuilder" "DisplayName" "PowerBuilder PFC Examples (remove only)" WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ PowerBuilder" "UninstallString" '"$INSTDIR\uninst.exe"' WriteUninstaller "$INSTDIR\uninst.exe" SectionEnd ; end of default section ; begin uninstall settings/section UninstallText "This will uninstall PowerBuilder PFC Examples from your system" Section Uninstall ;delete the uninstaller and all of the application files Delete "$INSTDIR\uninst.exe" Delete "$INSTDIR\*.*" RMDir "$INSTDIR" ;delete all the shortcuts created during installation Delete "$SMPROGRAMS\PowerBuilder\PFC Examples.lnk" RMDir "$SMPROGRAMS\PowerBuilder" ;remove the entry from the Add/Remove Programs panel DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\ Uninstall\PowerBuilder" SectionEnd ; end of uninstall section