[wix-users] Error 2769 when Upgrading
Sarvagya Pant
sarvagya.pant at gmail.com
Tue Aug 4 07:58:47 PDT 2015
I have asked the question in SO too but got no proper response. Here's the
link =>
http://stackoverflow.com/questions/31801643/error-2769-when-upgrading-the-installer/
My installer has two Custom actions:
1. WRITEFILETODISK : This CA is supposed to run just before Service gets
started. It will create a JSON file (that executable requires) from the
parameters passed to installer. ie:
msiexec /i installer.msi /l*v install.log IPADDRESS="192.168.2.1" will
create a json looking as:
{
"ip" : "192.168.2.1"
}
2. ResidueRemove: This will remove the residue of installer from
CommonAppDataFolder ie %ProgramData%SomeFolder. This is supposed to be
called after uninstall is done.
The snippet of Wix File is below:
<Binary Id="SetupCA"
SourceFile="..\..\ext_library\SetupCACPP\SetupCACPP\bin\Release\SetupCACPP.dll"/><CustomAction
Id="WRITEFILETODISK" Execute="immediate" BinaryKey="SetupCA"
DllEntry="WriteFileToDisk" /><CustomAction Id="ResidueRemove"
Execute="immediate" BinaryKey="SetupCA" DllEntry="DeleteResidue"
/><InstallExecuteSequence>
<Custom Action="WRITEFILETODISK" After="InstallFinalize">NOT
Installed</Custom>
<Custom Action="ResidueRemove" After="InstallFinalize">REMOVE~="ALL"</Custom>
<!-- Rob Menshing Answer @ http://stackoverflow.com/a/321874/2634612
--></InstallExecuteSequence>
The code for ResidueRemove is
https://gist.github.com/mesarvagya/49dbd847c0572f109dac
When One version of installer is installed and upgraded version is
installed over it, In German Version of Windows it failed to install the
new version. The log generated was:
DeleteResidue: Doing Delete Residue
MSI (s) (64:A4) [10:54:51:643]: Leaked MSIHANDLE (11) of type 790541
for thread 980
MSI (s) (64:A4) [10:54:51:643]: Note: 1: 2769 2: ResidueRemove 3: 1
MSI (s) (64:A4) [10:54:51:643]: Note: 1: 2205 2: 3: Error
MSI (s) (64:A4) [10:54:51:643]: Note: 1: 2228 2: 3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 2769
DEBUG: Error 2769: Custom Action ResidueRemove did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this
package. This may indicate a problem with this package. The error code
is 2769. The arguments are: ResidueRemove, 1,
Action ended 10:54:51: ResidueRemove. Return value 3.
Action ended 10:54:51: INSTALL. Return value 3
While the same installer were reported to be installed correctly in
English Version of Windows by customers. What am I doing wrong here?
Any help would be much appreciated.
Thanks,
--
*Sarvagya Pant*
*Kathmandu, Nepal*
*+9779803468257*
More information about the wix-users
mailing list