[vlmc-devel] NSIS: Add uninstall information.
Rohit Yadav
git at videolan.org
Mon Jun 6 17:11:57 CEST 2011
vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Mon Jun 6 20:57:32 2011 +0530| [e81838d07f18311a727c6edffa03b9f47df0318a] | committer: Rohit Yadav
NSIS: Add uninstall information.
Add display icon, url, version and publisher information.
The information is shown to a user when vlmc is uninstalled,
using Add/Remove or Uninstall a program via control panel.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=e81838d07f18311a727c6edffa03b9f47df0318a
---
nsis/installer.nsi | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/nsis/installer.nsi b/nsis/installer.nsi
index 39c7b02..54a1b06 100644
--- a/nsis/installer.nsi
+++ b/nsis/installer.nsi
@@ -81,6 +81,10 @@ Section "@PROJECT_NAME_SHORT@ (required)"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayName" "@PROJECT_NAME_LONG@"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayIcon" '"$INSTDIR\vlmc.exe"'
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayVersion" "@PROJECT_VERSION@"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "Publisher" "VideoLAN"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "URLInfoAbout" "http://www.videolan.org/vlmc/"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoRepair" 1
More information about the Vlmc-devel
mailing list