Basic example: added XPUI_SYSDIR support for testing purposes
authorDan
Mon, 07 Sep 2009 20:33:58 -0400
changeset 17 26f838554c9e
parent 16 13a1c9383c02
child 18 0f79de3ac304
Basic example: added XPUI_SYSDIR support for testing purposes
Examples/ExperienceUI/Basic.nsi
--- a/Examples/ExperienceUI/Basic.nsi	Mon Aug 03 22:17:31 2009 -0400
+++ b/Examples/ExperienceUI/Basic.nsi	Mon Sep 07 20:33:58 2009 -0400
@@ -7,7 +7,12 @@
 ;--------------------------------
 ;Include ExperienceUI
 
-  !include "XPUI.nsh"
+  !ifdef XPUI_SYSDIR
+    !include "${XPUI_SYSDIR}\XPUI.nsh"
+  !else
+    ; just hope NSIS has XPUI.nsh installed
+    !include "XPUI.nsh"
+  !endif
 
 ;--------------------------------
 ;General
@@ -88,4 +93,4 @@
 
   DeleteRegKey /ifempty HKCU "Software\ExperienceUI Test"
 
-SectionEnd
\ No newline at end of file
+SectionEnd