diff --git a/direct/src/directscripts/packpanda.nsi b/direct/src/directscripts/packpanda.nsi index 78e829b48d..dad5e4beb5 100755 --- a/direct/src/directscripts/packpanda.nsi +++ b/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