Hi,
in my installer written in IA10 I found out a problem with 'Check for Process' command. When I do it in loop after user action 'Retry', answer is always TRUE even if the process is not on process list. Is there a workaround for it?
The code:
label: RetryCheckRunningApp
Check for Process "$APP_NAME$", get result into variable RET_VAL
if Variable RET_VAL Equals TRUE
MessageBox: Installer, following application is still running: $APP_NAME$. Please close the application and start installer again.
if Variable RET_VAL Contains (Ignore Case) abort
Terminate Installation
end
if Variable RET_VAL Contains (Ignore Case) retry
GoTo Label: RetryCheckRunningApp
end
IA do not updates process list
Re: IA do not updates process list
Hi,
First of all, the return value from Check for Process is either TRUE or FALSE and will never be abort or retry.
Furthermore, in my testing, the command returns the correct value every time - please make sure you actually terminated the process.
First of all, the return value from Check for Process is either TRUE or FALSE and will never be abort or retry.
Furthermore, in my testing, the command returns the correct value every time - please make sure you actually terminated the process.
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: IA do not updates process list
> return value from Check for Process is either TRUE or FALSE
exactly
> and will never be abort or retry
abort retry is from MessageBox, see on indented code:
label: RetryCheckRunningApp
Check for Process "$APP_NAME$", get result into variable RET_VAL
if Variable RET_VAL Equals TRUE
MessageBox: Installer, following application is still running: $APP_NAME$. Please close the application and start installer again.
if Variable RET_VAL Contains (Ignore Case) abort
Terminate Installation
end
if Variable RET_VAL Contains (Ignore Case) retry
GoTo Label: RetryCheckRunningApp
end
end
Next 'Check for Process' returns TRUE again when there is DEFINITELY no this process in process manager list!
Did you check it on IA v.10?
regards
Jarek
exactly
> and will never be abort or retry
abort retry is from MessageBox, see on indented code:
label: RetryCheckRunningApp
Check for Process "$APP_NAME$", get result into variable RET_VAL
if Variable RET_VAL Equals TRUE
MessageBox: Installer, following application is still running: $APP_NAME$. Please close the application and start installer again.
if Variable RET_VAL Contains (Ignore Case) abort
Terminate Installation
end
if Variable RET_VAL Contains (Ignore Case) retry
GoTo Label: RetryCheckRunningApp
end
end
Next 'Check for Process' returns TRUE again when there is DEFINITELY no this process in process manager list!
Did you check it on IA v.10?
regards
Jarek
Re: IA do not updates process list
hmmm - indentation was cleared 
Re: IA do not updates process list
What happens if you completely remove the iteration part and just call Check for Process?
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: IA do not updates process list
first check is correct, all next are the same as first...
Re: IA do not updates process list
Again, I tested this out also and it doesn't reproduce.
The first call returns TRUE, then I close the process and run the second call and it returns FALSE.
The first call returns TRUE, then I close the process and run the second call and it returns FALSE.
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: IA do not updates process list
on which IA version you have done test?
Re: IA do not updates process list
InstallAware 12. We no longer have access to version 10.
I do however doubt that this was a bug; are you able to install version 12 and check for yourself?
I do however doubt that this was a bug; are you able to install version 12 and check for yourself?
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

