# SetupPsychtoolbox can but remove old Psychtoolbox completely

**URL:** <https://psychtoolbox.discourse.group/t/setuppsychtoolbox-can-but-remove-old-psychtoolbox-completely/1994>\
**Category:** Uncategorized\
**Created:** [August 21, 2008, 6:34am UTC](https://psychtoolbox.discourse.group/t/setuppsychtoolbox-can-but-remove-old-psychtoolbox-completely/1994 "2008-08-21T06:34:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [August 21, 2008, 6:34am UTC](https://psychtoolbox.discourse.group/t/setuppsychtoolbox-can-but-remove-old-psychtoolbox-completely/1994/1 "2008-08-21T06:34:49Z")

</div>

MATLAB Version 7.2.0.232 (R2006a)  
Operating System: Microsoft Windows XP Version 5.1   
 (Build 2600: Service Pack 2)  
Java VM Version: Java 1.5.0 with Sun Microsystems Inc.   
 Java HotSpot(TM) Client VM mixed mode  
svn, version 1.5.0 (r31699) compiled Jun 19 2008, 11:40:05  
Psychtoolbox Version 3.0.8 9 October  
  
----------------------------------------------------------  
  
My old PsychtoolboxRoot was  
 C:\Program Files\osxptb\PsychtoolboxOS9-2.56  
I used subversion to downloaded the lastest Psychtoolbox in   
 C:\Program Files\osxptb\beta\Psychtoolbox  
and ran SetupPsychtoolbox.  
Then when I used "Set Path" dialog to see the path,   
the pathes of PTB2 were still in my MATLAB path.  
  
----------------------------------------------------------  
  
I guess the problem is when SetupPsychtoolbox executed,   
It just remove the pathes with a folder exact named 'Psychtoolbox'.  
So I suggest SetupPsychtoolbox can also remove the pathes   
whose prefix equal to PsychtoolboxRoot   
when SetupPsychtoolbox want to remove old Psychtoolboxes.
