Re: [WiX-users] Immediate Custom Action could not be run in some computers.

2014-04-29 Thread Uni Gauldoth
Now the problem is why Windows Installer could not extract the custom
action dll to the temp directory with limited user rights.
I will try to find out the reason, thanks again for your help.


On Tue, Apr 29, 2014 at 1:08 AM, Phil Wilson phildgwil...@gmail.com wrote:

 By default immediate custom actions run with limited user rights (even
 if the user is admin) because the UI sequence isn't elevated by
 default. So it might be a security issue on UAC systems.
 ---
 Phil Wilson


 On Mon, Apr 28, 2014 at 1:50 AM, Uni Gauldoth unigauld...@gmail.com
 wrote:
  Thanks for replying.
 
  I'm sure that there is no dependency problems.
  If I run the msi installer with elevated privilege on that user's
 computer,
  the install will finish successfully.
  It turns out Windows Installer failed to extract the custom action dll to
  temp directory during the InstallUISequence.
  When the error message box is shown, there is no MSI209E.tmp under the
 temp
  directory.
  But I tried using GetTempFileName on that user's computer, it succeeded
 and
  a temp file is created.
 
 
 
  On Tue, Apr 22, 2014 at 12:50 AM, Phil Wilson phildgwil...@gmail.com
 wrote:
 
  This is useful for showing C++ dependencies:
 
  http://www.dependencywalker.com/
  ---
  Phil Wilson
 
 
  On Mon, Apr 21, 2014 at 9:07 AM, Carter Young ecyo...@grandecom.net
  wrote:
   Following Phil's Hunch, see here:
  
  
 
 http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_vcredist.html
  
   Carter
  
   Quoting Phil Wilson phildgwil...@gmail.com:
  
   1157 is a missing dependency, so I'd assume that there's a dependency
   not installed on all computers. If it's a C++ Dll it'll most likely
 be
   a missing C run time.
   ---
   Phil Wilson
  
  
   On Sun, Apr 20, 2014 at 5:55 AM, uni unigauld...@gmail.com wrote:
   Hi all,
  
   I have sequenced a custom action in my msi after CostFinalize.
   On most user's computers, it works well.
  
   But on some user's computers, when the msi is double clicked
 directly
   for installing, it will prompt A DLL required for this install to
   complete could not be run.
   I've changed CheckIfAnotherProductExists function to only call
   MessageBox(0,0,0,0), and it still prompted the error and the message
  box
   is not showed.
   If I remove the CheckIfAnotherProductExists entry in the
   InstallExecuteSequence table, all goes well.
   If I run the msi in cmd(run as administrator), it works fine, there
   should be not dependency problem with my custom action dll.
  
   It acts as if it has something to do with the privilege.
   May be it failed when the custom action's dll is being copied into
 the
   temp directory, or maybe LoadLibrary failed under non elevated
  privilege?
  
   Does any one has experienced something like this?
  
   The WiX code is as below,
  
 
 ===
   CustomAction Execute=immediate Id=CheckIfAnotherProductExists
   BinaryKey=MyDll DllEntry=CheckIfAnotherProductExists /
   Custom Action=CheckIfAnotherProductExists After=CostFinalize
  /Custom
  
 
 ===
  
   The log is as below,
  
 
 ===
   Action 14:20:31: CheckIfAnotherProductExists.
   Action start 14:20:31: CheckIfAnotherProductExists.
   MSI (c) (C4:B4) [14:20:31:680]: Invoking remote custom action. DLL:
   C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp, Entrypoint:
   CheckIfAnotherProductExists
   MSI (c) (C4:88) [14:20:31:680]: Cloaking enabled.
   MSI (c) (C4:88) [14:20:31:680]: Attempting to enable all disabled
   privileges before calling Install on Server
   MSI (c) (C4:88) [14:20:31:680]: Connected to service for CA
 interface.
   CustomAction CheckIfAnotherProductExists returned actual error code
  1157
   (note this may not be 100% accurate if translation happened inside
  sandbox)
   MSI (c) (C4:D8) [14:20:31:740]: Note: 1: 1723 2:
   CheckIfAnotherProductExists 3: CheckIfAnotherProductExists 4:
   C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
   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
  CheckIfAnotherProductExists,
   entry: CheckIfAnotherProductExists, library:
   C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp
   MSI (c) (C4:D8) [14:20:42:153]: Product: MyProduct -- 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 CheckIfAgentVersion, entry:
   CheckIfAgentVersion, library:
  C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
  
 
 

