-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test CI on the uninstaller fixes (#696)
* Merge pull request from GHSA-v8h5-w775-5rrw * Only run uninstaller on directory with _conda.exe * Do not run uninstaller in system-critical directories * Add loop to check for minimum conda files * Add missing goto after passing all checks * Add push/pop operations to un.onInit * Fix typo * Use WordFind instead of UnStrTok * Start WordFind loop with 1 * Add additional files to check for conda * Add confirmation dialog before uninstalling * Resolve INSTDIR * Add exceptions to fill_template * Do not replace NSIS predefines * Add example template * Update constructor/nsis/main.nsi.tmpl Co-authored-by: jaimergp <[email protected]> * Add check for GetFullPathName * Add additional directory checks for uninstaller * Add quotes to INSTDIR in uninstaller message * Add check to GetFullPathName * Add additional directory checks for uninstaller * Add check to GetFullPathName for uninstaller * Remove duplicate comment * Replace missing global variable with local variable * Fix INSTDIR path resolution command * Fix GetFullPathName logic * Replace @name@ with ${NAME} --------- Co-authored-by: jaimergp <[email protected]> * add news * Remove Scripts\activate.bat from required files on $INSTDIR (some installers do not ship conda) --------- Co-authored-by: Marco Esters <[email protected]>
- Loading branch information
1 parent
0c2bd78
commit bc0d653
Showing
7 changed files
with
877 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Copyright (c) 2016, Example, Inc. | ||
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 Example, Inc. 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 EXAMPLE, INC. 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. | ||
|
||
The License has to be read correctly so that dollar signs don't lead to an unset | ||
parameter error: | ||
You have to pay US $8, if you can read this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: custom | ||
version: X | ||
ignore_duplicate_files: True | ||
installer_filename: {{ name }}-installer.exe | ||
installer_type: exe | ||
license_file: EULA.txt | ||
|
||
nsis_template: custom.nsi.tmpl | ||
|
||
# This is required, even if we include no specs in this installer. | ||
channels: | ||
- https://repo.anaconda.com/pkgs/main |
Oops, something went wrong.