R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Patch installation successful, but Modify fails afterwards

Hi,

i have a strange problem: I create a patch for the latest version of our product. This will be the first patch for a recent major release. I followed the same procedure, as I did in the past and as described in your manuals. The msi package used for creating the patch doesn't contain other changes as file updates (all new files have got a new version number), nothing else has changed.

Now the QA team reported, that after installing the patch, it is not possible to modify the existing installation anymore. If you add a new feature to the installation, the feature will be installed, and also shown as installed in Programs and Features, but infact the files are missing in the installation dir. I also checked the log file, there are no error messages to be seen.

Any ideas, where to start searching or what could be the issue?

Roland
Last edited by R.Mueller on Tue Nov 19, 2013 12:49 pm, edited 1 time in total.
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Patch installation successful, but Modify fails afterwar

I made some further investigations, here our Export Utility is installed, I found the following messages in the log:

Code: Select all

MSI (s) (AC:C0) [11:26:45:611]: PROPERTY CHANGE: Adding ADDLOCAL property. Its value is 'ExportUtility'.
...
MSI (s) (AC:C0) [11:26:47:627]: Feature: ExportUtility; Installed: Absent;   Request: Local;   Action: Local
...
MSI (s) (AC:C0) [11:26:47:627]: Component: Exporter.exe; Installed: Absent;   Request: Local;   Action: Local
...
MSI (s) (AC:C0) [11:26:48:205]: Doing action: InstallFiles
MSI (s) (AC:C0) [11:26:48:220]: Note: 1: 2379 2: 2 3: C:\Program Files\Test\Exporter.exe
...
MSI (s) (AC:C0) [11:26:48:627]: Executing op: ComponentRegister(ComponentId={91CBACCC-88CC-4581-B49B-E4CCF97961CB},KeyPath=C:\Program Files\Test\Exporter.exe,State=3,,Disk=1,SharedDllRefCount=0,BinaryType=0)
...
MSI (s) (AC:C0) [11:26:51:658]: Executing op: SetTargetFolder(Folder=C:\Program Files\Test\)
MSI (s) (AC:C0) [11:26:51:658]: Executing op: SetSourceFolder(Folder=1\)
MSI (s) (AC:C0) [11:26:51:658]: Executing op: FileCopy(SourceName=Exp~1.exe|Exporter.exe,SourceCabKey=Exporter.exe,DestName=Exporter.exe,Attributes=0,FileSize=713024,PerTick=32768,,VerifyMedia=1,,TotalPatches=1,,,CheckCRC=0,Version=11.1.2.0,Language=0,InstallMode=58982400,,,,,,,)
MSI (s) (AC:C0) [11:26:51:658]: File: C:\Program Files\Test\Exporter.exe;   To be installed;   Smart patch;   No existing file
MSI (s) (AC:C0) [11:26:51:658]: Redirecting file copy of 'C:\Program Files\Test\Exporter.exe' to 'C:\Config.Msi\PT124.tmp'.   A subsequent patch will update the intermediate file, and then copy over the original.
MSI (s) (AC:C0) [11:26:51:658]: Source for file 'Exporter.exe' is compressed
MSI (s) (AC:C0) [11:26:51:658]: Re-applying security from existing file.
MSI (s) (AC:C0) [11:26:51:658]: Verifying accessibility of file: PT124.tmp
MSI (s) (AC:C0) [11:26:51:658]: Note: 1: 2318 2: C:\Config.Msi\PT124.tmp
...
MSI (s) (AC:C0) [11:26:52:986]: Executing op: ShortcutCreate(Name=Exp~2|Export Utility,,,FileName=C:\Program Files\Test\Exporter.exe,,WorkingDir=C:\Program Files\Test\,,IconIndex=0,HotKey=0,ShowCmd=1,,,,,)
There is no hint, that the file is beeing renamed from PT124.tmp to the installation folder with the proper name.

Steps on my side to reproduce this issue:
  • Install base version of our product
  • Apply patch for this version
  • Modify installation and add previously not installed feature
Please Help!

Regards,

Roland
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch installation successful, but Modify fails afterwar

Hi Roland,

Unfortunately Windows Installer cannot perform a Modify operation on the patched version, you'll need a major upgrade for that. Here is Base Package - PATCH - MODIFY thread debating a similar issue.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Patch installation successful, but Modify fails afterwar

Hi Mihai,

Is this behavior still present with current versions of Windows Installer?

How works then a Visual Studio Patch or Microsoft Office Patch or an SQL Server patch? You can still perform a modify, after you installed a patch for this programs.

Does this behavior only apply on features affected by the patch or on all features after patching to latest version? Does it help to install the patch again?

Cheers,

Roland
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch installation successful, but Modify fails afterwar

Hi Roland,

I just performed some tests and the Modify seems to work after patching, the thread above is referring to a different scenario. Sorry for the confusion.

Can you send me your project files over e-mail (target, upgraded and patch) so I can investigate the behavior you are getting?
Better yet, if you can send me simplified versions of the projects so I can build them using some dummy resources that would be wonderful. They should produce the same outcome nonetheless.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”