Where is that return code reported? Is the group created?

Actions that are successful (because the EXE returns 0 or the DLL returns
ERROR_SUCCESS) has a report in the log of returning "1" because the return
codes from EXE/DLL are "translated" into the script return codes reported on
this page: http://msdn.microsoft.com/en-us/library/aa371254(VS.85).aspx.

As an example, I have a DLL custom action (named
BLMSetPropertyKnownFolders_x64) that returns ERROR_SUCCESS and this is how
it shows up in the log:

MSI (s) (B0:A0) [18:30:03:821]: Doing action: BLMSetPropertyKnownFolders_x64
Action start 18:30:03: BLMSetPropertyKnownFolders_x64.
MSI (s) (B0:B0) [18:30:03:904]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSIC822.tmp, Entrypoint: SetPropertyKnownFolders
SetPropertyKnownFolders:  Initialized.
MSI (s) (B0!1C) [18:30:04:036]: PROPERTY CHANGE: Adding KDOCUMENTS property.
Its value is 'C:\Users\Blair\Documents\'.
Action ended 18:30:04: BLMSetPropertyKnownFolders_x64. Return value 1.

That return value means: msiDoActionStatusSuccess IDOK = 1 Action completed
successfully.

-----Original Message-----
From: James Lucero [mailto:jluc...@microsoft.com] 
Sent: Wednesday, September 23, 2009 1:29 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating Local Security Groups

I'm trying to create a local security group, and not having much luck.   I
currently have a couple of CA's, one defining the property for the location
of net.exe, then one to invoke the call:

    <CustomAction
      Id="SetCmdLine_CreatePMGroup"
      Property="QtExecCmdLine"
      Value="&quot;[SystemFolder]net.exe localgroup PowerMonitorUsers /add"
/>
    <CustomAction
      Id="QtExec_PowerMonitorUsersGroupCreate"
      BinaryKey="WixCA"
      DllEntry="CAQuietExec"
      Execute="deferred"
      Return="ignore"
      Impersonate="no"
      />
  </Fragment>

I'm getting a return code of 1.  I'm thinking it has to do something with
elevation, however looking at the table directly, the CA for
PowerMonitorUsersGroupCreate is type 3137, which is setting the
msidbCustomActionTypeNoImpersonate bit.

Has anyone created a Local Security group and populated it before?
----------------------------------------------------------------------------
--
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to