Hi, During the work on a complex msi package, I came across the error, which is displayed in the subject of this message. This error happens during the uninstall procedure. It is important to note that the above mentioned error does not happen when the installation is executed from the CMD, which is started with administrative privileges. It happens only when the CMD is started with ordinary user privileges and the UAC requires elevation of the privileges.
I think that I succeeded to localize the issue, but I can not find the solution. I work on Windows 8.1 and I use the Wix toolset 3.9R2 (I tried even with 3.9 and 3.8, but without success). The msi package is built by using the following commands: candle -arch x86 -out onefile.wixobj onefile.wxs light -ext WixUIExtension -out onefile.msi onefile.wixobj The install/uninstall is performed by using the following commands: msiexec /i onefile.msi /l onefile-INSTALL.log msiexec /x onefile.msi /l onefile-UNINSTALL.log Following is the content of the onefile.wxs file: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="A File App" Language="1033" Manufacturer="The Company" UpgradeCode="177831E0-17D3-4D04-910E-858EDC8E0106" Version="1.0.0"> <Package Id="*" Compressed="yes" InstallerVersion="200" Description="How to avoid error 2911" InstallPrivileges="elevated" InstallScope="perMachine" Manufacturer="The Company" ReadOnly="no" ShortNames="no" /> <Media Id="1" Cabinet="afile.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir" /> <Feature Id="ProductFeature" Level="1" Display="expand" Title="A file 1.0.0" Description="Install one file" ConfigurableDirectory="AFILEINSTALL"> <ComponentRef Id="cmp29B61274575C4BAEA7EAF0B79327D482" /> <ComponentRef Id="ProgramMenuDir" /> </Feature> <UIRef Id="WixUI_Minimal" /> <UIRef Id="WixUI_ErrorProgressText" /> </Product> <Fragment> <DirectoryRef Id="TARGETDIR"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="AFILEINSTALL" Name="afile"> <Directory Id="AFILEBIN" Name="bin"> <Component Id="cmp29B61274575C4BAEA7EAF0B79327D482" Guid="3CD4E0A6-9DC1-4D98-A3F3-B2C1D359A082"> <File Id="fil03F889804F64448ABDBC3A58AD0BEEF6" KeyPath="yes" Source=".\onefile.txt" /> </Component> </Directory> </Directory> </Directory> <Directory Id="ProgramMenuFolder" Name="Programs"> <Directory Id="ProgramMenuDir" Name="afile"> <Component Id="ProgramMenuDir" Guid="006FCB2A-96BC-4300-ABC8-AE14A2AC2E37"> <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Type='string' Value='' KeyPath='yes' /> </Component> </Directory> </Directory> </DirectoryRef> </Fragment> </Wix> Does somebody can tell me where I'm wrong? Regards, Miroslav ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users