The only difference that I could spot is that removal of a.ps1 and b.ps1 is followed by:Line 5917: MSI (s) (F8:24) [14:45:21:195]: Executing op: UnregisterSharedComponentProvider(Component={2C2358CA-72C0-4AB4-B6BC-A0C1E0C8F46E},ProductCode={86229757-10CD-4477-BDC3-2433332345E7})
Line 5918: MSI (s) (F8:24) [14:45:21:195]: Executing op: ComponentUnregister(ComponentId={2C2358CA-72C0-4AB4-B6BC-A0C1E0C8F46E},,BinaryType=0,)
Line 5919: 1: {86229757-10CD-4477-BDC3-2433332345E7} 2: {2C2358CA-72C0-4AB4-B6BC-A0C1E0C8F46E}
Line 7777: MSI (s) (F8:24) [14:45:23:356]: Executing op: FileRemove(,FileName=a.ps1,,ComponentId={2C2358CA-72C0-4AB4-B6BC-A0C1E0C8F46E})
Line 7782: MSI (s) (F8:24) [14:45:23:358]: Executing op: FileRemove(,FileName=b.ps1,,ComponentId={2C2358CA-72C0-4AB4-B6BC-A0C1E0C8F46E})
Line 10413: MSI (s) (F8:24) [14:45:24:409]: Executing op: FileRemove(,FileName=c.bat,,ComponentId={2C2358CA-72C0-4AB4-B6BC-A0C1E0C8F46E})
and:RemoveFiles: File: a.ps1, Directory: C:\some_path
MSI (s) (F8:24) [14:45:23:357]: Verifying accessibility of file: a.ps1
MSI (s) (F8:24) [14:45:23:358]: Note: 1: 2318 2:
MSI (s) (F8:24) [14:45:23:358]: Note: 1: 2318 2:
but c.bat is followed by:RemoveFiles: File: b.ps1, Directory: C:\some_path
MSI (s) (F8:24) [14:45:23:359]: Verifying accessibility of file: b.ps1
MSI (s) (F8:24) [14:45:23:359]: Note: 1: 2318 2:
MSI (s) (F8:24) [14:45:23:359]: Note: 1: 2318 2:
(not sure what 'Note: 1: 2318 2:' does, but it was logged just once)RemoveFiles: File: c.bat, Directory: C:\some_path
MSI (s) (F8:24) [14:45:24:410]: Verifying accessibility of file: c.bat
MSI (s) (F8:24) [14:45:24:410]: Note: 1: 2318 2:
I figured out that c.bat in previous installer version had last modified date newer than c.bat in newer version of installer and overwrite behaviour was set to 'Overwrite only if the existing file is older'. I changed that to 'Always overwrite existing file', however that didn't take any effect, then I changed c.bat to have last modified date newer than it was in a previous installer version, but even that did't take any effect. Also I couldn't see any change in logging around 'c.bat' and '2C2358CA-72C0-4AB4-B6BC-A0C1E0C8F46E', so it looks like my changes ignored.
Other things I checked:
* in component properties of older installer version 'Never Overwrite' attribute wasn't set
* tried to move my custom action (that runs c.bat) to Finish Dialogs Stage - same behaviour.
* tried to remove c.bat file manually before running new version of installer - behaviour was also the same, but in logs only 'MSI (s) (C4:40) [16:01:58:046]: Verifying accessibility of file: b.bat' step was missing
Obviously, when I am performing a 'fresh' install everything is fine.
Is it sounds like a bug in AI? I am at v10.3.
Any help is highly appreciated as there almost no hair left on my head..
FOLLOW US
Get the latest news in Application Packaging