Forum Discussion
Oferv
15 years agoSuper Contributor
i'll tell you what i need to deal with.
the script run and installation and when the installation ends it run an uninstall now, sometimes the install get stuck on the screen where the progress bar is (because somehow installshield runs 3 msiexec.exe processes in the task bar) so, what i want to do is when you see that the finish button (that suppose to appear on the screen right after the progress bar finish and the installation ended) exists click it and if it doesn't appear for let say 20 secs breakthis loop of install/uninstall close the msiexec.exe processes (i have routine that does that) and start the next loop iteration.
her's the code part i'm using:
if(!Aliases["MSIEXEC"]["BaseWindow"]["FinishScreenFinishButton"]["WaitProperty"]("Exists",true,15000))
{
//Log installation stack
Log["Warning"]("Installation didn't end properly,installation abroted")
//Log a Picture of the object
Log["Picture"](Aliases["MSIEXEC"]["BaseWindow"], "Installation Progress Screen")
break;
}
else
{
Keep on with the installation
}
do you have any smarter solution?
thanks
the script run and installation and when the installation ends it run an uninstall now, sometimes the install get stuck on the screen where the progress bar is (because somehow installshield runs 3 msiexec.exe processes in the task bar) so, what i want to do is when you see that the finish button (that suppose to appear on the screen right after the progress bar finish and the installation ended) exists click it and if it doesn't appear for let say 20 secs breakthis loop of install/uninstall close the msiexec.exe processes (i have routine that does that) and start the next loop iteration.
her's the code part i'm using:
if(!Aliases["MSIEXEC"]["BaseWindow"]["FinishScreenFinishButton"]["WaitProperty"]("Exists",true,15000))
{
//Log installation stack
Log["Warning"]("Installation didn't end properly,installation abroted")
//Log a Picture of the object
Log["Picture"](Aliases["MSIEXEC"]["BaseWindow"], "Installation Progress Screen")
break;
}
else
{
Keep on with the installation
}
do you have any smarter solution?
thanks