View Full Version : Deleting a file on setup exit
GaMEr_2077
20-05-2021, 04:16
Hey all
can anyone tell me how can i ensure that a specific file is deleted after the setup finishes installation
path of file to be deleted is like this
{app}\name of file.extension
THANKS:D
Don't be creating a thread for each of your questions,
Use the thread INNO TROUBLESHOOT - Questions Here (https://www.fileforums.com/showthread.php?t=93193)
[InstallDelete]
Name: {app}\FileName.txt; Type: files
GaMEr_2077
20-05-2021, 04:32
what does
Type: files
signify
Masquerade
20-05-2021, 06:09
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssPostInstall then begin
DeleteFile(ExpandConstant('{app}\myfile.txt'))
end;
:( Sad8669
20-05-2021, 07:39
Another way to do so,
[Run]
Filename: "{app}\delete.bat"; Parameters: "install"; Flags: runhidden
delete.bat
del /q yourfilenamehere
del %0
GaMEr_2077
20-05-2021, 10:39
Hey @Mods
I think @SolupredDrogue is spamming irrelevantly
Close this thread now
Got my answer......
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.