hi gabriel-
I am not sure I understand this. Could you please rephrase? What do you mean by "msiUILevelEndDialog"? Do you mean "silent install" (i.e progress bar only) when saying "passive mode"?
that bit is described here:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx - yes - by passive mode i mean silent (ie invoking the installer with the /passive option as described here
http://msdn.microsoft.com/en-us/library ... 85%29.aspx. i am suppressing the UI by specifying that option in the "command line" field of the "bootstrapper" tab of the "media" section. is there another, preferred, way of controlling the UI level?
If you are trying to display a message box at the end of the installation, you can use the Message Box custom action and place it after InstallExecute or InstallFinalize standard actions.
the problem i'm having is that when i condition my error message on UILevel>3, it doesn't display when running silently. i tried your suggestion above (i'm assuming you mean a script inline to display a message box - i didn't see a "mesage box" custom action). but the message is also suppressed when running silently. also, when i run the installer a second time (ie with the product already installed) in silent mode, it seems to complete normally (this is on XP-SP3) - i can't tell if it's automatically uninstalling the previous version, or just not doing anything.
what i would like is the following behavior:
1. when installer is run the first time, silent installation and then a dialog at the end saying "installation complete".
2. when run again with the same product code, an error message saying "this version already instaled - please use add/remove programs &c."
3. when run again with new product code, automatic upgrade of the previous version.
i can get this to work as you suggested if running with full UI, but not in passive (or silent) mode.
You can try "NOT Installed" instead, so it only runs during installation, when your product is not yet installed.
yes - i figured that out and it seems to work. however, i note that when i run the installer a second time with same product id, this app is still launched at the end. this seems curious, as then the "installed" property should be true. unless, in fact, what's happening is that the installer is automatically uninstalling the previous version before even getting around to processing the new database.
any light you can shed on these matters would be greatly appreciated
thanks
-chris