summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackNSISGenerator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Port all cmOStringStream to std::ostringstream.Stephen Kelly2015-01-111-14/+14
| | | | All compilers hosting CMake support the std class.
* Remove some unneeded c_str calls.Stephen Kelly2014-11-231-1/+1
|
* strings: Remove redundant calls to std::string::c_str()Nils Gladitz2014-10-151-3/+3
| | | | | Replacements were detected and performed by the clang tool remove-cstr-calls on a linux build.
* regex: Use static regexs where possibleBen Boeckel2014-06-091-2/+2
| | | | | Rather than declaring and compiling a constant regex every time a chunk of code is executed, build the regex once.
* Remove c_str calls when using stream APIs.Stephen Kelly2014-03-111-21/+21
| | | | | Use an ad-hoc clang tool for matching the calls which should be ported.
* Remove some c_str() calls.Stephen Kelly2014-03-111-1/+1
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* CPack: Fix NSIS version check without release version (#9721)Gerald Hofmann2013-03-081-12/+24
| | | | | | | | | | Only check a release version for the minimum required version. If NSIS returns a CVS build version string (as when built by Macports), skip the version check altogether and assume a sufficiently new version. Also correctly handle the case where the version check fails and the CPACK_TOPLEVEL_DIRECTORY option is not set. Co-Author: Graham Menhennitt <graham@menhennitt.com.au>
* CPack/NSIS: Add support for 64-bit NSIS (#13203)David Golub2012-11-201-1/+17
|
* CPack: Add automatic detection of the Unicode makensis (#9629)David Cole2012-10-171-7/+19
|
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-40/+40
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* CPack: Fixed incorrect error log for CPACK_NSIS_MENU_LINKS.Fraser Hutchison2012-05-281-2/+2
| | | | | | This was a pull request: https://github.com/Kitware/CMake/pull/5 Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* CPack add necessary check to detect/warns/error on ABSOLUTE DESTINATIONEric NOULARD2012-05-141-0/+6
| | | | | | | | | | | | | | | | | | The [usually] wrong usage of absolute DESTINATION in INSTALL rules keeps popping-up on the ML. We shall have some way to: 1) easily detect it. 2) forbids this for some CPack generator like NSIS In fact it should certainly be forbidden for *any* generators when used on Windows but we may implements that on top of the current patch. The patch ask the task to the generated cmake_install.cmake scripts. Those scripts are a little bit more complicated with that but iff there are absolute DESTINATION. This cost nothing if relative DESTINATION are used. Two new vars are introduced (and documented to handle that): CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION and CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
* CPack add easy possibility to warn about CPACK_SET_DESTDIREric NOULARD2012-05-141-0/+8
| | | | CPackNSIS will only warn but sooner or later it should error out
* CPackNSIS fix #0012935 switch from LOG_WARNING to avoid final error.Eric NOULARD2012-02-051-3/+3
|
* Merge topic 'cpack-nsis-multi-installs'David Cole2011-08-021-4/+0
|\ | | | | | | | | e6d2bcf CPack/NSIS: Fix reinstall and multiple install issues when using components.
| * CPack/NSIS: Fix reinstall and multiple install issues when using components.Clinton Stimpson2011-07-291-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix NSIS template to more thoroughly use CPACK_PACKAGE_INSTALL_REGISTRY_KEY. This allows different versions of software to have a separate sections in the registry to keep track of things (installed components, and uninstall stuff). Change default of CPACK_PACKAGE_INSTALL_REGISTRY_KEY to follow the value of CPACK_PACKAGE_INSTALL_DIRECTORY so if an installation overwrites another installation, the proper registry entries are more likely to be overwritten. Fix CPack/NSIS generator to not insert code in the NSIS template to skip installation of already installed components. This enables a repair like behavior and also enables installing patch releases on top of an older installation.
* | RunSingleCommand: Replace verbose boolean with enumJohan Björk2011-07-281-1/+2
|/ | | | | No behaviour change, this prepares for adding a flag to skip the merging of output streams.
* Merge topic 'fix-10644-cpack-menu-links'Brad King2011-01-111-12/+19
|\ | | | | | | | | 1bbe4e6 CPack: Detect more URLs in CPACK_NSIS_MENU_LINKS (#10644)
| * CPack: Detect more URLs in CPACK_NSIS_MENU_LINKS (#10644)David Cole2011-01-071-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, only strings containing "http:" qualified as URLs when found in CPACK_NSIS_MENU_LINKS. Now, we use a regex to detect strings beginning with any of the following: ftp:// ftps:// http:// https:// news:// mailto: This commit also moves the caller of CreateMenuLinks outside the "if (cpackPackageExecutables)" block, allowing clients to use CPACK_NSIS_MENU_LINKS without also having CPACK_PACKAGE_EXECUTABLES defined. That bit of this commit fixes the remainder of the issue described in http://public.kitware.com/Bug/view.php?id=7828 Also, added a set(CPACK_NSIS_MENU_LINKS ...) to the CPackComponents test to enable verifying that all of this actually works.
* | Add CPack NSIS MUI_FINISHPAGE_RUN support (#11144)Mike McQuaid2011-01-061-0/+11
| | | | | | | | | | | | | | MUI_FINISHPAGE_RUN is frequently used with NSIS and provides a checkbox on the finish page of an installer which specifies whether the specified executable should be run when the installer exits. This commit adds support for this setting in CPack.
* | Add CPACK_NSIS_EXECUTABLES_DIRECTORY (#7828)Mike McQuaid2011-01-061-2/+7
| | | | | | | | | | | | | | | | NSIS installers default to assuming the executables exist in a directory named "bin" under the installation directory. As this isn't usual for Windows programs, the addition of this variable allows the customization of this directory and links still to be created correctly.
* | Allow NSIS package or uninstall icon (#11143)Mike McQuaid2011-01-061-7/+14
|/ | | | | | | | Previously both CPACK_NSIS_MUI_ICON and CPACK_NSIS_MUI_UNIICON needed to be set for either to take effect. This commit allows either to be set rather than requiring both as users may well want to e.g. use a default uninstall icon but a custom install icon.
* CPack: look for makensis in the PATH (#8210)David Cole2010-12-171-9/+23
| | | | | | | | | | | Previously, we would search in the Windows registry for the path to makensis, and fail immediately if we could not read the registry value, assuming that it was simply not installed. This change looks for makensis in the PATH even if the registry value is not there, enabling the scenario where makensis is installed without admin privileges and never even touches HKEY_LOCAL_MACHINE during the non-admin install.
* Fix KWStyle line length issues.Bill Hoffman2010-09-151-1/+2
|
* CPack: Refactor API in order to handle multi-file packagesEric NOULARD2010-08-111-7/+6
| | | | | | | | The multi-argument CompressFiles(...) method has been replace by the no-argument PackageFiles() method and 3 more member variables. This will enable implemention of multi-package generators. Now each specific generator (which overloads PackageFiles()) may decide to change the name and/or the number of generated package files.
* Eliminate -Wconversion warnings.David Cole2010-06-271-1/+1
| | | | | | Change types of local variables, or casting, or re-arrange expressions to get rid of "conversion may alter value" warnings as seen on recent dashboard submissions from londinium.kitware.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* BUG: Fix for issue #7470. Allow spaces in the path names of installed files ↵David Cole2009-01-201-11/+16
| | | | with the NSIS CPack generator and component-based installs. Add an installed file to the CPackComponents test: it failed before the fix; now it passes.
* BUG: Fix issue #7800. Enable CPack to find the NSIS installer on Windows 2000.David Cole2008-10-101-7/+11
|
* STYLE: fix line length stuff for KWStyleBill Hoffman2008-10-011-11/+22
|
* ENH: Further refinement of the CPack components functionality from Doug Gregor.David Cole2008-07-081-19/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Details: ========== - New cpack_add_component, cpack_add_component_group, and cpack_add_install_type "commands" defined as macros in the CPack module. - Documentation for all of the variables and commands in the CPack module. - Added get_cmake_property(... COMPONENTS) to CMake to ask for the names of all components. Used in the CPack module to automatically build component-based installers. (Set CPACK_MONOLITHIC_INSTALL to turn off component-based installation). - A group can declare its PARENT_GROUP, to build an arbitrary hierarchy of groups. - New CPack command cpack_configure_downloads, which creates an installer that downloads only the selected components on-the-fly. Those components marked DOWNLOADED will be separate packages downloaded on-the-fly (or, all packages can be marked as such with the ALL option to cpack_configure_downloads). Individual components are compressed with ZIP at installer-creation time and downloaded/uncompressed by the installer as needed. This feature is only available on Windows with NSIS at the moment. - NSIS installers can install themselves and enable the "Change" button in Add/Remove programs, allowing users to go back and install or remove components. This can be disabled through cpack_configure_downloads, because it's only really useful is most of the application's functionality is in downloaded components. - Bug fix: automatically install everything whose COMPONENT was not specified (it's a hidden, required group) - Bug fix: fixed removal of components when re-running the NSIS installer and unchecking components - Bug fix: NSIS installers now only install/remove the minimal number of files when re-run to update the installation (or by clicking "Change" in Add/Remove programs)
* BUG: Always look for the NSIS reg value in the 32-bit hive even in 64-bit ↵David Cole2008-06-181-1/+2
| | | | builds of CPack.
* COMP: Use cmOStringStream instead of std::ostringstream for the HP compiler.David Cole2008-06-171-3/+3
|
* COMP: Fix errors and warnings from continuous dashboards running different ↵David Cole2008-06-171-1/+1
| | | | compilers...
* ENH: Add patch for feature request #6847 - CPack components for NSIS and ↵David Cole2008-06-171-8/+321
| | | | PackageMaker installers. Thanks to Doug Gregor for all the hard work involved with implementing this patch! Also added new test CPackComponents that is conditionally executed only when NSIS or PackageMaker installer builders are available.
* BUG: fix for bug 6294, correct url for nsisBill Hoffman2008-02-151-1/+1
|
* BUG: fix for 6086 uninstall icon not set rightBill Hoffman2007-12-141-1/+1
|
* ENH: change CPACK_CREATE_DESKTOP_LINKS to something that can handle spaces ↵Bill Hoffman2007-11-071-4/+30
| | | | in the name of the exectuable
* COMP: Fix warnings on 64-bit Mac OS X build. Patch from issue #3697.Brad King2007-11-051-2/+2
|
* ENH: fix line lengthBill Hoffman2007-10-311-1/+2
|
* ENH: cpack changes, remove the escape variable stuff as it is not needed if ↵Bill Hoffman2007-10-311-0/+20
| | | | you provide a config file for cpack
* ENH: add ability to set installer icons, links to web pages, nsis code in ↵Bill Hoffman2007-10-291-6/+25
| | | | the icon section of the template, and ability to escape variables correctly
* ENH: fix line length errorBill Hoffman2007-10-191-3/+4
|
* ENH: add ability to create links on the start menuBill Hoffman2007-10-181-0/+55
|
* ENH: allow for desktop link to be created and fix chop of last char in PATH ↵Bill Hoffman2007-09-181-0/+14
| | | | on uninstall
* ENH: NSIS exists also for Linux, not only Windows, so enable it there tooAlexander Neundorf2007-06-181-1/+11
| | | | | | patch by Michal Čihař <michal (AT) cihar.com> Alex
* STYLE: fix a long lineKen Martin2006-11-171-2/+6
|
* ENH: Expand commentAndy Cedilnik2006-11-141-1/+1
|
* ENH: Add NSIS compressionAndy Cedilnik2006-10-121-0/+1
|
* COMP: Need to use cmsys_stl when in CMake code, not kwsys_stl.Brad King2006-08-271-1/+1
|