w10install/optional/install-moneyplex.cmd

35 lines
898 B
Batchfile
Raw Normal View History

2021-03-10 23:09:16 +01:00
@echo off
set CONFIG=config\install-moneyxplex.txt
set EXE=..\software\moneyplex-setup.exe
2021-09-05 17:46:54 +02:00
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
2021-03-10 23:09:16 +01:00
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
echo killing moneyplex processes...
taskkill /F /IM moneyplex.exe 2>nul
echo installing moneyplex ...
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
2021-09-05 17:46:54 +02:00
echo moving moneyplex startmenu shortcut ...
move /Y %STARTMENU%\"moneyplex\moneyplex.lnk" %STARTMENU%\"MoneyPlex.lnk"
echo removing moneyplex startmenu folder ...
rd /S /Q %STARTMENU%\"moneyplex" 2>nul
echo renaming moneyplex icon on desktop ...
move /Y "%PUBLIC%\Desktop\moneyplex.lnk" "%PUBLIC%\Desktop\MoneyPlex.lnk"
rem refresh desktop (W10 style)
ie4uinit.exe -show
2021-03-10 23:09:16 +01:00
echo ####### %0 #######
pause