Re: [WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Kun Shi (ofox)
Hi Phil, thanks for the info. Then how could I run my CA as user account? I'm really a newbie to Wix and ldap... Regards! -ofox - Original Message - > From: "Phil Wilson" > To: "General discussion for Windows Installer XML toolset." > > Sent: Sunday, November 11, 2012 2:01:16 AM >

Re: [WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Jeremy Farrell
Assuming the code is C or similar ... I know nothing about these APIs, but the way you're calling them doesn't make sense. If they expect to receive a pointer to a wide character as their first parameter, then they presumably expect that pointer to point to a wide character string - taking a poi

Re: [WiX-users] How to invoke XmlFile standard custom action after ExitDialog

2012-11-10 Thread Norbert Schmid
Finally I made it work. I re-templated InstallDirDlg.wxs and WixUI_InstallDir.wxs and added my checkbox as described here: http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-dlgs-in-wix-3/ Thank you all for pointing me to the right direction! Norbert -- View this message in co

Re: [WiX-users] How to invoke XmlFile standard custom action after ExitDialog

2012-11-10 Thread Christopher Painter
Complete is by definition complete. What you need to do is customize a dialog that is shown prior to ready for installation and then use that in a component condition to drive whether an XML change occurs or not. That way when you get to the complete dialog you really are complete. ---

Re: [WiX-users] Noob question: Conditional overwrite

2012-11-10 Thread Phil Wilson
The main pitfalls are likely to be the default overwrite rules. If you are referring to versioned binaries then Windows won't replace a versioned file with one of a lower version for the (hopefully) obvious reason that a higher version means a later improved version. Data file overwrite rules invol

Re: [WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Phil Wilson
Things like this are often related to the account that the CA is running with. If it's impersonation=no (and if that's the syntax) it's running with the system account and accessing localhost might count as "network access" that the system account usually cannot do. It works when you run ldpa.exe b

[WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Kun Shi (ofox)
Hi guys, I need to access LDAP when running a msi on a Windows server 2008 , so I have to call LDAP APIs using CA. I tried 2 approaches, but both failed with error code 0x51 " Cannot contact the LDAP server ". 1. ldap_open((PWCHR)"localhost", 389) 2. ldap_init( (PWCHR)"127.0.01", 389 ), t