From ba06e3e447341ae8f4bb0d3fa52617af7258c8f3 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 16 Jul 2011 22:48:17 -0500 Subject: [PATCH] installer update of no consequence --- sm-ssc.nsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sm-ssc.nsi b/sm-ssc.nsi index 293c2ab13b..f0644064db 100644 --- a/sm-ssc.nsi +++ b/sm-ssc.nsi @@ -52,8 +52,16 @@ SetDateSave on ; (can be on to have files restored to their orginal date) ; I think it may need actual admin privs for writing to the registry... -aj - ; RequestExecutionLevel user - ; this folder may not be the best idea for Windows Vista/7. -aj + ;RequestExecutionLevel user + + ;GetVersion::WindowsServicePackMajor + ;Pop $R0 + ;${If} $R0 >= 6 + ; vista & 7 + ;${Else} + ; xp and below + ;${EndIf} + InstallDir "$PROGRAMFILES\${PRODUCT_ID}" InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${PRODUCT_ID}" ""