[wix-users] Remove MSI on Update without running a CustomAction in it

Blair Murri osito at live.com
Tue May 28 19:00:20 PDT 2019


It detects that SHA1 is installed and that SHA256 is not installed.

There's not enough detail here to know why it didn't schedule SHA1 for removal (is the component guid still in another installed MSI somewhere?) nor evidence to support your assertion that SHA256 is still installed.

Reformating for clarity:

Feature: Feature_SHA1
     Installed: Local
     Request: Null
     Action: Null

Feature: Feature_SHA256
     Installed: Absent
     Request: Null
     Action: Null

Component: File_SHA1
     Installed: Local
     Request: Null
     Action: Null

Component: File_SHA256
     Installed: Absent
     Request: Null
     Action: Null

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of RonnyS via wix-users <wix-users at lists.wixtoolset.org>
Sent: Tuesday, May 28, 2019 5:21:06 AM
To: WiX Toolset Users Mailing List; Ronny Schultheiß
Cc: RonnyS
Subject: Re: [wix-users] Remove MSI on Update without running a CustomAction in it

Hello everybody,

I now have a problem with the approach for systems that have been updated
from Windows 7 to Windows 10 and now an update of our software is
performed. Not all files are removed from the third MSI. Therefore, the
removal of the MSI is additionally called in the bootstrapper. This will
execute the custom action that should not be running.
We install Windows 7 files signed SHA1 and Windows 10 with SHA2. The SHA1
and SHA2 files are in different components and features. They are installed
depending on the operating system.

Example:
Feature: Feature_SHA1
File_SHA1

Feature: Feature _SHA256
File_SHA256

Log files when updating our software:
Feature: Feature_SHA1; Installed: Local;   Request: Null;   Action: Null
Feature: Feature_SHA256; Installed: Absent;   Request: Null;   Action: Null
Component: File_SHA1; Installed: Local;   Request: Null;   Action: Null
Component: File_SHA256; Installed: Absent;   Request: Null;   Action: Null

It detects that Feature_SHA1 and File_SHA1 are installed, but they are not
marked for removal.
What do I have to do to remove the SHA1 parts as well?

Thanks and Greetings Ronny



> Many thanks for your help @Nir Bar and Edwin Castro
>>
>> I have tried it now and it works:
>> <Property Id="PREVIOUSVERSIONSINSTALLED_THIRDMSI" Secure="yes" />
>> <Upgrade Id="{UPGRADE GUID OF THE THIRD MSI}">
>> <UpgradeVersion Minimum="1.0.0.0" Maximum="99.99.99.99" Property="
>> PREVIOUSVERSIONSINSTALLED_THIRDMSI" IncludeMinimum="yes"
>> IncludeMaximum="no"
>> />
>> </Upgrade>
>>
>> All files (first & third MSI) will be removed and installed new with the
>> first MSI. The CustomAction on the third MSI dont run so the problem is
>> solved.
>> Should I adjust something to make it more stable?
>>
>> Greetings Ronny
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>

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



More information about the wix-users mailing list