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

about ABORT or EXIT!! plz help me


1 reply to this topic

sean394

sean394
  • Members
  • 7 posts

Posted 20 August 2005 - 16:36

i'm trying to use either abort or exit..

however it seems it doesn't work propertly

for example, let say if program finds out if there's a registry key
it uninstalls previous program...and exit or abort.

ex)

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if(RegDBKeyExist("SOFTWARE\\KRCON2004") >= 0) then
//if exist, delete
LaunchAppAndWait("C:\\windows\\system32\\Msiexec.exe ", "/X{4B3903E3-3D4E-4FAA-94F9-D94D41225E92} /quiet", WAIT);
SdShowMsg("Completed removing KRCON2004...", TRUE);
exit; --------------------------> this should work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!but why!!!!
else
//pass
endif;


but it didn't exit itself...it still remains under the bar??(windows)
so i have to forcely exit my application.

please help me what i need to change...


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 22 August 2005 - 10:24

Have you tried closing the SdShowMsg window first (using FALSE)? Or simply don't display it at all, since you are closing your setup immedately afterwards anyway.
If you want the user to see the message, use MessageBox instead.