Re: [WiX-users] Immediate Custom Action could not be run in some computers.

2014-04-28 Thread Uni Gauldoth
Thanks for replying.

I'm sure that there is no dependency problems.
If I run the msi installer with elevated privilege on that user's computer,
the install will finish successfully.
It turns out Windows Installer failed to extract the custom action dll to
temp directory during the InstallUISequence.
When the error message box is shown, there is no MSI209E.tmp under the temp
directory.
But I tried using GetTempFileName on that user's computer, it succeeded and
a temp file is created.



On Tue, Apr 22, 2014 at 12:50 AM, Phil Wilson phildgwil...@gmail.comwrote:

 This is useful for showing C++ dependencies:

 http://www.dependencywalker.com/
 ---
 Phil Wilson


 On Mon, Apr 21, 2014 at 9:07 AM, Carter Young ecyo...@grandecom.net
 wrote:
  Following Phil's Hunch, see here:
 
 
 http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_vcredist.html
 
  Carter
 
  Quoting Phil Wilson phildgwil...@gmail.com:
 
  1157 is a missing dependency, so I'd assume that there's a dependency
  not installed on all computers. If it's a C++ Dll it'll most likely be
  a missing C run time.
  ---
  Phil Wilson
 
 
  On Sun, Apr 20, 2014 at 5:55 AM, uni unigauld...@gmail.com wrote:
  Hi all,
 
  I have sequenced a custom action in my msi after CostFinalize.
  On most user's computers, it works well.
 
  But on some user's computers, when the msi is double clicked directly
  for installing, it will prompt A DLL required for this install to
  complete could not be run.
  I've changed CheckIfAnotherProductExists function to only call
  MessageBox(0,0,0,0), and it still prompted the error and the message
 box
  is not showed.
  If I remove the CheckIfAnotherProductExists entry in the
  InstallExecuteSequence table, all goes well.
  If I run the msi in cmd(run as administrator), it works fine, there
  should be not dependency problem with my custom action dll.
 
  It acts as if it has something to do with the privilege.
  May be it failed when the custom action's dll is being copied into the
  temp directory, or maybe LoadLibrary failed under non elevated
 privilege?
 
  Does any one has experienced something like this?
 
  The WiX code is as below,
 
 ===
  CustomAction Execute=immediate Id=CheckIfAnotherProductExists
  BinaryKey=MyDll DllEntry=CheckIfAnotherProductExists /
  Custom Action=CheckIfAnotherProductExists After=CostFinalize
 /Custom
 
 ===
 
  The log is as below,
 
 ===
  Action 14:20:31: CheckIfAnotherProductExists.
  Action start 14:20:31: CheckIfAnotherProductExists.
  MSI (c) (C4:B4) [14:20:31:680]: Invoking remote custom action. DLL:
  C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp, Entrypoint:
  CheckIfAnotherProductExists
  MSI (c) (C4:88) [14:20:31:680]: Cloaking enabled.
  MSI (c) (C4:88) [14:20:31:680]: Attempting to enable all disabled
  privileges before calling Install on Server
  MSI (c) (C4:88) [14:20:31:680]: Connected to service for CA interface.
  CustomAction CheckIfAnotherProductExists returned actual error code
 1157
  (note this may not be 100% accurate if translation happened inside
 sandbox)
  MSI (c) (C4:D8) [14:20:31:740]: Note: 1: 1723 2:
  CheckIfAnotherProductExists 3: CheckIfAnotherProductExists 4:
  C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
  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
 CheckIfAnotherProductExists,
  entry: CheckIfAnotherProductExists, library:
  C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp
  MSI (c) (C4:D8) [14:20:42:153]: Product: MyProduct -- 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 CheckIfAgentVersion, entry:
  CheckIfAgentVersion, library:
 C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 
 ===
 
  Any suggestion will be helpful.
  Gauldoth
 
 
 
 --
  Learn Graph Databases - Download FREE O'Reilly Book
  Graph Databases is the definitive new guide to graph databases and
 their
  applications. Written by three acclaimed leaders in the field,
  this first edition is now available. Download your free book today!
  http://p.sf.net/sfu/NeoTech
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 --
  

