[wix-users] perUser install - error while finishing up installation
Suhaib Ahmad
a.suhaib.47 at gmail.com
Mon Feb 12 18:55:40 PST 2018
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.
More information about the wix-users
mailing list