Seite 1 von 1

"delete -sf" Not deleting all subfolders/files

Verfasst: 23 Nov 2023, 17:31
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!

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

Verfasst: 27 Nov 2023, 12:17
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