Force MSI install

alogixtjt 1 Reputation point
2022-10-27T18:33:59+00:00

I have a setup.exe that contains 2 msi packages. The second msi package does not get installed if it has already been installed with another application.
Here is the relevant text from the log:

Verified acquired payload: package1.msi at path: C:\ProgramData\Package Cache.unverified\package1.msi, moving to: C:\ProgramData\Package Cache{FC78D4F8-45E0-4C67-8ED5-7463F8356012}v1.0.0.0\package1.msi.
[622C:5C7C][2022-10-27T13:48:13]i323: Registering package dependency provider: {FC78D4F8-45E0-4C67-8ED5-7463F8356012}, version: 1.0.0.0, package: package1.msi
[622C:5C7C][2022-10-27T13:48:13]i301: Applying execute package: package1.msi, action: Install, path: C:\ProgramData\Package Cache{FC78D4F8-45E0-4C67-8ED5-7463F8356012}v1.0.0.0\package1.msi, arguments: ' ALLUSERS="1" ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"'
[2304:0B68][2022-10-27T13:48:15]i319: Applied execute package: package1.msi, result: 0x0, restart: None
[622C:5C7C][2022-10-27T13:48:15]i325: Registering dependency: {86a70dd1-b73c-48f6-bc6b-2a498c8b0ecb} on package provider: {FC78D4F8-45E0-4C67-8ED5-7463F8356012}, package: package1.msi
[622C:5C7C][2022-10-27T13:48:15]i323: Registering package dependency provider: {27CD99AE-5F11-4CBA-9375-75F33EF0BE96}, version: 11.1.0.6, package: package2.msi
[622C:5C7C][2022-10-27T13:48:15]i325: Registering dependency: {86a70dd1-b73c-48f6-bc6b-2a498c8b0ecb} on package provider: {27CD99AE-5F11-4CBA-9375-75F33EF0BE96}, package: package2.msi
[622C:5C7C][2022-10-27T13:48:15]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{86a70dd1-b73c-48f6-bc6b-2a498c8b0ecb}, resume: ARP, restart: None, disable resume: No
[622C:5C7C][2022-10-27T13:48:15]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{86a70dd1-b73c-48f6-bc6b-2a498c8b0ecb}, resume: ARP, restart initiated: No, disable resume: No
[2304:0B68][2022-10-27T13:48:15]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No

package2.msi was installed with another application and its contents are in some other folder than where I want this installation to be installed. The installation succeeds, but the contents of the package2.msi are not installed. If I uninstall that other app, then the contents of this msi gets installed as I expect (and I see the corresponding "Applying execute package" line in the log. The other app then fails to install the contents of package2.msi because it has already been installed somewhere else. Is there a way I can force this msi to be installed?

I am using WIX to build the setup.exe and the package chain looks like the following:

	<Chain >  
		<MsiPackage SourceFile="$(var.myapp.ProjectDir)package1.msi" ForcePerMachine="yes" >  

		</MsiPackage>  
		<MsiPackage SourceFile="$(var.myapp.ProjectDir)package2.msi" ForcePerMachine='yes' >  
			<MsiProperty Name='INSTALLLOCATION' Value="[InstallFolder]"/>  
		</MsiPackage>  
	</Chain>
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
989 questions
{count} votes