DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (b66b287a2650)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
!include "local.nsh"

!define PRODUCT "Mozilla ActiveX Control ${VERSION}"

Name "${PRODUCT}"

InstallDir "$PROGRAMFILES\${PRODUCT}"

OutFile MozillaControl${MAJOR_VERSION}${MINOR_VERSION}.exe

SetCompressor bzip2

DirText "This will install the Mozilla ActiveX Control ${VERSION} on your computer. Pick an installation directory."

Section "Mozilla Control (required)"

  ; MSVC++ redistributable DLLs
  SetOutPath "$INSTDIR"
  File ${REDISTDIR}\msvc70\msvcr70.dll
  File ${REDISTDIR}\msvc70\msvcp70.dll

  ; Now the Gecko embedding files
  !include "files.nsh"

  RegDLL "$INSTDIR\mozctlx.dll"
  
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "DisplayName" "${PRODUCT}"
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "InstallLocation" "$INSTDIR"
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "UninstallString" "$INSTDIR\uninst.exe"
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "VersionMajor" "${MAJOR_VERSION}"
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "VersionMinor" "${MINOR_VERSION}"
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\{PRODUCT}" "NoModify" "1"
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "NoRepair" "1"
  WriteUninstaller Uninst.exe

SectionEnd

Section "uninstall"

  UnRegDLL "$INSTDIR\mozctlx.dll"
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}"
  Delete $INSTDIR\Uninst.exe
  RMDir /r $INSTDIR

SectionEnd