From cbad4036e52dcfab5387f8715933789bc848d5fd Mon Sep 17 00:00:00 2001 From: driAn Date: Thu, 16 Oct 2008 22:12:41 +0000 Subject: [PATCH] activate local DbgHelp.dll if installed on win98 git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3077 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/vcpp/buildEnv/ac.nsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/vcpp/buildEnv/ac.nsi b/source/vcpp/buildEnv/ac.nsi index e3a78e5f..843ae6f5 100644 --- a/source/vcpp/buildEnv/ac.nsi +++ b/source/vcpp/buildEnv/ac.nsi @@ -624,6 +624,25 @@ Section "Desktop Shortcuts" DESKSHORTCUTS SectionEnd +Section "-Debug Helper Library" + + GetVersion::WindowsVersion + Pop $R0 + Push "." ; divider char + Push $R0 ; input string + Call SplitFirstStrPart + Pop $R0 ; major version + Pop $R1 ; minor version + + StrCmp $R0 "4" 0 winvercheckdone ; win98 + + ; make app-specific debug helper library available on win98 + Rename "$INSTDIR\bin_win32\DbgHelp_RemoveThisPartIfOnWin98.DLL" "$INSTDIR\bin_win32\DbgHelp.DLL" + + winvercheckdone: + +SectionEnd + Section "Uninstall" SetShellVarContext all