Re: [WiX-users] Immediate Custom Action could not be run in some computers.

2014-04-28 Thread Phil Wilson
By default immediate custom actions run with limited user rights (even
if the user is admin) because the UI sequence isn't elevated by
default. So it might be a security issue on UAC systems.
---
Phil Wilson


On Mon, Apr 28, 2014 at 1:50 AM, Uni Gauldoth unigauld...@gmail.com wrote:
 Thanks for replying.

 I'm sure that there is no dependency problems.
 If I run the msi installer with elevated privilege on that user's computer,
 the install will finish successfully.
 It turns out Windows Installer failed to extract the custom action dll to
 temp directory during the InstallUISequence.
 When the error message box is shown, there is no MSI209E.tmp under the temp
 directory.
 But I tried using GetTempFileName on that user's computer, it succeeded and
 a temp file is created.



 On Tue, Apr 22, 2014 at 12:50 AM, Phil Wilson phildgwil...@gmail.comwrote:

 This is useful for showing C++ dependencies:

 http://www.dependencywalker.com/
 ---
 Phil Wilson


 On Mon, Apr 21, 2014 at 9:07 AM, Carter Young ecyo...@grandecom.net
 wrote:
  Following Phil's Hunch, see here:
 
 
 http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_vcredist.html
 
  Carter
 
  Quoting Phil Wilson phildgwil...@gmail.com:
 
  1157 is a missing dependency, so I'd assume that there's a dependency
  not installed on all computers. If it's a C++ Dll it'll most likely be
  a missing C run time.
  ---
  Phil Wilson
 
 
  On Sun, Apr 20, 2014 at 5:55 AM, uni unigauld...@gmail.com wrote:
  Hi all,
 
  I have sequenced a custom action in my msi after CostFinalize.
  On most user's computers, it works well.
 
  But on some user's computers, when the msi is double clicked directly
  for installing, it will prompt A DLL required for this install to
  complete could not be run.
  I've changed CheckIfAnotherProductExists function to only call
  MessageBox(0,0,0,0), and it still prompted the error and the message
 box
  is not showed.
  If I remove the CheckIfAnotherProductExists entry in the
  InstallExecuteSequence table, all goes well.
  If I run the msi in cmd(run as administrator), it works fine, there
  should be not dependency problem with my custom action dll.
 
  It acts as if it has something to do with the privilege.
  May be it failed when the custom action's dll is being copied into the
  temp directory, or maybe LoadLibrary failed under non elevated
 privilege?
 
  Does any one has experienced something like this?
 
  The WiX code is as below,
 
 ===
  CustomAction Execute=immediate Id=CheckIfAnotherProductExists
  BinaryKey=MyDll DllEntry=CheckIfAnotherProductExists /
  Custom Action=CheckIfAnotherProductExists After=CostFinalize
 /Custom
 
 ===
 
  The log is as below,
 
 ===
  Action 14:20:31: CheckIfAnotherProductExists.
  Action start 14:20:31: CheckIfAnotherProductExists.
  MSI (c) (C4:B4) [14:20:31:680]: Invoking remote custom action. DLL:
  C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp, Entrypoint:
  CheckIfAnotherProductExists
  MSI (c) (C4:88) [14:20:31:680]: Cloaking enabled.
  MSI (c) (C4:88) [14:20:31:680]: Attempting to enable all disabled
  privileges before calling Install on Server
  MSI (c) (C4:88) [14:20:31:680]: Connected to service for CA interface.
  CustomAction CheckIfAnotherProductExists returned actual error code
 1157
  (note this may not be 100% accurate if translation happened inside
 sandbox)
  MSI (c) (C4:D8) [14:20:31:740]: Note: 1: 1723 2:
  CheckIfAnotherProductExists 3: CheckIfAnotherProductExists 4:
  C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
  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
 CheckIfAnotherProductExists,
  entry: CheckIfAnotherProductExists, library:
  C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp
  MSI (c) (C4:D8) [14:20:42:153]: Product: MyProduct -- 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 CheckIfAgentVersion, entry:
  CheckIfAgentVersion, library:
 C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 
 ===
 
  Any suggestion will be helpful.
  Gauldoth
 
 
 
 --
  Learn Graph Databases - Download FREE O'Reilly Book
  Graph Databases is the definitive new guide to graph databases and
 their
  applications. Written by three acclaimed leaders in the field,
  this first edition is now available. 

