@echo off
cd /d "%~dp0"
set sf=%~dp0
set sf=%sf:\=\\%

reg add "HKLM\SOFTWARE\WOW6432Node\Kingsoft\Office\6.0\wpsoffice\Application Settings" /f /v "AppComponentMode" /t REG_SZ /d "prome_independ"
reg add "HKU\S-1-5-19\SOFTWARE\Kingsoft\Office\6.0\et" /f /v "uifile" /t REG_SZ /d "res/etongmani.kui"
reg add "HKU\S-1-5-19\SOFTWARE\Kingsoft\Office\6.0\wpp" /f /v "uifile" /t REG_SZ /d "res/wppongmani.kui"
reg add "HKU\S-1-5-19\SOFTWARE\Kingsoft\Office\6.0\wps" /f /v "uifile" /t REG_SZ /d "res/wpsongmani.kui"
reg add "HKU\S-1-5-20\SOFTWARE\Kingsoft\Office\6.0\et" /f /v "uifile" /t REG_SZ /d "res/etongmani.kui"
reg add "HKU\S-1-5-20\SOFTWARE\Kingsoft\Office\6.0\wpp" /f /v "uifile" /t REG_SZ /d "res/wppongmani.kui"
reg add "HKU\S-1-5-20\SOFTWARE\Kingsoft\Office\6.0\wps" /f /v "uifile" /t REG_SZ /d "res/wpsongmani.kui"
reg add "HKCU\SOFTWARE\Kingsoft\Office\6.0\et" /f /v "uifile" /t REG_SZ /d "res/etongmani.kui"
reg add "HKCU\SOFTWARE\Kingsoft\Office\6.0\wpp" /f /v "uifile" /t REG_SZ /d "res/wppongmani.kui"
reg add "HKCU\SOFTWARE\Kingsoft\Office\6.0\wps" /f /v "uifile" /t REG_SZ /d "res/wpsongmani.kui"

if not exist "%appdata%\Kingsoft\office6\skins\default" md "%appdata%\Kingsoft\office6\skins\default"
cd.>"%appdata%\Kingsoft\office6\skins\default\histroy.ini"
>>"%appdata%\Kingsoft\office6\skins\default\histroy.ini" echo [wpsoffice]
>>"%appdata%\Kingsoft\office6\skins\default\histroy.ini" echo lastSkin=2018white
>>"%appdata%\Kingsoft\office6\skins\default\histroy.ini" echo history=2018white, 2019dark
>>"%appdata%\Kingsoft\office6\skins\default\histroy.ini" echo. 
>>"%appdata%\Kingsoft\office6\skins\default\histroy.ini" echo [skinPathPool]
>>"%appdata%\Kingsoft\office6\skins\default\histroy.ini" echo 2018white=%sf%office6/skins/2018white
>>"%appdata%\Kingsoft\office6\skins\default\histroy.ini" echo 2019dark=
