FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Deleting a file on setup exit (https://fileforums.com/showthread.php?t=104434)

GaMEr_2077 20-05-2021 04:16

Deleting a file on setup exit
 
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

Cesar82 20-05-2021 04:27

Don't be creating a thread for each of your questions,
Use the thread INNO TROUBLESHOOT - Questions Here

Code:

[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

Code:

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,

Code:

[Run]
Filename: "{app}\delete.bat"; Parameters: "install"; Flags: runhidden

delete.bat
Code:

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......


All times are GMT -7. The time now is 20:38.

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