#1
|
|||
|
|||
Problem with Wpi script
i have a problem. Actually i use wpi installer by razor, but in the instalation during extraction files, when i click to cancel the program closes but not delete the extracted files (only when appear some error). Also, when i use pzlib v3, the setup not closes the program, it keep running in task manager and the instalation not be canceled. How to fix this ?. I need to add some code to my scrip ? Thanks
Last edited by Sebazz; 24-04-2017 at 09:49. |
Sponsored Links |
#2
|
|||
|
|||
![]() Quote:
I didn't use WPI. But You may try this code.! It may be helpfull. Under cancelbutton click section You need to add this. Quote:
|
#3
|
|||
|
|||
Quote:
![]() ![]() Last edited by Sebazz; 26-04-2017 at 15:53. |
#4
|
||||
|
||||
try reading the script portion ffmla posted? answer is right there lines 2 & 3
you need those 2 lines before your line 2 section. |
The Following 2 Users Say Thank You to pakrat2k2 For This Useful Post: | ||
Epic Titan 69 (01-03-2021), Sebazz (26-04-2017) |
#5
|
|||
|
|||
Quote:
var ResultCode: Integer; pzlib problem worked but the script dont deleted the extracted files after cancel ![]() Last edited by Sebazz; 26-04-2017 at 20:00. |
#6
|
||||
|
||||
Code:
Exec(ExpandConstant('{sys}\taskkill.exe'), ' /F /IM pZLib.exe', '', SW_HIDE, ewNoWait, ISDoneCancel); |
The Following User Says Thank You to Simorq For This Useful Post: | ||
Sebazz (27-04-2017) |
#7
|
|||
|
|||
This code not worked
![]() DelTree(ExpandConstant('{app}'), True, True, True); |
#8
|
||||
|
||||
Script Upload
|
#9
|
|||
|
|||
|
#11
|
|||
|
|||
- 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); 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. |
#13
|
|||
|
|||
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |