CALL Msg_Con_Log('H ModAS deactivated by user request ..')
CALL DELAY(100)
IF EXISTS('SYS:StartSys/a_Init') & EXISTS('SYS:StartSys/e_WB') & EXISTS('S:User-Startup.before_ModAS') & EXISTS('S:Startup-Sequence.before_ModAS') THEN
DO
CALL Msg_Con_Log('HHH Reconstructing standard startup...')
r=WriteLn(CpDeInst,'echo "*ec*n*n*e[1m Restoring/Removing*e[0m installed Files in *e[1m'DestDir'*e[0m ..."')
r=WriteLn(CpDeInst,'wait 3')
CALL OpenCon(InstName' copying..')
a=CR""InstName""CR CR" Searching duplicate files and copying is in progress."CR" You will be asked if a file would be replaced."CR" (Go, and drink a coffee :)"CR CR" Source Folder: "SourceDir CR" Destin Folder: "DestDir
r=WriteLn(fCon,a)
r=WriteLn(LOGFILE,CR' Actions for 'InstName':'CR CR a CR)
Files.count=1
Files.1=SourceDir
FileOp=copy
FileOpOpts='CLONE 'Recursive
k=1
IconExists=0
IF ~(RIGHT(Files.1,1)=':') THEN Files.1=Files.1'/'
CALL CheckSource
MainDestDir=DestDir
MainDirLength=LENGTH(Files.k)
theDir=strip(MainDestDir,'T','/')
IF (IsDir(theDir)=-1) THEN ADDRESS COMMAND 'makedir "'theDir'"'
IF ~Open(MAINFILE,MainLog,'R') THEN CALL Err_ShowMessage(MainLog)
IF ~Open(fTMP,TempLog,'W') THEN CALL Err_ShowMessage(TempLog)
line=' '
LastEntry=0
NewEntry=1
FirstNewLine=' @{" " link 'SubLog'/main} Show the Install-Log for @{b}'InstModule'@{ub}'
SecondLine=' @{" " SYSTEM "NewShell CON:56/'ReqTE'/584/150/DeInstalling_bak/AUTO/NOCLOSE FROM 'UndoBak'"} Remove all 'InstModule' Installation-Backups'