From 5f64570db10b0d26b48f239cb7276b4ef4a795b3 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 9 Nov 2006 19:56:01 +0000 Subject: [PATCH] fixed __InstallLib_Helper_InitSession git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4811 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/Library.nsh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Include/Library.nsh b/Include/Library.nsh index e21791d2..f1b5065a 100644 --- a/Include/Library.nsh +++ b/Include/Library.nsh @@ -39,14 +39,20 @@ !endif - StrCmp $__INSTALLLLIB_SESSIONGUID '' 0 +6 + !define __InstallLib_Helper_InitSession_Label "${__FILE__}${__LINE__}" + + StrCmp $__INSTALLLLIB_SESSIONGUID '' 0 "${__InstallLib_Helper_InitSession_Label}" System::Call 'ole32::CoCreateGuid(g .s)' Pop $__INSTALLLLIB_SESSIONGUID - StrCmp $__INSTALLLLIB_SESSIONGUID '' 0 +2 + StrCmp $__INSTALLLLIB_SESSIONGUID '{00000000-0000-0000-0000-000000000000}' 0 +2 StrCpy $__INSTALLLLIB_SESSIONGUID 'session' + "${__InstallLib_Helper_InitSession_Label}:" + + !undef __InstallLib_Helper_InitSession_Label + !macroend ### Add a RegTool entry to register after reboot