[wix-users] perUser install - error while finishing up installation

Rob Mensching rob at firegiant.com
Mon Feb 12 20:21:02 PST 2018


Verbose log file says?

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Suhaib Ahmad via wix-users
Sent: Monday, February 12, 2018 6:56 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Suhaib Ahmad <a.suhaib.47 at gmail.com>
Subject: [wix-users] perUser install - error while finishing up installation

I have written an installer that installs in a perUser scope. Initially I was writing this as an Advanced_UI install allowing to choose between perUser or perMachine.

The installation takes place and it can also upgrade from a previous application, successfully removing the previous installed application.
However, right at the end of the installation process, I get an error
saying: *There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor*. Searching about this error online hasn't given me much.

I have ensured that each component for a file has a RegistryValue with a KeyPath.

One main concern that I have is that my TARGETDIR has ProgramFilesFolder, however I am redirecting it to LocalAppDataFolder for simplicity, as in the code below. I would like to know if this is good practice, or if i should specifically write to LocalAppDataFolder with the RemoveFolder elements for each directory in a perUser install?



    <!-- redirect ProgramFilesFolder to LocalAppDataFolder -->
    <SetProperty Id="ProgramFilesFolder" Value="[LocalAppDataFolder]"
Before="CostFinalize"><![CDATA[NOT Privileged]]></SetProperty>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="Company" Name="CompanyName">
          <Directory Id="INSTALLFOLDER" Name="ProductName">
            <Directory Id="locales_dir" Name="locales" />
            <Directory Id="zh_Hans" Name="zh-Hans" />
            <Directory Id="zh_Hant" Name="zh-Hant" />
            <Directory Id="x86_dir" Name="x86" />
            <Directory Id="x64_dir" Name="x64" />
          </Directory>
        </Directory>
      </Directory>



Could this be the cause of my troubles? Or is it due to something else?
Please help.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list