MPNSIS-13 : The script "remove-shortcuts.nsh" can be used to remove shortcuts created in "startmenu-shortcuts.nsh" and "desktop-shortcuts.nsh".
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@468782 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
3
nsis/src/plugin-resources/remove-shortcuts.nsh
Normal file
3
nsis/src/plugin-resources/remove-shortcuts.nsh
Normal file
@@ -0,0 +1,3 @@
|
||||
; remove shortcuts, if any.
|
||||
Delete "$${PROJECT_STARTMENU_FOLDER}\*.*"
|
||||
RMDir "$${PROJECT_STARTMENU_FOLDER}"
|
||||
@@ -46,7 +46,7 @@
|
||||
; macro to check if the jdk is installed
|
||||
!include "JDK.nsh"
|
||||
|
||||
; Fonctions to set/remove environment variables
|
||||
; Functions to set/remove environment variables
|
||||
!include "Environment.nsh"
|
||||
|
||||
; include project specific details
|
||||
@@ -152,9 +152,7 @@ Section "Uninstall"
|
||||
; MUST REMOVE UNINSTALLER, too
|
||||
Delete $$INSTDIR\Uninst.exe
|
||||
|
||||
; remove shortcuts, if any.
|
||||
Delete "$${PROJECT_STARTMENU_FOLDER}\*.*"
|
||||
RMDir "$${PROJECT_STARTMENU_FOLDER}"
|
||||
!include "remove-shortcuts.nsh"
|
||||
|
||||
; Recursively remove files and directories used
|
||||
; this should also take care of the installer
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="2.1-SNAPSHOT" date="In SVN">
|
||||
<action dev="aheritier" type="add" issue="MPNSIS-13">The script "remove-shortcuts.nsh" can be used to remove shortcuts created in "startmenu-shortcuts.nsh" and "desktop-shortcuts.nsh".</action>
|
||||
<action dev="aheritier" type="update">Set compress options (force/lzma).</action>
|
||||
<action dev="aheritier" type="update" issue="MPNSIS-12">NSIS plugin does not support silent uninstall. Remove the final dialog box.</action>
|
||||
</release>
|
||||
|
||||
@@ -160,6 +160,10 @@
|
||||
<td>registry-uninstall.nsh</td>
|
||||
<td>Allow customization of environment variables and registry entries to be removed on uninstall</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>remove-shortcuts.nsh</td>
|
||||
<td>Allow customization of shortcuts deletion. The default script removes everything in ${PROJECT_STARTMENU_FOLDER}.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>startmenu-shortcuts.nsh</td>
|
||||
<td>Allow start menu shortcuts to be added</td>
|
||||
|
||||
Reference in New Issue
Block a user