Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

UninstallApplication


1 reply to this topic

Lehrling1988

Lehrling1988
  • Full Members
  • 49 posts

Posted 19 February 2008 - 14:07

Hi there,

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 mad.gif
Man lernt nie aus...darum bin ich immer noch ein Lehrling und werde es immer bleiben...

Lehrling1988

Lehrling1988
  • Full Members
  • 49 posts

Posted 03 March 2008 - 13:20

Bitte schließen...ist an der falschen stelle...hab einen neues auf gemacht.
Danke.


Man lernt nie aus...darum bin ich immer noch ein Lehrling und werde es immer bleiben...