@echo on
@setlocal
@set this=%~dp0
@set thisn=%~nx0
@set name=AddOnStudio

@echo %this%%thisn%

@echo.
@echo This will enable setup for %name%.
@echo.

@copy /Y /B reset.cmd reset_init.cmd

@FOR %%X IN ("%this%*%name%.exe") DO @CALL :RESET "%%X"

@GOTO :EOF

:RESET
@set file=%~n1
@set app=%this%%file%.exe

@echo.
@echo Enabling setup for %file%
@echo.
@pushd %this%


@start /b "" "%app%" /log
@echo.
@echo %file% setup is complete
@echo.

@popd
@goto :EOF


