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:
aheritier
2006-10-28 22:58:44 +00:00
parent 4f7d04c411
commit d632ebba7f
4 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
; remove shortcuts, if any.
Delete "$${PROJECT_STARTMENU_FOLDER}\*.*"
RMDir "$${PROJECT_STARTMENU_FOLDER}"

View File

@@ -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

View File

@@ -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>

View File

@@ -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>