[wix-users] MSI fails on InstallInitialize

Steve Ogilvie sogilvie at msn.com
Mon Jun 27 11:11:10 PDT 2016


Hi all,
So I have a MSI that all it does is run a custom action at LaunchConditions.
It is a prerequisite checker, that will run BEFORE our other MSI's to validate that all of the pre requisites for our installer are set properly before we actually copy any files.
I have a custom action that is called that checks all pre reqs and logs the results.
it doesn't install anything...
I have most pre req in our bootstrapper as well but most customers run our installs via GPO which doesn't support EXE's and hence they run our MSI's in sequence.
error log is:MSI (s) (A8:90) [13:55:28:709]: PROPERTY CHANGE: Adding REMOVE property. Its value is 'ALL'.Action ended 13:55:28: InstallValidate. Return value 1.MSI (s) (A8:90) [13:55:28:709]: Doing action: RemoveExistingProductsAction 13:55:28: RemoveExistingProducts. Removing applicationsAction start 13:55:28: RemoveExistingProducts.MSI (s) (A8:90) [13:55:28:725]: Skipping RemoveExistingProducts action: current configuration is maintenance mode or an uninstallAction ended 13:55:28: RemoveExistingProducts. Return value 0.MSI (s) (A8:90) [13:55:28:725]: Doing action: InstallInitializeAction 13:55:28: InstallInitialize. Action start 13:55:28: InstallInitialize.MSI (s) (A8:90) [13:55:28:725]: Note: 1: 2205 2:  3: Component Action ended 13:55:28: InstallInitialize. Return value 3.Action ended 13:55:28: INSTALL. Return value 3.

is this due to the fact I have a group component that is empty?
<Feature Id="ProductFeature" Title="TITUS_PEP_PrerequisiteChecker" Level="1">
			<ComponentGroupRef Id="ProductComponents" />
		</Feature>
	</Product>
 
	<Fragment>
		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramFilesFolder">
				<Directory Id="INSTALLFOLDER" Name="TITUS_PEP_PrerequisiteChecker" />
			</Directory>
		</Directory>
	</Fragment>
 
	<Fragment>
		<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
			<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
			<!-- <Component Id="ProductComponent"> -->
				<!-- TODO: Insert files, registry keys, and other resources here. -->
			<!-- </Component> -->
		</ComponentGroup>
 
    <!-- Custom Actions -->
    <CustomAction Id="SetMspReinstall" Property="REINSTALLMODE" Value="amus" />
    <UI>
      <ProgressText Action="SetMspReinstall">CA: Setting REINSTALLMODE to amus</ProgressText>
    </UI>
    <CustomAction Id="CA_PrerequisiteChecker" DllEntry="VerifyPrerequisites" BinaryKey="BIN_PrereqCheckerCA" Execute="immediate" Return="check"/>
    <UI>
      <ProgressText Action="CA_PrerequisiteChecker">$(var.CA_PreRequisiteCheck_String)</ProgressText>
    </UI>
 
    <InstallExecuteSequence>
      <ResolveSource Before="CostFinalize"><![CDATA[Not Installed And Not PATCH]]></ResolveSource>
      <Custom Action="SetMspReinstall" After="FindRelatedProducts">Installed</Custom>
      <RemoveExistingProducts Overridable="yes" After="InstallInitialize"/>
      <Custom Action="CA_PrerequisiteChecker" Before="LaunchConditions">NOT Installed</Custom>
    </InstallExecuteSequence>
 
    <Condition Message="$(var.SameVersionFoundCondition_Message)">NOT SAMEFOUND OR Installed</Condition>
 
    <InstallUISequence>
      <Custom Action="CA_PrerequisiteChecker" Before="LaunchConditions">NOT Installed</Custom>
    </InstallUISequence>
    
	</Fragment>
</Wix>
thanks,
Steve 		 	   		  


More information about the wix-users mailing list