📄 installer.nsi
字号:
;; The olsr.org Optimized Link-State Routing daemon (olsrd); Copyright (c) 2004, Thomas Lopatic (thomas@lopatic.de); All rights reserved.;; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met:;; * Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer.; * Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in ; the documentation and/or other materials provided with the ; distribution.; * Neither the name of olsr.org, olsrd nor the names of its ; contributors may be used to endorse or promote products derived ; from this software without specific prior written permission.;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS ; FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ; COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, ; INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ; ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ; POSSIBILITY OF SUCH DAMAGE.;; Visit http://www.olsr.org for more information.;; If you find this software useful feel free to make a donation; to the project. For more information see the website or contact; the copyright holders.;; $Id: installer.nsi,v 1.16 2007/03/27 03:58:31 tlopatic Exp $;Name olsr.orgOutFile ..\..\..\olsr-setup.exeBrandingText "www.olsr.org"InstallDir $PROGRAMFILES\olsr.orgLicenseData ..\..\..\license.txtXPStyle onPage licensePage componentsPage directoryPage instfilesUninstPage uninstConfirmUninstPage instfilesFunction .onInit MessageBox MB_YESNO "This will install olsr.org 0.5.0 on your computer. Continue?" IDYES NoAbort AbortNoAbort:FunctionEndInstType "ETX Configuration (recommended)"InstType "RFC Configuration"Section "Program Files" SectionIn 1 2 RO SetOutPath $INSTDIR File /oname=Switch.exe ..\release\Main.exe File ..\release\Shim.exe File ..\..\..\olsrd.exe File ..\..\..\olsr_switch.exe File ..\..\..\src\cfgparser\olsrd_cfgparser.dll File /oname=README.txt ..\..\..\README File /oname=README-LQ.html ..\..\..\README-Link-Quality.html File /oname=README-Fish-Eye.txt ..\..\..\README-Link-Quality-Fish-Eye.txt File ..\..\..\README-Olsr-Switch.html File linux-manual.txt File /oname=olsrd.conf.rfc ..\..\..\files\olsrd.conf.win32.rfc File /oname=olsrd.conf.lq ..\..\..\files\olsrd.conf.win32.lq File ..\..\..\lib\dot_draw\olsrd_dot_draw.dll File ..\..\..\lib\httpinfo\olsrd_httpinfo.dll WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\olsr.org DisplayName olsr.org WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\olsr.org UninstallString $INSTDIR\uninstall.exe WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\olsr.org NoModify 1 WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\olsr.org NoRepair 1 WriteUninstaller $INSTDIR\uninstall.exeSectionEndSection "ETX Configuration" SectionIn 1 RO File ..\..\..\gui\win32\Main\RFC-Default.olsr File ..\..\..\gui\win32\Main\LQ-Default.olsr File /oname=Default.olsr ..\..\..\gui\win32\Main\LQ-Default.olsrSectionEndSection "RFC Configuration" SectionIn 2 RO File ..\..\..\gui\win32\Main\RFC-Default.olsr File ..\..\..\gui\win32\Main\LQ-Default.olsr File /oname=Default.olsr ..\..\..\gui\win32\Main\RFC-Default.olsrSectionEndSection "Start Menu Shortcuts" SectionIn 1 2 CreateDirectory $SMPROGRAMS\olsr.org CreateShortCut "$SMPROGRAMS\olsr.org\OLSR Switch.lnk" $INSTDIR\Switch.exe "" $INSTDIR\Switch.exe 0 CreateShortCut $SMPROGRAMS\olsr.org\README.lnk $INSTDIR\README.txt CreateShortCut $SMPROGRAMS\olsr.org\README-LQ.lnk $INSTDIR\README-LQ.html CreateShortCut $SMPROGRAMS\olsr.org\Uninstall.lnk $INSTDIR\uninstall.exe "" $INSTDIR\uninstall.exe 0SectionEndSection "Desktop Shortcut" SectionIn 1 2 CreateShortCut "$DESKTOP\OLSR Switch.lnk" $INSTDIR\Switch.exe "" $INSTDIR\Switch.exe 0SectionEndSection "File Association (*.olsr)" SectionIn 1 2 WriteRegStr HKCR .olsr "" OlsrOrgConfigFile WriteRegStr HKCR OlsrOrgConfigFile "" "olsr.org Configuration File" WriteRegStr HKCR OlsrOrgConfigFile\shell "" open WriteRegStr HKCR OlsrOrgConfigFile\DefaultIcon "" $INSTDIR\Switch.exe,0 WriteRegStr HKCR OlsrOrgConfigFile\shell\open\command "" '$INSTDIR\Switch.exe "%1"'SectionEndSection "Uninstall" DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\olsr.org DeleteRegKey HKCR .olsr DeleteRegKey HKCR OlsrOrgConfigFile Delete $INSTDIR\Switch.exe Delete $INSTDIR\Shim.exe Delete $INSTDIR\olsrd.exe Delete $INSTDIR\olsr_switch.exe Delete $INSTDIR\olsrd_cfgparser.dll Delete $INSTDIR\README.txt Delete $INSTDIR\README-LQ.html Delete $INSTDIR\README-Fish-Eye.txt Delete $INSTDIR\README-Olsr-Switch.html Delete $INSTDIR\linux-manual.txt Delete $INSTDIR\Default.olsr Delete $INSTDIR\RFC-Default.olsr Delete $INSTDIR\LQ-Default.olsr Delete $INSTDIR\olsrd.conf.rfc Delete $INSTDIR\olsrd.conf.lq Delete $INSTDIR\olsrd_dot_draw.dll Delete $INSTDIR\olsrd_nameservice.dll Delete $INSTDIR\olsrd_httpinfo.dll Delete $INSTDIR\uninstall.exe RMDir $INSTDIR Delete "$SMPROGRAMS\olsr.org\OLSR Switch.lnk" Delete $SMPROGRAMS\olsr.org\README.lnk Delete $SMPROGRAMS\olsr.org\README-LQ.lnk Delete $SMPROGRAMS\olsr.org\Uninstall.lnk RMDir $SMPROGRAMS\olsr.org Delete "$DESKTOP\OLSR Switch.lnk"SectionEnd
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -