FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   App installer (https://fileforums.com/showthread.php?t=106748)

Dunnowho69 21-05-2025 03:43

App installer
 
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

Quote:

Originally Posted by Masquerade (Post 507796)
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.

shazzla 21-05-2025 23:42

https://learn.microsoft.com/en-us/wi...gger/kill-tool

Dunnowho69 22-05-2025 03:52

Quote:

Originally Posted by audiofeel (Post 507805)
Does the deletion not work for you?

[UninstallDelete]
Name: {app}; Type: FilesAndOrDirs

Quote:

Originally Posted by shazzla (Post 507804)

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.

shazzla 22-05-2025 06:45

[UninstallDelete]
Name: {app}\*.*; Type: FilesAndOrDirs

Is the syntax correct? Dont know...
{app}\*.* !!!!
Give it a shot...

crachlow 22-05-2025 13:08

Quote:

Originally Posted by Dunnowho69 (Post 507807)
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.

Code:

[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;



All times are GMT -7. The time now is 22:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com