-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforce_update_plugin.bat
More file actions
53 lines (44 loc) · 2.06 KB
/
Copy pathforce_update_plugin.bat
File metadata and controls
53 lines (44 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
echo Force updating Contextform plugin...
echo.
REM Kill Rhino completely
echo Step 1: Closing all Rhino processes...
taskkill /F /IM Rhino.exe 2>nul
taskkill /F /IM Rhino7.exe 2>nul
taskkill /F /IM Rhino8.exe 2>nul
timeout /t 3 >nul
REM Clean all possible plugin locations
echo Step 2: Removing ALL Contextform plugin traces...
REM Rhino 7 locations
rmdir /s /q "%APPDATA%\McNeel\Rhinoceros\7.0\Plug-ins\Contextform (3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e)" 2>nul
rmdir /s /q "%APPDATA%\McNeel\Rhinoceros\7.0\Plug-ins\3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e" 2>nul
del /q "%APPDATA%\McNeel\Rhinoceros\7.0\Plug-ins\Contextform.rhp" 2>nul
REM Rhino 8 locations
rmdir /s /q "%APPDATA%\McNeel\Rhinoceros\8.0\Plug-ins\Contextform (3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e)" 2>nul
rmdir /s /q "%APPDATA%\McNeel\Rhinoceros\8.0\Plug-ins\3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e" 2>nul
del /q "%APPDATA%\McNeel\Rhinoceros\8.0\Plug-ins\Contextform.rhp" 2>nul
REM Clean registry entries for Rhino 7
echo Step 3: Cleaning registry entries...
reg delete "HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\7.0\Plug-Ins\3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e" /f 2>nul
reg delete "HKEY_LOCAL_MACHINE\Software\McNeel\Rhinoceros\7.0\Plug-Ins\3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e" /f 2>nul
REM Clean registry entries for Rhino 8
reg delete "HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\8.0\Plug-Ins\3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e" /f 2>nul
reg delete "HKEY_LOCAL_MACHINE\Software\McNeel\Rhinoceros\8.0\Plug-Ins\3f85ca5d-7b5b-4c0e-9f2a-1d6e8c4b9a2e" /f 2>nul
echo.
echo Step 4: Creating clean install script...
REM Create a Rhino script to install the plugin
echo _-PluginManager _Load "D:\contextform_rhino\Contextform.rhp" _Enter > "%TEMP%\install_contextform.txt"
echo.
echo =====================================================
echo Cleanup complete!
echo.
echo Now please:
echo 1. Open Rhino
echo 2. Type: ReadCommandFile
echo 3. Select: %TEMP%\install_contextform.txt
echo.
echo Or manually drag and drop:
echo D:\contextform_rhino\Contextform.rhp
echo =====================================================
echo.
pause