I've been trying to figure out the cause of this problem for a few days (on and off) now, and I just haven't been able to get anywhere with it. The error message is: "The dialog ErrorDlg has the error style bit set, but is not an error dialog"
The scenario that we have seen this problem in is:
- Using Advanced Installer 7.5.2 build 26791
- Installing on Windows 7 with UAC enabled and the slider is on the 3rd or 4th level
- With a Custom Action that calls one of our .dlls that has some installation specific code in it. When this Custom Action doesn't run, the error doesn't happen, so I know it is something to do with this action.
- The Custom Action is set to run as (Synchronous execution, check return code, and) 'Deferred', but I have also tried it as 'Deferred with no impersonation', and have received the same error.
- The error doesn't occur and the Custom Action works fine if we start the .msi from a command prompt that has been opened with Run As Administrator. So it sounds like there is a permissions (or maybe UAC virtualization) thing going on.
- EDIT4: The above workaround does not work on one of our virtual PCs that has Windows 7 on it. We think it may be this way just because it is a VPC, but don't know for sure that this is the differentiating factor.
It creates a user.config file in "Environment.SpecialFolder.CommonApplicationData" (so, "Documents And Settings\All Users\ApplicationData\custompath\etc\" in XP, and "\ProgramData\custompath\etc\" in Vista and 7), and gives the Built in Users group permission to Modify that file.
My guess is that if I can force an elevation prompt, the code called by the custom action will be run with enough privileges to complete that action, and it will work. But I haven't been able to force an elevation prompt.
But, this guess may also be wrong! Can you help me?
Thanks for your time,
Nick Knowlson
EDIT: And yes I have tried the first item from the FAQ on all occurrences of [APPDIR] in the MsiCustActComponent element.
EDIT2: Okay, so I have commented out all the code inside the CustomAction, and I still receive the error, so I suppose it must not be a permissions issue. How baffling.
EDIT3: I have now tried adding two spaces after every occurrence of every other [ItemInBrackets] that is a target (as well as [APPDIR]), still not working however.
EDIT4: In list above.
FOLLOW US
Get the latest news in Application Packaging