Re: [WiX-users] Immediate Custom Action could not be run in some computers.

2014-04-21 Thread Phil Wilson
1157 is a missing dependency, so I'd assume that there's a dependency
not installed on all computers. If it's a C++ Dll it'll most likely be
a missing C run time.
---
Phil Wilson


On Sun, Apr 20, 2014 at 5:55 AM, uni unigauld...@gmail.com wrote:
 Hi all,

 I have sequenced a custom action in my msi after CostFinalize.
 On most user's computers, it works well.

 But on some user's computers, when the msi is double clicked directly
 for installing, it will prompt A DLL required for this install to
 complete could not be run.
 I've changed CheckIfAnotherProductExists function to only call
 MessageBox(0,0,0,0), and it still prompted the error and the message box
 is not showed.
 If I remove the CheckIfAnotherProductExists entry in the
 InstallExecuteSequence table, all goes well.
 If I run the msi in cmd(run as administrator), it works fine, there
 should be not dependency problem with my custom action dll.

 It acts as if it has something to do with the privilege.
 May be it failed when the custom action's dll is being copied into the
 temp directory, or maybe LoadLibrary failed under non elevated privilege?

 Does any one has experienced something like this?

 The WiX code is as below,
 ===
 CustomAction Execute=immediate Id=CheckIfAnotherProductExists
 BinaryKey=MyDll DllEntry=CheckIfAnotherProductExists /
 Custom Action=CheckIfAnotherProductExists After=CostFinalize /Custom
 ===

 The log is as below,
 ===
 Action 14:20:31: CheckIfAnotherProductExists.
 Action start 14:20:31: CheckIfAnotherProductExists.
 MSI (c) (C4:B4) [14:20:31:680]: Invoking remote custom action. DLL:
 C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp, Entrypoint:
 CheckIfAnotherProductExists
 MSI (c) (C4:88) [14:20:31:680]: Cloaking enabled.
 MSI (c) (C4:88) [14:20:31:680]: Attempting to enable all disabled
 privileges before calling Install on Server
 MSI (c) (C4:88) [14:20:31:680]: Connected to service for CA interface.
 CustomAction CheckIfAnotherProductExists returned actual error code 1157
 (note this may not be 100% accurate if translation happened inside sandbox)
 MSI (c) (C4:D8) [14:20:31:740]: Note: 1: 1723 2:
 CheckIfAnotherProductExists 3: CheckIfAnotherProductExists 4:
 C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 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 CheckIfAnotherProductExists,
 entry: CheckIfAnotherProductExists, library:
 C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp
 MSI (c) (C4:D8) [14:20:42:153]: Product: MyProduct -- 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 CheckIfAgentVersion, entry:
 CheckIfAgentVersion, library: C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 ===

 Any suggestion will be helpful.
 Gauldoth


 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and their
 applications. Written by three acclaimed leaders in the field,
 this first edition is now available. Download your free book today!
 http://p.sf.net/sfu/NeoTech
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Immediate Custom Action could not be run in some computers.

2014-04-21 Thread Carter Young
Following Phil's Hunch, see here:

http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_vcredist.html

Carter

