![]() |
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
|
You may try this
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:
|
Quote:
https://k61.kn3.net/D94214B3B.jpg |
try reading the script portion ffmla posted? answer is right there lines 2 & 3
you need those 2 lines before your line 2 section. |
Quote:
var ResultCode: Integer; pzlib problem worked but the script dont deleted the extracted files after cancel :( |
Code:
Exec(ExpandConstant('{sys}\taskkill.exe'), ' /F /IM pZLib.exe', '', SW_HIDE, ewNoWait, ISDoneCancel); |
This code not worked :(
DelTree(ExpandConstant('{app}'), True, True, True); |
Quote:
|
1 Attachment(s)
Quote:
|
Quote:
|
- 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);Code:
function deleteDir(): Boolean; |
~~~~~~~~~~~~~~~
1 Attachment(s)
Solved
|
Quote:
|
| All times are GMT -7. The time now is 11:01. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com