If call MessageBox passing in NULL as the HWND, it will display with no
owner window.

On 1/24/07, Matthew Rowan <[EMAIL PROTECTED]> wrote:

Thanks Albert,

I'm still having some trouble I'm hoping you could please help me with.
I've built the dll and added these lines to my WiX source as in the example
in the C++ code you provided.


<Property Id="D4WSQLSERVER">(local)</Property>
<Property Id="D4WLOCALDATABASEONLY">0</Property>

<CustomAction Id="D4WFillSQLServersListbox" BinaryKey="SQLMsiCA"
DllEntry="D4WFillSQLServersListbox" />
<Binary Id="SQLMsiCA"
SourceFile="CustomActions\SQLMsiCA\Release\SQLMsiCA.dll" />

<InstallUISequence>
<Custom Action="D4WFillSQLServersListbox"
After="CostFinalize">D4WSQLSERVER = "(local)"</Custom>
</InstallUISequence>

<Control Id="D4WFillSQLServersListbox" Type="ListBox" X="18" Y="106"
Width="278" Height="80" Property="D4WSQLSERVER" Sorted="yes" />



However, when I run the installer I get an error immediately as shown
below:

Action 16:52:03: D4WFillSQLServersListbox.
Action start 16:52:03: D4WFillSQLServersListbox.
Error 1723. There is a problem with this Windows Installer package. A DLL
required for this install to complete could not be run. Contact your support
personnel or package vendor. Action D4WFillSQLServersListbox, entry:
D4WFillSQLServersListbox, library:
C:\DOCUME~1\mrowan\LOCALS~1\Temp\MSI19E.tmp
MSI (c) (E0:F8) [16:52:05:526]: Product: Zap BI Suite -- Error 1723. There
is a problem with this Windows Installer package. A DLL required for this
install to complete could not be run. Contact your support personnel or
package vendor. Action D4WFillSQLServersListbox, entry:
D4WFillSQLServersListbox, library:
C:\DOCUME~1\mrowan\LOCALS~1\Temp\MSI19E.tmp

Action ended 16:52:05: D4WFillSQLServersListbox. Return value 3.

I don't know how to display a MessageBox to see if it has gotten into the
function as I have seen suggested, since I don't know how to get a hWnd
handle. I have been trying all day to get it to work with no
avail. If you could point me to some tutorials or documentation regarding C++ 
custom
action writing or suggest
anything I'm doing wrong, it would be much appreciated.

Thanks,

-Matthew Rowan



On 1/23/07, Albert van Peppen <[EMAIL PROTECTED] > wrote:
>
>  Ok, new try :-)
>
> Regards,
>
> Albert van Peppen
>
>  ------------------------------
> *Van:* Matthew Rowan [mailto:[EMAIL PROTECTED]
> *Verzonden:* maandag 22 januari 2007 23:49
> *Aan:* Albert van Peppen
> *Onderwerp:* Re:
>
>
> Sorry, actually that may not work either. If you just rename it
> to something like sample.zip.rename , that should be enough to get
> through to my Gmail.
>
> Thanks,
> -Matthew Rowan
>
> On 1/23/07, Matthew Rowan < [EMAIL PROTECTED] > wrote:
> >
> > Thanks very much Albert,
> >
> > However there was no attachment on your email. I think Gmail
> > automatically removes zip attachments. It would be greatly appreciated if
> > you could please send it to  [EMAIL PROTECTED]
> >
> > Thanks again,
> >
> > -Matthew Rowan
> >
> >
> > On 1/23/07, Albert van Peppen < [EMAIL PROTECTED] > wrote:
> > >
> > >  Hi,
> > >
> > >  I've tried to send a zip to the list but this seems to be not
> > > possible :( So i send it directly to you.
> > >
> > > I t is a VC 2005.NET <http://2005.net/> project with a simple CA
> > > with the requested code.
> > > In some snippets it is mentioned how to use it.
> > >
> > > If there are any problems; try to figure them out yourself and after
> > > that you can ask  via the wix-user or wix-dev list ;)
> > >
> > > The code is free for use, commercial or non-commercial and is based
> > > on some snippets from along ti me ago.
> > >
> > >
> > > Greetings,
> > >
> > > Albert van Peppen
> > > Insad Grafisch b.v.
> > >
> > >
> >
> >
>
>

-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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

Reply via email to