Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have read its Help Document,I found there is a function named "Abort" can terminate the process if it called from "InitializeSetup" or several other procedures.But I guess this is not a secure and normal terminate function.How can I stop an innosetup installation process in a secure and normal way whenever the process is running?

What I have tried:

Read the Help Document and read again again and again.
Posted
Updated 4-Sep-16 19:46pm

1 solution

Hello,

The only way to terminate setup is calling a function that simulates
Cancel click. Currently, you should simply complain by MsgBox in
NextButtonClick event handler if a certain file is not found and return
False (to prevent page from changing).


Taken from: Re: Abort Installation in Code - yet?[^]

Things may have changed since then though, and I think you could probably seek help in InnoSetup's own Newsgroups[^]

PS: I'm not sure why's your query tagged as C++ as it's got nothing to do with C++.
 
Share this answer
 
Comments
TimGallin 5-Sep-16 2:34am    
Thanks for you comments,I'm used to tag c++,maybe I should have tagged as pascal or innosetup.I remember that codeproject not support custom tags... Now I found the installation can be stopped in InitializeSetup before anything is installed,maybe there is a way to send close message to the process instead of click the cancelbtn to stop the installation,I haven't tried this method so far...
Rajesh R Subramanian 5-Sep-16 2:35am    
While you're welcome to post questions here, I personally feel that questions relating specifically to Innosetup will get more attention at Innosetup newsgroups.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900