Quoting Phil Wilson phildgwil...@gmail.com:

 1157 is a missing dependency, so I'd assume that there's a dependency
 not installed on all computers. If it's a C++ Dll it'll most likely be
 a missing C run time.
 ---
 Phil Wilson


 On Sun, Apr 20, 2014 at 5:55 AM, uni unigauld...@gmail.com wrote:
 Hi all,

 I have sequenced a custom action in my msi after CostFinalize.
 On most user's computers, it works well.

 But on some user's computers, when the msi is double clicked directly
 for installing, it will prompt A DLL required for this install to
 complete could not be run.
 I've changed CheckIfAnotherProductExists function to only call
 MessageBox(0,0,0,0), and it still prompted the error and the message box
 is not showed.
 If I remove the CheckIfAnotherProductExists entry in the
 InstallExecuteSequence table, all goes well.
 If I run the msi in cmd(run as administrator), it works fine, there
 should be not dependency problem with my custom action dll.

 It acts as if it has something to do with the privilege.
 May be it failed when the custom action's dll is being copied into the
 temp directory, or maybe LoadLibrary failed under non elevated privilege?

 Does any one has experienced something like this?

 The WiX code is as below,
 ===
 CustomAction Execute=immediate Id=CheckIfAnotherProductExists
 BinaryKey=MyDll DllEntry=CheckIfAnotherProductExists /
 Custom Action=CheckIfAnotherProductExists After=CostFinalize /Custom
 ===

 The log is as below,
 ===
 Action 14:20:31: CheckIfAnotherProductExists.
 Action start 14:20:31: CheckIfAnotherProductExists.
 MSI (c) (C4:B4) [14:20:31:680]: Invoking remote custom action. DLL:
 C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp, Entrypoint:
 CheckIfAnotherProductExists
 MSI (c) (C4:88) [14:20:31:680]: Cloaking enabled.
 MSI (c) (C4:88) [14:20:31:680]: Attempting to enable all disabled
 privileges before calling Install on Server
 MSI (c) (C4:88) [14:20:31:680]: Connected to service for CA interface.
 CustomAction CheckIfAnotherProductExists returned actual error code 1157
 (note this may not be 100% accurate if translation happened inside sandbox)
 MSI (c) (C4:D8) [14:20:31:740]: Note: 1: 1723 2:
 CheckIfAnotherProductExists 3: CheckIfAnotherProductExists 4:
 C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 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 CheckIfAnotherProductExists,
 entry: CheckIfAnotherProductExists, library:
 C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp
 MSI (c) (C4:D8) [14:20:42:153]: Product: MyProduct -- 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 CheckIfAgentVersion, entry:
 CheckIfAgentVersion, library: C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 ===

 Any suggestion will be helpful.
 Gauldoth


 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and their
 applications. Written by three acclaimed leaders in the field,
 this first edition is now available. Download your free book today!
 http://p.sf.net/sfu/NeoTech
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 Start Your Social Network Today - Download eXo Platform
 Build your Enterprise Intranet with eXo Platform Software
 Java Based Open Source Intranet - Social, Extensible, Cloud Ready
 Get Started Now And Turn Your Intranet Into A Collaboration Platform
 http://p.sf.net/sfu/ExoPlatform
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users






--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
___

Re: [WiX-users] Immediate Custom Action could not be run in some computers.

2014-04-21 Thread Phil Wilson
This is useful for showing C++ dependencies:

http://www.dependencywalker.com/
---
Phil Wilson


On Mon, Apr 21, 2014 at 9:07 AM, Carter Young ecyo...@grandecom.net wrote:
 Following Phil's Hunch, see here:

 http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_vcredist.html

 Carter

 Quoting Phil Wilson phildgwil...@gmail.com:

 1157 is a missing dependency, so I'd assume that there's a dependency
 not installed on all computers. If it's a C++ Dll it'll most likely be
 a missing C run time.
 ---
 Phil Wilson


 On Sun, Apr 20, 2014 at 5:55 AM, uni unigauld...@gmail.com wrote:
 Hi all,

 I have sequenced a custom action in my msi after CostFinalize.
 On most user's computers, it works well.

 But on some user's computers, when the msi is double clicked directly
 for installing, it will prompt A DLL required for this install to
 complete could not be run.
 I've changed CheckIfAnotherProductExists function to only call
 MessageBox(0,0,0,0), and it still prompted the error and the message box
 is not showed.
 If I remove the CheckIfAnotherProductExists entry in the
 InstallExecuteSequence table, all goes well.
 If I run the msi in cmd(run as administrator), it works fine, there
 should be not dependency problem with my custom action dll.

 It acts as if it has something to do with the privilege.
 May be it failed when the custom action's dll is being copied into the
 temp directory, or maybe LoadLibrary failed under non elevated privilege?

 Does any one has experienced something like this?

 The WiX code is as below,
 ===
 CustomAction Execute=immediate Id=CheckIfAnotherProductExists
 BinaryKey=MyDll DllEntry=CheckIfAnotherProductExists /
 Custom Action=CheckIfAnotherProductExists After=CostFinalize /Custom
 ===

 The log is as below,
 ===
 Action 14:20:31: CheckIfAnotherProductExists.
 Action start 14:20:31: CheckIfAnotherProductExists.
 MSI (c) (C4:B4) [14:20:31:680]: Invoking remote custom action. DLL:
 C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp, Entrypoint:
 CheckIfAnotherProductExists
 MSI (c) (C4:88) [14:20:31:680]: Cloaking enabled.
 MSI (c) (C4:88) [14:20:31:680]: Attempting to enable all disabled
 privileges before calling Install on Server
 MSI (c) (C4:88) [14:20:31:680]: Connected to service for CA interface.
 CustomAction CheckIfAnotherProductExists returned actual error code 1157
 (note this may not be 100% accurate if translation happened inside sandbox)
 MSI (c) (C4:D8) [14:20:31:740]: Note: 1: 1723 2:
 CheckIfAnotherProductExists 3: CheckIfAnotherProductExists 4:
 C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 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 CheckIfAnotherProductExists,
 entry: CheckIfAnotherProductExists, library:
 C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp
 MSI (c) (C4:D8) [14:20:42:153]: Product: MyProduct -- 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 CheckIfAgentVersion, entry:
 CheckIfAgentVersion, library: C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
 ===

 Any suggestion will be helpful.
 Gauldoth


 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and their
 applications. Written by three acclaimed leaders in the field,
 this first edition is now available. Download your free book today!
 http://p.sf.net/sfu/NeoTech
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 Start Your Social Network Today - Download eXo Platform
 Build your Enterprise Intranet with eXo Platform Software
 Java Based Open Source Intranet - Social, Extensible, Cloud Ready
 Get Started Now And Turn Your Intranet Into A Collaboration Platform
 http://p.sf.net/sfu/ExoPlatform
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users






 --
 Start Your Social Network Today - Download eXo Platform
 Build your Enterprise Intranet with eXo Platform Software
 Java Based Open Source 

