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

Rob Mensching rob at firegiant.com
Mon Feb 12 20:37:33 PST 2018


http://robmensching.com/blog/posts/2010/8/2/the-first-thing-i-do-with-an-msi-log/

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

From: Suhaib Ahmad [mailto:a.suhaib.47 at gmail.com]
Sent: Monday, February 12, 2018 8:36 PM
To: Rob Mensching <rob at firegiant.com>
Subject: Re: [wix-users] perUser install - error while finishing up installation

Thanks for the response. I don't know what exactly I should be looking for in the log, so I've put the whole log here

On 13 February 2018 at 12:21, Rob Mensching <rob at firegiant.com<mailto:rob at firegiant.com>> wrote:
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<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<mailto:wix-users at lists.wixtoolset.org>>
Cc: Suhaib Ahmad <a.suhaib.47 at gmail.com<mailto: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