Browse Source

Move SetRegView to appropriate sections

rdb 12 years ago
parent
commit
5f9545a914
1 changed files with 8 additions and 4 deletions
  1. 8 4
      direct/src/directscripts/packpanda.nsi

+ 8 - 4
direct/src/directscripts/packpanda.nsi

@@ -38,10 +38,6 @@ OutFile "${OUTFILE}"
 SetCompress auto
 SetCompressor ${COMPRESSOR}
 
-!ifdef REGVIEW
-SetRegView ${REGVIEW}
-!endif
-
 !define MUI_WELCOMEFINISHPAGE_BITMAP "${IBITMAP}"
 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "${UBITMAP}"
 
@@ -245,6 +241,10 @@ SectionEnd
 
 Section -post
 
+        !ifdef REGVIEW
+        SetRegView ${REGVIEW}
+        !endif
+
         !ifndef PPGAME
 
         # Add the "bin" directory to the PATH.
@@ -287,6 +287,10 @@ SectionEnd
 
 Section Uninstall
 
+        !ifdef REGVIEW
+        SetRegView ${REGVIEW}
+        !endif
+
         !ifndef PPGAME
         Push "$INSTDIR\python"
         Call un.RemoveFromPath