Re: [WiX-users] Custom Action Dll problem

2006-08-02 Thread Magus

Ok I got it working now thanks again for your help
-- 
View this message in context: 
http://www.nabble.com/Custom-Action-Dll-problem-tf2042392.html#a5623375
Sent from the wix-users forum 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] Custom Action Dll problem

2006-08-02 Thread Magus

WcaGetProperty() isn't being used anywhere else this is the only call.
What I need to do is combine My license with DX License, but if I leave in
the code for
getting the DXEULA the entire program doesn't even run weird.
I tried with both allocation of memory and tried to see if maybe the fuction
was allocating the memory
ReleaseStr, but be for some other language, delete and new are what I would
be using for memory 
extern "C" UINT __stdcall GetEULA(MSIHANDLE hInstall)
{
HRESULT hResult = WcaInitialize(hInstall, "GetEULA");
if (FAILED (hResult)) return ERROR_INSTALL_FAILURE;
MessageBoxA(NULL, "Quick Attach process and hit ok","Get license debug
helper" , MB_OK);
WCHAR l_wcDX_EULA[12000];
WCHAR l_wcMy_EULA[2];
WCHAR *l_pwclicense /*= new WCHAR[2]*/;
//DirectXSetupGetEULA(l_wcDX_EULA,0,0);  This doesn't work 
either

hResult = WcaGetProperty(L"EULA", &l_pwclicense);  Program stops here 
still
memcpy((void*)l_wcMy_EULA[wcslen(l_pwclicense)], l_wcDX_EULA, 1);
WcaSetProperty(L"EULA",l_wcMy_EULA);
// delete [] l_pwclicense;
return WcaFinalize (hResult);
}


-- 
View this message in context: 
http://www.nabble.com/Custom-Action-Dll-problem-tf2042392.html#a5623345
Sent from the wix-users forum 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] Custom Action Dll problem

2006-08-02 Thread Rob Mensching
You're probably crashing.  The Windows Installer has an exception handler to
ensure that poorly written CustomActions don't hose the transaction.

You should look at other places in the code where WcaGetProperty() is used.
You'll find the WiX code has very, very few hard code buffer sizes.
Instead, dynamically sized strings are used everywhere.  In your case,
instead of defining WCHAR l_wcLicense[], you want, WCHAR* pwzLicense.  Then
you call like:

WcaGetProperty(L"EULA", &pwzLicense);

pwzLicense was allocated to the necessary string.  Later, you should call
"ReleaseStr(pwzLicense);" to free the string.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Magus
Sent: Wednesday, August 02, 2006 2:21 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom Action Dll problem


Not that my other problem has a solution yet, but I've move on to try to get
something done.  I am no having a problem trying to use the WcaGetProperty
function. I have a property [License] I call
the function using WCHAR l_wcLicense[2]; HRESULT hResult =
WcaGetProperty(L"EULA", l_wcLicense); The program gets to the WcaGetProperty
Line and then exits. anyone have any idea what this could be?
--
View this message in context:
http://www.nabble.com/Custom-Action-Dll-problem-tf2042392.html#a5622613
Sent from the wix-users forum 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


-
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] Custom Action Dll problem

2006-08-02 Thread Magus

Not that my other problem has a solution yet, but I've move on to try to get
something done.  I am no having a problem trying to use the WcaGetProperty
function. I have a property [License]
I call the function using 
WCHAR l_wcLicense[2];
HRESULT hResult = WcaGetProperty(L"EULA", l_wcLicense);
The program gets to the WcaGetProperty Line and then exits. anyone have any
idea what this could be?
-- 
View this message in context: 
http://www.nabble.com/Custom-Action-Dll-problem-tf2042392.html#a5622613
Sent from the wix-users forum 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