"delete -sf" Not deleting all subfolders/files

Antworten
theoooo
Beiträge: 1
Registriert: 23 Nov 2023, 17:25

"delete -sf" Not deleting all subfolders/files

Beitrag von theoooo »

In the delsub.ins file of an application, it calls to delete the installation dir:

Code: Alles auswählen

delete -sf "$InstallDir$\"
However, a folder with txt files remains (C:\Program Files (x86)\PlotSoft\PDFill\Saved\CustomShapes)

Is there a way to force the deletion of the files and folder? Or a work around to get the files and folder gone? Maybe move them to a directory and then delete?

Code: Alles auswählen

$InstallDir$ = "%ProgramFiles32Dir%\PlotSoft\PDFill"
Thank you!
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: "delete -sf" Not deleting all subfolders/files

Beitrag von wolfbardo »

theoooo hat geschrieben: 23 Nov 2023, 17:31 In the delsub.ins file of an application, it calls to delete the installation dir:

Code: Alles auswählen

delete -sf "$InstallDir$\"
However, a folder with txt files remains (C:\Program Files (x86)\PlotSoft\PDFill\Saved\CustomShapes)

Is there a way to force the deletion of the files and folder? Or a work around to get the files and folder gone? Maybe move them to a directory and then delete?

Code: Alles auswählen

$InstallDir$ = "%ProgramFiles32Dir%\PlotSoft\PDFill"
Thank you!
We recommend using instead of

Code: Alles auswählen

delete
.

Regarding you problem :

May be deleting the directory fails, cause some processes of the application have to be stopped before deleting the files via opsi-script.


regards,
bardo wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Antworten