|
#1
|
|||
|
|||
|
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
|
| Sponsored Links |
|
#2
|
||||
|
||||
|
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
Last edited by Cesar82; 20-05-2021 at 04:29. |
| The Following 3 Users Say Thank You to Cesar82 For This Useful Post: | ||
|
#3
|
|||
|
|||
|
what does
Type: files signify |
|
#4
|
|||
|
|||
|
Code:
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssPostInstall then begin
DeleteFile(ExpandConstant('{app}\myfile.txt'))
end;
|
| The Following User Says Thank You to Masquerade For This Useful Post: | ||
GaMEr_2077 (20-05-2021) | ||
|
#5
|
|||
|
|||
|
Another way to do so,
Code:
[Run]
Filename: "{app}\delete.bat"; Parameters: "install"; Flags: runhidden
Code:
del /q yourfilenamehere del %0 Last edited by :( Sad8669; 20-05-2021 at 07:46. |
| The Following 3 Users Say Thank You to :( Sad8669 For This Useful Post: | ||
|
#6
|
|||
|
|||
|
Hey @Mods
I think @SolupredDrogue is spamming irrelevantly Close this thread now Got my answer...... |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Useful Dll for Inno Setup users | peterf1999 | Conversion Tutorials | 88 | 01-12-2017 16:00 |
| [Help] Error when file Setup run? | photuong1994 | Conversion Tutorials | 1 | 31-12-2014 21:48 |
| Need for Speed(TM) Hot Pursuit 1(DVD9) x 2(DVD5) | mauricioperroni | PC Games - CD/DVD Conversions | 4 | 02-05-2011 02:02 |
| HELP ME PLZ!!!! | Dalvin | DC Games | 0 | 02-01-2001 22:15 |