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

Is there a simple error dialog ?


4 replies to this topic

tktk

tktk
  • Full Members
  • 24 posts

Posted 08 October 2004 - 09:17

Hi all.
I'm working with Basic MSI project on InstallShield X.

I have posted question about the validation of serial number, and got an
advice to use custom action. I'm working for that and everything going fine
except one trouble.

I want to show an error dialog when the serial is invalid, just like "CancelSetup"
dialog at least its looking except for the lack of "No" button.

Is there any standard way to show such dialog ? Does IS prepare something
general error dialog ?

The situation is:
1. I don't want to use custom action for the dialog. The custom action goes on
different process from installation (for my understanding), so "real" modal
dialog can not be achieved.
2. I added customized dialog by "Dialog wizard", arranged the controls on it,
and called it (by SpawnDialog) from something event. It works fine, except
one thing, the "relief" of "InstallShield" logo on the dialog won't be removed.

Is there another way to show error dialog, or removing that stuff ?
Any advice or suggestion will be helpful.
Thank you.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 October 2004 - 16:40

Did you set the Error arrtibute for that dialog?

tktk

tktk
  • Full Members
  • 24 posts

Posted 12 October 2004 - 02:50

Hi Stefan, thanks for the comment.
If you mean "Error Dialog" attribute, then no.

I have tried to set Error Dialog attribute to TRUE, but the installer terminated
with Internal error 2869 at runtime.
2869 says that the dialog is not an error dialog, so I have re-arranged the
dialog referring the help of Windows Installer SDK.

My procedure is as follows:
0. Added custom dialog by dialog-wizard and selected "blank dialog".
1. Added text control named ErrorText.
2. Added seven buttons and set EndDialog event for each with different arguments
respectively, ErrorOK etc. (and set condition to 1).
3. Set dialog attributes using direct editor, to have the same value as SetupError dialog.
4. Removed the link between button controls using direct editor (control table).

And I still got 2869 at runtime.
Can you give me some more help please ?
Thank you.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 12 October 2004 - 07:55

I think I did it by copying the built in error dialog and modifying it.

tktk

tktk
  • Full Members
  • 24 posts

Posted 13 October 2004 - 07:51

Mm... it seems ISX does not support copying built-in dialog.
But I have achieved what I wanted.

The procedure is :
0. Added custom dialog using dialog-wizard, "Blank dialog" type.
1. Added some controls on it.
2. In Control table of direct editor, remove "Branding1", "Branding2" and "DlgLine"
of the dialog.
3. Resized dialog size to the same size as CanselSetup dialog.

I know this is dirty resolution but I will go with this method.
Thanks so much.