⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xca-0.5.1.nsi

📁 一个跨平台的CA系统 实现了数字证书的制作、SSL安全通讯、加解密操作等功能
💻 NSI
字号:
; xca.nsi;; This is the .nsi script for creating the nullsoft windows installer; The name of the installerName "X CA"Caption "X Certification Authority"; The licenseagreementLicenseText "You must accept the following BSD like license to continue."LicenseData COPYRIGHT; The file to writeOutFile "xca-0.5.1.exe"; The default installation directoryInstallDir $PROGRAMFILES\xca; Registry key to check for directory (so if you install again, it will ; overwrite the old one automatically)InstallDirRegKey HKLM SOFTWARE\xca "Install_Dir"; The text to prompt the user to enter a directoryComponentText "This will install the X Certification Authority (c) 2002 by Christian@Hohnstaedt.de"; The text to prompt the user to enter a directoryDirText "Choose a directory to install in to:"; The stuff to installSection "xca (required)"  ClearErrors  UserInfo::GetName  IfErrors Win9x  UserInfo::GetAccountType  Pop $0  StrCmp $0 "Admin" 0 +3  	SetShellVarContext all  	Goto done  	SetShellVarContext current  Win9x:  	SetShellVarContext current  done:  ; Set output path to the installation directory.  SetOutPath $INSTDIR  ; Put file there  File "Release\xca.exe"  File "misc\dn.txt"  File "misc\eku.txt"  File "misc\oids.txt"  File "misc\aia.txt"  File "lang\*.qm"  File "img\bigcert.png"  File "img\bigcrl.png"  File "img\bigcsr.png"  File "img\bigkey.png"  File "img\bigtemp.png"  File "img\halfkey.png"  File "img\invalidcert.png"  File "img\invalidcertkey.png"  File "img\key.png"  File "img\key.ico"  File "img\key.xpm"  File "img\netscape.png"  File "img\req.png"  File "img\reqkey.png"  File "img\revoked.png"  File "img\template.png"  File "img\validcert.png"  File "img\validcertkey.png"  File "img\crl.png"  File "Release\libdb41.dll"  File "Release\SSLeay32.dll"  File "Release\libeay32.dll"  File "Release\msvcrt.dll"  File "Release\msvcp60.dll"  File "Release\qt-mt230nc.dll"  File "doc\*.html"  ; Write the installation path into the registry  WriteRegStr HKLM SOFTWARE\xca "Install_Dir" "$INSTDIR"  ; Write the uninstall keys for Windows  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xca" "DisplayName" "X CA (remove only)"  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xca" "UninstallString" '"$INSTDIR\uninstall.exe"'  WriteUninstaller "uninstall.exe"SectionEnd; optional sectionSection "Start Menu Shortcuts"  CreateDirectory "$SMPROGRAMS\xca"  CreateShortCut "$SMPROGRAMS\xca\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0  CreateShortCut "$SMPROGRAMS\xca\xca.lnk" "$INSTDIR\xca.exe" "" "$INSTDIR\xca.exe" 0SectionEnd; uninstall stuffUninstallText "This will uninstall xca. Hit next to continue."; special uninstall section.Section "Uninstall"  ; remove registry keys  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xca"  DeleteRegKey HKLM "SOFTWARE\xca"  DeleteRegKey HKCU "SOFTWARE\xca"  ; remove files  Delete $INSTDIR\xca.exe  Delete $INSTDIR\*.png  Delete $INSTDIR\*.dll  Delete $INSTDIR\*.ico  Delete $INSTDIR\*.xpm  Delete $INSTDIR\*.log  Delete $INSTDIR\*.txt  Delete $INSTDIR\*.qm  Delete $INSTDIR\*.html  ; MUST REMOVE UNINSTALLER, too  Delete $INSTDIR\uninstall.exe  RMDir $INSTDIR  ClearErrors  UserInfo::GetName  IfErrors Win9x  UserInfo::GetAccountType  Pop $0  StrCmp $0 "Admin" 0 +3  	SetShellVarContext all  	Goto done  	SetShellVarContext current  Win9x:  	SetShellVarContext current  done:    ; remove shortcuts, if any.  Delete "$SMPROGRAMS\xca\*.*"  ; remove directories used.  RMDir "$SMPROGRAMS\xca" SectionEnd; eof

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -