What are you trying to achieve ? Are you trying to install your MSI to a path
that is already stored in the registry ?

-----Original Message-----
From: Natalie Carr [mailto:natalie.c...@measuresoft.com] 
Sent: 27 July 2012 11:30
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom Action C++ Function / MsiSetProperty

Hello,

 

Having some problems with my DLL custom action C++ function. I have the
function working properly it grasps the registry that I need to install to.
Somehow I need to extract the variable szLocalPath to my msi so that it can
then replace the install location. After research I think it's a case of
using MsiSetProperty but I have no idea how to implement this. Any help would
be greatly appreciated.

 

 

 

extern "C" UINT __stdcall GetOrchDir(MSIHANDLE hInstall)

{

       HRESULT hr = S_OK;

       UINT er = ERROR_SUCCESS;

       char szLocalPath[MAX_PATH];

                     

       strcpy(szLocalPath, Orc_Get_Dir(".", "ORC_BIN"));

 

LExit:

       er = SUCCEEDED(hr) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE;

       return WcaFinalize(er);

}

 

 

Thanks

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to