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 27-04-2017, 17:59
Sebazz Sebazz is offline
Registered User
 
Join Date: Mar 2016
Location: Terra
Posts: 60
Thanks: 24
Thanked 7 Times in 6 Posts
Sebazz is on a distinguished road
- No, any code dont work for delete folder with all extracted files from Program Files when i cancel during instalation.
I tried this and any worked.

Code:
Exec(ExpandConstant('{uninstallexe}'),'/verysilent','',SW_HIDE, ewWaitUntilTerminated, ResultCode);

or/and

DelTree(ExpandConstant('{app}'), True, True, True);
- Searching in the web i found this code, but i dont know how implement this in the CancelButtonClick Code or if can work

Code:
function deleteDir(): Boolean;
var
ResultCode: Integer;
begin
//allow to delete completely installation folder
Exec('cmd', ExpandConstant('/c RMDIR /S /Q "{app}"'), '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
Result := True;
end;

Last edited by Sebazz; 27-04-2017 at 18:11.
Reply With Quote
Sponsored Links
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
Problem with script inno - cancel select language nizcoz Conversion Tutorials 5 19-10-2016 00:10
problem Unistall with CIU v2 alucard1973 Conversion Tutorials 2 15-12-2015 02:43
Bat script installer problem -help? - DarkSoul19 Conversion Tutorials 0 11-10-2015 20:43
dvd playing problem... themis_t CD/DVD Software & Utilities 6 20-10-2004 13:44



All times are GMT -7. The time now is 08:16.


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