View Full Version : App installer
Dunnowho69
21-05-2025, 03:43
Hello guys,
I was trying to make a simple appinstaller but no matter what i try the uninstaller always leaves behind some files telling me to remove them manually. But i want all the files to be deleted automatically even if the app was running. Would be really grateful if someone could provide me with such a script or guide me on how to do it :o
Masquerade
21-05-2025, 13:32
You cannot delete files when that are currently being used by a running program.
Dunnowho69
21-05-2025, 19:09
You cannot delete files when that are currently being used by a running program.
Then how about killing the processes or something like that to delete the files? I have seen some where even if the app was running it still deletes all the files somehow.
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/kill-tool
Dunnowho69
22-05-2025, 03:52
Does the deletion not work for you?
[UninstallDelete]
Name: {app}; Type: FilesAndOrDirs
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/kill-tool
Thank you both for the suggestions but none of them worked for me unfortunately. It seems the only option is to schedule a proper removal during next startup.
[UninstallDelete]
Name: {app}\*.*; Type: FilesAndOrDirs
Is the syntax correct? Dont know...
{app}\*.* !!!!
Give it a shot...
crachlow
22-05-2025, 13:08
Thank you both for the suggestions but none of them worked for me unfortunately. It seems the only option is to schedule a proper removal during next startup.
[Setup]
AppVersion=1.5
AppName=My Prog
DefaultDirName=My Prog
ChangesAssociations=false
SolidCompression=no
OutputDir=.
[_Code]
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usPostUninstall then
DelTree(ExpandConstant('{app}'), True, True, True);
end;
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.