[ekiga] [windows] Fix starting Ekiga from last page of installer



commit 9c38136432c1fb7c335ad675782527d3a60dca11
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Wed May 26 23:21:28 2010 +0200

    [windows] Fix starting Ekiga from last page of installer
    
    Fixes bug #597306.

 win32/nsisinstaller/ekiga.nsi |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/win32/nsisinstaller/ekiga.nsi b/win32/nsisinstaller/ekiga.nsi
index 91402bc..62e89ac 100644
--- a/win32/nsisinstaller/ekiga.nsi
+++ b/win32/nsisinstaller/ekiga.nsi
@@ -222,6 +222,18 @@ Section $(GTK_SECTION_TITLE) SecGtk
     StrCmp $R1 "NONE" gtk_no_install_rights
     ClearErrors
     ExecWait '"$TEMP\${GTK_RUNTIME_INSTALLER}" /L=$LANGUAGE $ISSILENT /DIR="$GTK_FOLDER" /IGNOREERRORS'
+    ; now the GTK path needs to be added to the path of the setup
+    ; so that Ekiga could be started from the last page
+    ReadEnvStr $R0 "PATH"
+    StrCmp $R6 "HKLM" hklm1 hkcu1
+    hklm1:
+      ReadRegStr $R3 HKLM ${GTK_REG_KEY} "Path"
+      Goto hk1
+    hkcu1:
+      ReadRegStr $R3 HKCU ${GTK_REG_KEY} "Path"
+    hk1:
+    StrCpy $R0 "$R0;$R3\bin"
+    System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("PATH", R0).r0'
     Goto gtk_install_cont
 
   upgrade_gtk:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]