[WiX-users] Immediate Custom Action could not be run in some computers.

2014-04-20 Thread uni
Hi all,

I have sequenced a custom action in my msi after CostFinalize.
On most user's computers, it works well.

But on some user's computers, when the msi is double clicked directly
for installing, it will prompt A DLL required for this install to
complete could not be run.
I've changed CheckIfAnotherProductExists function to only call
MessageBox(0,0,0,0), and it still prompted the error and the message box
is not showed.
If I remove the CheckIfAnotherProductExists entry in the
InstallExecuteSequence table, all goes well.
If I run the msi in cmd(run as administrator), it works fine, there
should be not dependency problem with my custom action dll.

It acts as if it has something to do with the privilege.
May be it failed when the custom action's dll is being copied into the
temp directory, or maybe LoadLibrary failed under non elevated privilege?

Does any one has experienced something like this?

The WiX code is as below,
===
CustomAction Execute=immediate Id=CheckIfAnotherProductExists
BinaryKey=MyDll DllEntry=CheckIfAnotherProductExists /
Custom Action=CheckIfAnotherProductExists After=CostFinalize /Custom
===

The log is as below,
===
Action 14:20:31: CheckIfAnotherProductExists.
Action start 14:20:31: CheckIfAnotherProductExists.
MSI (c) (C4:B4) [14:20:31:680]: Invoking remote custom action. DLL:
C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp, Entrypoint:
CheckIfAnotherProductExists
MSI (c) (C4:88) [14:20:31:680]: Cloaking enabled.
MSI (c) (C4:88) [14:20:31:680]: Attempting to enable all disabled
privileges before calling Install on Server
MSI (c) (C4:88) [14:20:31:680]: Connected to service for CA interface.
CustomAction CheckIfAnotherProductExists returned actual error code 1157
(note this may not be 100% accurate if translation happened inside sandbox)
MSI (c) (C4:D8) [14:20:31:740]: Note: 1: 1723 2:
CheckIfAnotherProductExists 3: CheckIfAnotherProductExists 4:
C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
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 CheckIfAnotherProductExists,
entry: CheckIfAnotherProductExists, library:
C:\Users\administrator\AppData\Local\Temp\MSI209E.tmp
MSI (c) (C4:D8) [14:20:42:153]: Product: MyProduct -- 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 CheckIfAgentVersion, entry:
CheckIfAgentVersion, library: C:\Users\foxit\AppData\Local\Temp\MSI209E.tmp
===

Any suggestion will be helpful.
Gauldoth


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users