* removed OC from future installers for the next 4.0 release
This commit is contained in:
parent
7de1c94167
commit
afe59c4117
Binary file not shown.
|
@ -339,43 +339,3 @@ proprietary programs. If your program is a subroutine library, you may
|
|||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
|
||||
|
||||
|
||||
B. OpenCandy End User License Agreement (EULA)
|
||||
|
||||
Date of last revision: March 7, 2012
|
||||
|
||||
PLEASE READ THESE TERMS BEFORE PROCEEDING WITH THE INSTALLATION OF THE SOFTWARE. BY AGREEING TO THESE TERMS YOU ARE GRANTING US PERMISSION TO PROVIDE RECOMMENDATIONS OF THIRD PARTY SOFTWARE IN ACCORDANCE WITH THE FOLLOWING TERMS AND THE TERMS OF OUR PRIVACY POLICY.
|
||||
|
||||
1. What We Do
|
||||
|
||||
The developer of the software ("Software") you are installing has chosen to use the OpenCandy Network ("We") to provide recommendations of other third party software. All third party software participating in the OpenCandy Network must adhere to strict policies that ensure only compliant software is recommended. In the event an OpenCandy recommendation is shown, the recommendations will only occur once during the installation of the Software.
|
||||
|
||||
2. How Our Recommendations Work
|
||||
|
||||
As part of the installation process, a temporary file transmits anonymous, non-personally identifiable information about your computer system in order to help us determine what third party software would be appropriate to recommend. If a recommendation is shown and you choose to install such recommended third party software, then the third party software will be downloaded and installed. If a recommendation is not shown, or you choose not to install such recommended third party software, then no third party software will be downloaded or installed.
|
||||
|
||||
Reasonable efforts are made to ensure any temporary files created are automatically removed after the installation process is completed, regardless of whether a recommendation is made, and regardless of whether you choose to install any software. Please note, however, that some files may not be able to remove themselves until the next system restart.
|
||||
|
||||
3. Recommended Third Party Software
|
||||
|
||||
You are NEVER required to install any recommended third party software, and you will not be required to install any third party software as a condition to install the Software. We will never install any third party software without your express consent. Recommended third party software is also subject to its own separate license agreement(s).
|
||||
|
||||
4. How We Use Your Data
|
||||
|
||||
We are strong advocates for consumer privacy, and we do NOT collect or store any personally identifiable information. Any information transmitted to our servers is anonymous and may be stored in the aggregate to help us improve our services. All information is collected and used in accordance with our Privacy Policy, available at: http://www.opencandy.com/privacy-policy.
|
||||
|
||||
5. DISCLAIMER; LIMITATION OF LIABILITY
|
||||
|
||||
WE PROVIDE ALL RECOMMENDATIONS OR THIRD PARTY SOFTWARE "AS IS," "WITH ALL FAULTS," AND WITHOUT ANY WARRANTY WHATSOEVER, AND DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT. WE ARE NOT LIABLE TO YOU OR ANY OTHER PERSON FOR ANY INCIDENTAL, CONSEQUENTIAL, SPECIAL, DIRECT, INDIRECT, PUNITIVE OR EXEMPLARY DAMAGES IN CONNECTION WITH ANY RECOMMENDATION OR THIRD PARTY SOFTWARE.
|
||||
|
||||
6. Miscellaneous
|
||||
|
||||
These Terms are governed by and interpreted, construed and enforced in accordance with the laws of the State of California, United States of America, without respect to its choice of law provisions. Any action is subject to the exclusive jurisdiction of the state or federal courts in California, and you irrevocably submit to the personal jurisdiction in such courts.
|
||||
|
||||
7. Third Party Software Uninstallation
|
||||
|
||||
We ensure that all OpenCandy recommended third party software which may be installed allows for simple uninstallation without harming your computer, and without leaving files or applications behind.
|
||||
|
||||
If you have any feedback or questions, please email us at: license@opencandy.com.
|
|
@ -1,105 +1,17 @@
|
|||
; OpenCandySample.nsi
|
||||
;
|
||||
; This is a fairly simple example of an NSIS installer that walks through
|
||||
; the basic functionality a typical installer provides and also shows the
|
||||
; required OpenCandy integration points.
|
||||
;
|
||||
; You should be able to build this installer without any modification
|
||||
; and see a sample offer from the OpenCandy network. The unmodified installer
|
||||
; is safe to run, it just drops a copy of this .nsi file in the installation
|
||||
; folder.
|
||||
;
|
||||
; Everything specific to OpenCandy in this script is encapsulated like this:
|
||||
;
|
||||
; # [OpenCandy]
|
||||
; ; OpenCandy stuff here
|
||||
; # [/OpenCandy]
|
||||
;
|
||||
; If you already have your own .nsi script the accompanying SDK notes highlight
|
||||
; the steps necessary for integration and this sample will provide a good
|
||||
; reference implementation. For advanced support please contact the OpenCandy
|
||||
; partner support team.
|
||||
;
|
||||
; Copyright (c) 2008 - 2013 SweetLabs, Inc.
|
||||
;
|
||||
; You may use and modify this .nsi file for your product installer so long as
|
||||
; you abide by the terms of the OpenCandy SDK EULA.
|
||||
;
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Definitions
|
||||
; FileBot NSIS installer script
|
||||
;--------------------------------
|
||||
|
||||
# [OpenCandy]
|
||||
|
||||
; The following values get passed to the OpenCandy API. Once you've signed up
|
||||
; for OpenCandy you'll be provided with a customized set of values specific to
|
||||
; your product that you must set here before releasing your installer.
|
||||
;
|
||||
; These values must be defined before including OCSetupHlp.nsh.
|
||||
;
|
||||
; For internal purposes it's okay to use the sample values that are preset
|
||||
; below. If everything is working properly you'll see a sample offer screen
|
||||
; display in your installer. When you compile your installer with these
|
||||
; sample values some warnings will be displayed in the compiler output
|
||||
; window to remind you to make changes before your public release.
|
||||
|
||||
; Please change the key and secret to the ones assigned for your specific products
|
||||
; Product key and secret for first offer
|
||||
!define OC_STR_KEY "c759b81f33a64385655ad567bc5e4ddf"
|
||||
!define OC_STR_SECRET "a292a0295f1fb9ca183b9fd48f472b6e"
|
||||
; Product key and secret for second offer screen if showing two offers, otherwise
|
||||
; set these to empty strings.
|
||||
!define OC_STR_KEY2 "61ae9369917e275d4ec4182f23f6bfeb"
|
||||
!define OC_STR_SECRET2 "f3f52c88720a1f42c9ec232abae94517"
|
||||
; Optionally change the path to OCSetupHlp.dll here if it's not in the same folder
|
||||
; as your .nsi file. You must specify the relative path from your .nsi file location.
|
||||
!define OC_OCSETUPHLP_FILE_PATH ".\OCSetupHlp.dll"
|
||||
|
||||
# [/OpenCandy]
|
||||
|
||||
# [OpenCandy]
|
||||
|
||||
; The following values customize the UI for the OpenCandy loading screen.
|
||||
; The loading screen is displayed only for a limited time when there has not
|
||||
; been sufficient time between loading the OpenCandy client and end user navigation
|
||||
; to the OpenCandy offer screen to finish checking for available offers.
|
||||
; You may use LangStrings to localize messages.
|
||||
;
|
||||
; These values must be defined before including OCSetupHlp.nsh.
|
||||
;
|
||||
!define OC_LOADING_SCREEN_CAPTION " "
|
||||
!define OC_LOADING_SCREEN_DESCRIPTION " "
|
||||
!define OC_LOADING_SCREEN_MESSAGE "Loading..."
|
||||
!define OC_LOADING_SCREEN_FONTFACE "Arial"
|
||||
!define OC_LOADING_SCREEN_FONTSIZE 100
|
||||
|
||||
# [/OpenCandy]
|
||||
|
||||
!define PRODUCT_PROPER_NAME "FileBot"
|
||||
; !define PRODUCT_FILESYSTEM_NAME "My Product"
|
||||
; !define PRODUCT_PUBLISHER_PROPER_NAME "My Company, Inc."
|
||||
; !define PRODUCT_PUBLISHER_FILESYSTEM_NAME "My Company"
|
||||
!define INSTALLER_EXE_NAME "FileBot-setup.exe"
|
||||
; !define PRODUCT_DIR_REGKEY "Software\${PRODUCT_PUBLISHER_FILESYSTEM_NAME}\${PRODUCT_FILESYSTEM_NAME}"
|
||||
|
||||
; Uncomment this definition to use Modern UI 2 instead of Modern UI. It's best
|
||||
; to use Modern UI 2 if you're starting fresh with the latest version of NSIS
|
||||
; and you don't have many custom dialogs created with InstallOptions. By default
|
||||
; this sample installer uses Modern UI for maximum compatibility.
|
||||
!define OPTION_USE_MUI_2
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Installer Configuration
|
||||
;--------------------------------
|
||||
|
||||
# [OpenCandy]
|
||||
; OpenCandy requires RequestExecutionLevel admin
|
||||
# [/OpenCandy]
|
||||
; Request admin privileges for Windows Vista, 7.
|
||||
RequestExecutionLevel admin
|
||||
|
||||
|
@ -109,12 +21,6 @@ Name "${PRODUCT_PROPER_NAME}"
|
|||
; Output file generated by NSIS compiler
|
||||
OutFile "${INSTALLER_EXE_NAME}"
|
||||
|
||||
; Default installation folder
|
||||
; InstallDir "$PROGRAMFILES\${PRODUCT_PUBLISHER_FILESYSTEM_NAME}\${PRODUCT_FILESYSTEM_NAME}"
|
||||
|
||||
; Automatically remember any user-customized installation path
|
||||
; InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
|
||||
|
||||
; Use lzma compression
|
||||
SetCompressor lzma
|
||||
|
||||
|
@ -124,60 +30,16 @@ SetDatablockOptimize on
|
|||
; Restore last write datestamp of files
|
||||
; SetDateSave on
|
||||
|
||||
; Show un/installation details
|
||||
; Show installation details
|
||||
ShowInstDetails show
|
||||
ShowUnInstDetails show
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Includes
|
||||
;--------------------------------
|
||||
!include "x64.nsh"
|
||||
|
||||
; Use Modern UI to make the installer look nice
|
||||
!ifdef OPTION_USE_MUI_2
|
||||
!include "MUI2.nsh"
|
||||
!else
|
||||
!include "MUI.nsh"
|
||||
!endif
|
||||
|
||||
; Include Sections header so that we can manipulate
|
||||
; section properties in .onInit
|
||||
!include "Sections.nsh"
|
||||
|
||||
# [OpenCandy]
|
||||
; Include the OpenCandy Setup Helper header
|
||||
; This provides all the OpenCandy helper macros, functions
|
||||
; and definitions that are used by this install script.
|
||||
!include "OCSetupHlp.nsh"
|
||||
# [/OpenCandy]
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Reserve files
|
||||
;--------------------------------
|
||||
|
||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||
# [/OpenCandy]
|
||||
; Improve performance by reserving an early place in
|
||||
; the file data block for OpenCandy DLL.
|
||||
!insertmacro OpenCandyReserveFile
|
||||
# [/OpenCandy]
|
||||
!ifndef OPTION_USE_MUI_2
|
||||
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
|
||||
!endif
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Variables
|
||||
;--------------------------------
|
||||
|
||||
; Create any globals here
|
||||
; Var MyGlobalVariable
|
||||
|
||||
!include "x64.nsh"
|
||||
|
||||
|
||||
;--------------------------------
|
||||
|
@ -187,7 +49,6 @@ ShowUnInstDetails show
|
|||
; MUI Settings
|
||||
!define MUI_ABORTWARNING
|
||||
|
||||
|
||||
; MUI Settings / Icons
|
||||
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
|
||||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
|
||||
|
@ -203,7 +64,6 @@ ShowUnInstDetails show
|
|||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange-uninstall.bmp"
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Installer pages
|
||||
;--------------------------------
|
||||
|
@ -211,62 +71,10 @@ ShowUnInstDetails show
|
|||
; Welcome page
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
|
||||
# [OpenCandy]
|
||||
; You must display the OpenCandy EULA during installation. We recommend
|
||||
; that you append the OpenCandy EULA to your own license agreement,
|
||||
; and that you provide clearly visible notice of the presence of the
|
||||
; OpenCandy EULA using a table of contents at the top of the
|
||||
; combined presentation.
|
||||
# [/OpenCandy]
|
||||
; End user license agreement
|
||||
!insertmacro MUI_PAGE_LICENSE "FileBot_OpenCandy_EULA.txt"
|
||||
!insertmacro MUI_PAGE_LICENSE "FileBot_EULA.txt"
|
||||
|
||||
# [OpenCandy]
|
||||
; This placeholder page supports deferred extraction and loading of the
|
||||
; OpenCandy Network Client library when using OC_INIT_PERFORM_BYPAGEORDER.
|
||||
; It will typically be inserted immediately after the license page. No
|
||||
; page is actually displayed to the end user. Inserting this page later in
|
||||
; the page list may reduce offer rate and increase the likelihood that end
|
||||
; users will see the OpenCandy loading page.
|
||||
!insertmacro OpenCandyLoadDLLPage
|
||||
# [/OpenCandy]
|
||||
|
||||
# [OpenCandy]
|
||||
; This placeholder page connects to the OpenCandy Network to check for
|
||||
; recommendations after deferred loading using OpenCandyLoadDLLPage. It will
|
||||
; typically be inserted immediately after OpenCandyLoadDLLPage. No page is
|
||||
; actually displayed to the end user. Inserting this page later in the page
|
||||
; list may reduce offer rate and increase the likelihood that end users will
|
||||
; see the OpenCandy loading page.
|
||||
!insertmacro OpenCandyConnectPage
|
||||
# [/OpenCandy]
|
||||
|
||||
; Component selection (you might want to omit this in a simpler setup)
|
||||
; !insertmacro MUI_PAGE_COMPONENTS
|
||||
|
||||
; Choose directory (you might want to omit this in a simpler setup)
|
||||
; !insertmacro MUI_PAGE_DIRECTORY
|
||||
|
||||
# [OpenCandy]
|
||||
; Insert a loading screen before the OpenCandy offer page. This screen
|
||||
; will be displayed only if the OpenCandy client is still determining
|
||||
; offer availability and for a limited period of time. Omitting this
|
||||
; page may reduce offer rate. This page must be inserted after
|
||||
; OpenCandyConnectPage and before OpenCandyOfferPage.
|
||||
!insertmacro OpenCandyLoadingPage
|
||||
# [/OpenCandy]
|
||||
|
||||
# [OpenCandy]
|
||||
; Insert the OpenCandy offer page
|
||||
!insertmacro OpenCandyOfferPage
|
||||
# [/OpenCandy]
|
||||
|
||||
# [OpenCandy]
|
||||
; Insert the second OpenCandy offer page
|
||||
!insertmacro OpenCandyOfferPage2
|
||||
# [/OpenCandy]
|
||||
|
||||
; Perform installation (executes each enabled Section)
|
||||
; Perform installation
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
|
||||
; Finish page
|
||||
|
@ -280,7 +88,6 @@ ShowUnInstDetails show
|
|||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
LangString Section_Name_MainProduct ${LANG_ENGLISH} "${PRODUCT_PROPER_NAME}"
|
||||
LangString Section_Name_MainProductExt ${LANG_ENGLISH} "${PRODUCT_PROPER_NAME} extensions"
|
||||
|
||||
|
||||
;---------------------------
|
||||
|
@ -289,18 +96,11 @@ LangString Section_Name_MainProductExt ${LANG_ENGLISH} "${PRODUCT_PROPER_NAME} e
|
|||
Var MSI_STATUS
|
||||
|
||||
|
||||
Section "$(Section_Name_MainProduct)" SECTIONID_MAINPRODUCT
|
||||
; Put your own product installation code here!
|
||||
;
|
||||
; Notice that because this is the main product section
|
||||
; there's some code in the .onInit callback that prevents
|
||||
; the user from disabling this section on the components
|
||||
; selection screen.
|
||||
Section MAIN
|
||||
DetailPrint "Uninstalling previous versions..."
|
||||
nsExec::Exec `Powershell.exe -inputformat none -noprofile -windowstyle hidden -Command "(Get-WmiObject -Class Win32_Product -Filter \"Name = 'FileBot'\").uninstall()"`
|
||||
|
||||
DetailPrint "Downloading latest version..."
|
||||
;Install latest FileBot
|
||||
${if} ${RunningX64}
|
||||
inetc::get /USERAGENT "nsis" /caption "Downloading FileBot (64-bit)" "http://www.filebot.net/download.php?mode=nsis&type=msi&arch=x64" "$PLUGINSDIR\FileBot.msi" /end
|
||||
${else}
|
||||
|
@ -312,88 +112,13 @@ Section "$(Section_Name_MainProduct)" SECTIONID_MAINPRODUCT
|
|||
Pop $MSI_STATUS # grab return value
|
||||
|
||||
${if} $MSI_STATUS == "0"
|
||||
DetailPrint "Clear cache and temporary files"
|
||||
DetailPrint "Clearing cache and temporary files..."
|
||||
nsExec::Exec `"C:\Program Files\FileBot\filebot.exe" -clear-cache`
|
||||
nsExec::Exec `"C:\Program Files\FileBot\filebot.exe" -script "g:net.sourceforge.filebot.Main.warmupCachedResources()"`
|
||||
|
||||
# [OpenCandy]
|
||||
; This section is hidden. It will always execute during installation
|
||||
; but it won't appear on your component selection screen.
|
||||
; Handle any offers the user accepted
|
||||
!insertmacro OpenCandyInstallEmbedded
|
||||
# [/OpenCandy]
|
||||
DetailPrint "Initializing Cache..."
|
||||
nsExec::Exec `"C:\Program Files\FileBot\filebot.exe" -script "g:net.sourceforge.filebot.media.MediaDetection.warmupCachedResources()"`
|
||||
${else}
|
||||
DetailPrint "msiexec error $MSI_STATUS"
|
||||
DetailPrint "Install failed. Please download the .msi package manually."
|
||||
Abort
|
||||
${endif}
|
||||
SectionEnd
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; .onInit NSIS callback
|
||||
;--------------------------------
|
||||
|
||||
Function .onInit
|
||||
; Display a language selection dialog box for languages
|
||||
; This will only show if you have added multiple languages
|
||||
; using the MUI_LANGUAGE macro.
|
||||
!insertmacro MUI_LANGDLL_DISPLAY
|
||||
|
||||
; Set the main product section to read-only so that users
|
||||
; can't turn it off on the component selection screen.
|
||||
!insertmacro SetSectionFlag ${SECTIONID_MAINPRODUCT} ${SF_RO}
|
||||
|
||||
# [OpenCandy]
|
||||
; Note: If you use a language selection system,
|
||||
; e.g. MUI_LANGDLL_DISPLAY or calls to LangDLL, you must insert
|
||||
; these macros after the language selection code in order for
|
||||
; OpenCandy to detect the user-selected language and for any
|
||||
; LangStrings you may use to be applied.
|
||||
|
||||
; Initialize OpenCandy
|
||||
!insertmacro OpenCandyAsyncInit "${OC_STR_KEY}" "${OC_STR_SECRET}" ${OC_INIT_MODE_NORMAL} \
|
||||
"${OC_STR_KEY2}" "${OC_STR_SECRET2}" ${OC_INIT_MODE_NORMAL} \
|
||||
${OC_INIT_PERFORM_NOW}
|
||||
|
||||
# [/OpenCandy]
|
||||
FunctionEnd
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; .onInstSuccess NSIS callback
|
||||
;--------------------------------
|
||||
|
||||
Function .onInstSuccess
|
||||
# [OpenCandy]
|
||||
; Signal successful installation, download and install accepted offers
|
||||
!insertmacro OpenCandyOnInstSuccess
|
||||
# [/OpenCandy]
|
||||
FunctionEnd
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; .onGUIEnd NSIS callback
|
||||
;--------------------------------
|
||||
|
||||
Function .onGUIEnd
|
||||
# [OpenCandy]
|
||||
; Inform the OpenCandy API that the installer is about to exit
|
||||
!insertmacro OpenCandyOnGuiEnd
|
||||
# [/OpenCandy]
|
||||
FunctionEnd
|
||||
|
||||
|
||||
|
||||
# [OpenCandy]
|
||||
; Have the compiler perform some basic OpenCandy API implementation checks
|
||||
!insertmacro OpenCandyAPIDoChecks
|
||||
# [/OpenCandy]
|
Loading…
Reference in New Issue