@echo off
set /p "name=please enter piti's location(p.s.C:\Users\Piti\AppData\Roaming\xinghangInc\piti):"

reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\PowerPoint\Addins\xinghangInc.piti" /v Description /t reg_sz /d "addin from xinghang" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\PowerPoint\Addins\xinghangInc.piti" /v FriendlyName /t reg_sz /d "Piti" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\PowerPoint\Addins\xinghangInc.piti" /v LoadBehavior /t reg_dword /d 00000003 /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\PowerPoint\Addins\xinghangInc.piti" /v Dir /t reg_sz /d %name% /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\PowerPoint\Addins\xinghangInc.piti" /v Manifest /t reg_sz /d "%name%\piti.vsto|vstolocal" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\piti" /v FriendlyName /t reg_sz /d "Piti" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\piti" /v UninstallString /t reg_sz /d %name%\uninst.exe /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\piti" /v DisplayVersion /t reg_sz /d "official" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\piti" /v URLInfoAbout /t reg_sz /d "https://www.piti.fun" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\piti" /v Publisher /t reg_sz /d "xinghangInc" /f
echo fix finish...
pause