Author: remi
Date: 2009-06-12 11:27:45 +0200 (Fri, 12 Jun 2009)
New Revision: 4804

Modified:
   software_suite_v3/smart-core/smart-server/trunk/installer.nsi
Log:
* Smart-server can now be installer with user permissions on Windows Vista. 
(Global installer now prepares directory permissions ...)

Modified: software_suite_v3/smart-core/smart-server/trunk/installer.nsi
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/installer.nsi       
2009-06-12 08:30:37 UTC (rev 4803)
+++ software_suite_v3/smart-core/smart-server/trunk/installer.nsi       
2009-06-12 09:27:45 UTC (rev 4804)
@@ -19,8 +19,8 @@
 ; The default installation directory
 InstallDir c:\tuxdroid\bin\tuxhttpserver
 
-; Request application privileges for Windows Vista
-RequestExecutionLevel admin
+; Request application privileges to user
+RequestExecutionLevel user
 
 ; Get the Tuxdroid installation paths
 var /GLOBAL TUXDROID_PATH
@@ -92,13 +92,11 @@
     ; Reveal shortcuts to all users
     SetShellVarContext all
     ; Write shortcut in start menu
-    CreateDirectory "$SMPROGRAMS\Tux Droid"
     CreateDirectory "$SMPROGRAMS\Tux Droid\Smart-Core"
     CreateDirectory "$SMPROGRAMS\Tux Droid\Smart-Core\Smart-Server"
     CreateShortCut "$SMPROGRAMS\Tux Droid\Smart-Core\Smart-Server\Start.lnk" 
"$TUXDROID_PATH\bin\smart_server_start.exe" "" 
"$TUXDROID_PATH\resources\images\tuxsys.ico" 0
     CreateShortCut "$SMPROGRAMS\Tux Droid\Smart-Core\Smart-Server\Stop.lnk" 
"$TUXDROID_PATH\bin\smart_server_stop.exe" "" 
"$TUXDROID_PATH\resources\images\tuxsys.ico" 0
     CreateShortCut "$SMPROGRAMS\Tux Droid\Smart-Core\Smart-Server\Restart.lnk" 
"$TUXDROID_PATH\bin\smart_server_restart.exe" "" 
"$TUXDROID_PATH\resources\images\tuxsys.ico" 0
-    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" 
"Smart-Server" "$TUXDROID_PATH\bin\smart_server_start.exe"
 
     ; Write the uninstall file
     WriteUninstaller "$UNINSTALLERS_SUB_PATH\${UNINSTALLER_EXE}"
@@ -131,9 +129,6 @@
     ReadRegStr $TUXDROID_PATH HKLM "SOFTWARE\Tux Droid\Installation" 
"Install_Dir"
     StrCpy $UNINSTALLERS_SUB_PATH "$TUXDROID_PATH\uninstallers\sub"
 
-    ; Remove registry keys
-    DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" 
"Smart-Server"
-
     ; Remove files and uninstaller
     Delete "$TUXDROID_PATH\bin\smart_server_start.exe"
     Delete "$TUXDROID_PATH\bin\smart_server_stop.exe"


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to