setup script removes startup shortcut and runs with highest exec level
authorsirius-m <sirius-m@1a98c847-1fd6-4fd8-948a-caf3550aa51b>
Fri, 30 Oct 2009 00:45:35 +0000 (00:45 +0000)
committersirius-m <sirius-m@1a98c847-1fd6-4fd8-948a-caf3550aa51b>
Fri, 30 Oct 2009 00:45:35 +0000 (00:45 +0000)
setup.nsi

index 023914f..e30ff13 100644 (file)
--- a/setup.nsi
+++ b/setup.nsi
@@ -3,6 +3,8 @@
 \r
 Name Bitcoin\r
 \r
+RequestExecutionLevel highest\r
+\r
 # General Symbol Definitions\r
 !define REGKEY "SOFTWARE\$(^Name)"\r
 !define VERSION 0.1.6\r
@@ -110,6 +112,7 @@ Section -un.post UNSEC0001
     DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"\r
     Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Bitcoin.lnk"\r
     Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk"\r
+    Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk"\r
     Delete /REBOOTOK $INSTDIR\uninstall.exe\r
     Delete /REBOOTOK $INSTDIR\db.log\r
     DeleteRegValue HKCU "${REGKEY}" StartMenuGroup\r