Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20-05-2021, 04:16
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2  
Old 20-05-2021, 04:27
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
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.
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
GaMEr_2077 (20-05-2021), Grumpy (20-05-2021), pratikpatel8982 (20-05-2021)
  #3  
Old 20-05-2021, 04:32
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
what does
Type: files
signify
Reply With Quote
  #4  
Old 20-05-2021, 06:09
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
Code:
procedure CurStepChanged(CurStep: TSetupStep);
begin
  if CurStep = ssPostInstall then begin
    DeleteFile(ExpandConstant('{app}\myfile.txt'))
end;
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
GaMEr_2077 (20-05-2021)
  #5  
Old 20-05-2021, 07:39
:( Sad8669 :( Sad8669 is offline
Registered User
 
Join Date: Oct 2020
Location: -
Posts: 203
Thanks: 97
Thanked 188 Times in 101 Posts
:( Sad8669 is on a distinguished road
Another way to do so,

Code:
[Run]
Filename: "{app}\delete.bat"; Parameters: "install"; Flags: runhidden
delete.bat
Code:
del /q yourfilenamehere
del %0

Last edited by :( Sad8669; 20-05-2021 at 07:46.
Reply With Quote
The Following 3 Users Say Thank You to :( Sad8669 For This Useful Post:
GaMEr_2077 (20-05-2021), Harsh ojha (20-05-2021), pratikpatel8982 (25-05-2021)
  #6  
Old 20-05-2021, 10:39
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
Hey @Mods
I think @SolupredDrogue is spamming irrelevantly
Close this thread now
Got my answer......
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 15:55.


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