I have a problem with my install-script!!
If User chooses to install into same directory as a previous version, I call the build in function UninstallApplication( szUninstallKey, "", LAAW_OPTION_WAIT ), uninstall-key is definitley correct, and Unstallation starts as intended.
BUT: Sometimes the following code is executed without waiting and what happens then is a complete desaster.
Funny thing that all went well with install-Shield 11, now using 12 I do not know how to fix that bug.
worst thing is that even if user waits for the uninstallation process to finish, an uninstall-instance of install-shield is still running after user clicks on finish button.
code as this:
if( AskYesNo( @ID_OTHER_INSTALLDIR, YES ) = 1)then
if( UninstallApplication ( svLine, "", LAAW_OPTION_WAIT) >= ISERR_SUCCESS )then
if( checkRegistry("SOFTWARE\\" ^ path, "Version") = 1 ) then
MessageBox(@ID_DEINST_ERROR ,SEVERE);
abort;
endif;
endif; // end Unistallapplication
greets r
