Re: [WiX-users] DIFx prompt shows up behind UI
> From: Bob Arnson [mailto:[EMAIL PROTECTED] > > J. J. Farrell wrote: > > At the moment I'm setting these SetupAPI parameters to > > NULL. I'm guessing from Bob's message that I can solve > > this problem by passing a handle to the Installer UI > > window instead of NULL. Does this sound right? I know > > almost nothing about Windows UI programming, so my > > main question is: how should a C deferred custom > > action get hold of a handle to the installer UI window > > for passing to these SetupAPI routines? > > Possibly. I thought there was a WiX function that returned the > active installer window but I can't find it at the moment. You > might want to check out GetForegroundWindow. Thanks Bob. I ended up with hWindow = FindWindow("MsiDialogNoCloseClass", NULL); To find the Installer's UI window. The class name varies with the style of the window, but a call of this sort should be able to find a window associated with the Installer. Passing this handle to the SetupAPI functions solved my problem of pop-ups appearing behind the Installer UI window. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] DIFx prompt shows up behind UI
J. J. Farrell wrote: > At the moment I'm setting these SetupAPI parameters to NULL. I'm guessing > from Bob's message that I can solve this problem by passing a handle to the > Installer UI window instead of NULL. Does this sound right? I know almost > nothing about Windows UI programming, so my main question is: how should a C > deferred custom action get hold of a handle to the installer UI window for > passing to these SetupAPI routines? > Possibly. I thought there was a WiX function that returned the active installer window but I can't find it at the moment. You might want to check out GetForegroundWindow. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] DIFx prompt shows up behind UI
From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 11:52 PM Quinton Tormanen wrote: I've just switched from our own custom action (calling a DLL function) to using DIFxApp with WiX. I've found that I have to leave the DriverPlugAndPlayPrompt set to "yes", or the install will fail on Vista if my USB device isn't plugged in when the install runs. However, almost as bad, I've found that on Vista, with this prompt enabled, the prompt shows up entirely hidden behind the Windows Installer UI, which leaves the user with only the Cancel button enabled and a hidden prompt. This is definitely going to mess up a lot of our customers. I realize that this question is on the fine line between DIFx and WiX, but I'm hoping that there is a workaround in WiX, or perhaps someone with experience with using DIFx in WiX that can help with this issue: How do I make the DriverPlugAndPlayPrompt either display in FRONT of my UI, or not at all on Windows Vista? That's usually caused by using the wrong parent window. There's nothing WiX can do about it but it might be a bug in DifxApp they can fix by getting the right parent window. I have a problem in the same general area, and this sounds like a clue to it. For historical reasons I'm doing driver installation from deferred custom actions (written in C) using the SetupAPI on Windows 2000 and 2003. I have a similar problem in that prompts from SetupAPI pop up behind the installer UI, sometimes entirely hidden by it. Several SetupAPI functions have a 'handle' parameter described as Optional pointer to the window handle to the window that owns any dialog boxes that are generated during installation, such as for disk prompting or file copying. If Owner is not specified, these dialog boxes become top-level windows. At the moment I'm setting these SetupAPI parameters to NULL. I'm guessing from Bob's message that I can solve this problem by passing a handle to the Installer UI window instead of NULL. Does this sound right? I know almost nothing about Windows UI programming, so my main question is: how should a C deferred custom action get hold of a handle to the installer UI window for passing to these SetupAPI routines? Thanks for any suggestions, or pointers in the right direction if I've got this all wrong. -- View this message in context: http://www.nabble.com/RE%3A--WiX-users--DIFx-prompt-shows-up-behind-UI-tf3026760.html#a8408778 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] DIFx prompt shows up behind UI
In case anyone is interested, I wanted to clarify that part of my problem with DIFxApp working on Vista was related to me using DIFx tools 2.01 instead of DIFx tool 2.1. 2.01 doesn't support Vista, and 2.1 does. However, the WHDC link to DIFxTools only has 2.01 for download! DIFx tools 2.1 is only available through the WDK. *sigh* However, the prompt still shows up behind the UI, but at least I can now disable it properly. Thanks again Bob and Rob! --Quinton From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 12:38 PM To: Rob Mensching; Quinton Tormanen; Bob Arnson Cc: wix-users@lists.sourceforge.net Subject: RE: Re: [WiX-users] DIFx prompt shows up behind UI Heh, it turns out it was easy: [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: Tuesday, January 16, 2007 12:29 PM To: Quinton Tormanen; Bob Arnson Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI I'm asking around. I should know too... heh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Quinton Tormanen Sent: Tuesday, January 16, 2007 12:11 PM To: Bob Arnson Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI Does anyone have a contact for the DIFx group? I can't find a current e-mail address. [EMAIL PROTECTED] was listed in one of the DIFx documents, but it's no longer valid. --Quinton From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 11:52 PM To: Quinton Tormanen Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI Quinton Tormanen wrote: I've just switched from our own custom action (calling a DLL function) to using DIFxApp with WiX. I've found that I have to leave the DriverPlugAndPlayPrompt set to "yes", or the install will fail on Vista if my USB device isn't plugged in when the install runs. However, almost as bad, I've found that on Vista, with this prompt enabled, the prompt shows up entirely hidden behind the Windows Installer UI, which leaves the user with only the Cancel button enabled and a hidden prompt. This is definitely going to mess up a lot of our customers. I realize that this question is on the fine line between DIFx and WiX, but I'm hoping that there is a workaround in WiX, or perhaps someone with experience with using DIFx in WiX that can help with this issue: How do I make the DriverPlugAndPlayPrompt either display in FRONT of my UI, or not at all on Windows Vista? That's usually caused by using the wrong parent window. There's nothing WiX can do about it but it might be a bug in DifxApp they can fix by getting the right parent window. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] DIFx prompt shows up behind UI
Heh, it turns out it was easy: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: Tuesday, January 16, 2007 12:29 PM To: Quinton Tormanen; Bob Arnson Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI I'm asking around. I should know too... heh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Quinton Tormanen Sent: Tuesday, January 16, 2007 12:11 PM To: Bob Arnson Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI Does anyone have a contact for the DIFx group? I can't find a current e-mail address. [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> was listed in one of the DIFx documents, but it's no longer valid. --Quinton From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 11:52 PM To: Quinton Tormanen Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI Quinton Tormanen wrote: I've just switched from our own custom action (calling a DLL function) to using DIFxApp with WiX. I've found that I have to leave the DriverPlugAndPlayPrompt set to "yes", or the install will fail on Vista if my USB device isn't plugged in when the install runs. However, almost as bad, I've found that on Vista, with this prompt enabled, the prompt shows up entirely hidden behind the Windows Installer UI, which leaves the user with only the Cancel button enabled and a hidden prompt. This is definitely going to mess up a lot of our customers. I realize that this question is on the fine line between DIFx and WiX, but I'm hoping that there is a workaround in WiX, or perhaps someone with experience with using DIFx in WiX that can help with this issue: How do I make the DriverPlugAndPlayPrompt either display in FRONT of my UI, or not at all on Windows Vista? That's usually caused by using the wrong parent window. There's nothing WiX can do about it but it might be a bug in DifxApp they can fix by getting the right parent window. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] DIFx prompt shows up behind UI
I'm asking around. I should know too... heh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Quinton Tormanen Sent: Tuesday, January 16, 2007 12:11 PM To: Bob Arnson Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI Does anyone have a contact for the DIFx group? I can't find a current e-mail address. [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> was listed in one of the DIFx documents, but it's no longer valid. --Quinton From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 11:52 PM To: Quinton Tormanen Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI Quinton Tormanen wrote: I've just switched from our own custom action (calling a DLL function) to using DIFxApp with WiX. I've found that I have to leave the DriverPlugAndPlayPrompt set to "yes", or the install will fail on Vista if my USB device isn't plugged in when the install runs. However, almost as bad, I've found that on Vista, with this prompt enabled, the prompt shows up entirely hidden behind the Windows Installer UI, which leaves the user with only the Cancel button enabled and a hidden prompt. This is definitely going to mess up a lot of our customers. I realize that this question is on the fine line between DIFx and WiX, but I'm hoping that there is a workaround in WiX, or perhaps someone with experience with using DIFx in WiX that can help with this issue: How do I make the DriverPlugAndPlayPrompt either display in FRONT of my UI, or not at all on Windows Vista? That's usually caused by using the wrong parent window. There's nothing WiX can do about it but it might be a bug in DifxApp they can fix by getting the right parent window. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] DIFx prompt shows up behind UI
Does anyone have a contact for the DIFx group? I can't find a current e-mail address. [EMAIL PROTECTED] was listed in one of the DIFx documents, but it's no longer valid. --Quinton From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 11:52 PM To: Quinton Tormanen Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DIFx prompt shows up behind UI Quinton Tormanen wrote: I've just switched from our own custom action (calling a DLL function) to using DIFxApp with WiX. I've found that I have to leave the DriverPlugAndPlayPrompt set to "yes", or the install will fail on Vista if my USB device isn't plugged in when the install runs. However, almost as bad, I've found that on Vista, with this prompt enabled, the prompt shows up entirely hidden behind the Windows Installer UI, which leaves the user with only the Cancel button enabled and a hidden prompt. This is definitely going to mess up a lot of our customers. I realize that this question is on the fine line between DIFx and WiX, but I'm hoping that there is a workaround in WiX, or perhaps someone with experience with using DIFx in WiX that can help with this issue: How do I make the DriverPlugAndPlayPrompt either display in FRONT of my UI, or not at all on Windows Vista? That's usually caused by using the wrong parent window. There's nothing WiX can do about it but it might be a bug in DifxApp they can fix by getting the right parent window. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] DIFx prompt shows up behind UI
Quinton Tormanen wrote: I've just switched from our own custom action (calling a DLL function) to using DIFxApp with WiX. I've found that I have to leave the DriverPlugAndPlayPrompt set to "yes", or the install will fail on Vista if my USB device isn't plugged in when the install runs. However, almost as bad, I've found that on Vista, with this prompt enabled, the prompt shows up entirely hidden behind the Windows Installer UI, which leaves the user with only the Cancel button enabled and a hidden prompt. This is definitely going to mess up a lot of our customers. I realize that this question is on the fine line between DIFx and WiX, but I'm hoping that there is a workaround in WiX, or perhaps someone with experience with using DIFx in WiX that can help with this issue: How do I make the DriverPlugAndPlayPrompt either display in FRONT of my UI, or not at all on Windows Vista? That's usually caused by using the wrong parent window. There's nothing WiX can do about it but it might be a bug in DifxApp they can fix by getting the right parent window. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] DIFx prompt shows up behind UI
I've just switched from our own custom action (calling a DLL function) to using DIFxApp with WiX. I've found that I have to leave the DriverPlugAndPlayPrompt set to "yes", or the install will fail on Vista if my USB device isn't plugged in when the install runs. However, almost as bad, I've found that on Vista, with this prompt enabled, the prompt shows up entirely hidden behind the Windows Installer UI, which leaves the user with only the Cancel button enabled and a hidden prompt. This is definitely going to mess up a lot of our customers. I realize that this question is on the fine line between DIFx and WiX, but I'm hoping that there is a workaround in WiX, or perhaps someone with experience with using DIFx in WiX that can help with this issue: How do I make the DriverPlugAndPlayPrompt either display in FRONT of my UI, or not at all on Windows Vista? Thanks! --Quinton - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users