We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

cygroup
Posts: 2
Joined: Sat Oct 14, 2006 4:31 am

Problem when create patch

Hi,
There was a problem when i created a patch project, i don't know what was happened, the log is as following:

Building package: H:\Project.Net\Products\Test\Patch.msp
Creating PCP database... done.
Creating MSP...
***** Log starting: 2006-11-18 09:34:04 *****

Input-PCP path = 'H:\Project.Net\Products\Test\Patch.pcp'
Patch-MSP path = 'H:\Project.Net\Products\Test\Patch.msp'
Temp Folder = 'C:\DOCUME~1\CYGROU~1.HUI\LOCALS~1\Temp\~PCW_TMP.TMP\'
Patch GUID = '{654E5EC1-E8DD-4AAC-A9D6-A75B717A6F16}'
ListOfPatchGUIDsToReplace = '<none>'
ListOfTargetProductCodes = '*'
PatchSourceList = 'PatchSourceList'
AllowProductCodeMismatches = '1'
AllowProductVersionMajorMismatches = '1'
OptimizePatchSizeForLargeFiles = '<blank>'
ApiPatchingSymbolFlags = '<blank>'
MsiFileToUseToCreatePatchTables = '<blank>'
SqlCmdToCreatePatchTable = '<blank>'
SqlCmdToCreatePatchPackageTable = '<blank>'
SqlCmdToCreateMsiPatchHeadersTable = '<blank>'
DontRemoveTempFolderWhenFinished = '1'
IncludeWholeFilesOnly = '<blank>'
MinimumRequiredMsiVersion = '200'
SEQUENCE_DATA_GENERATION_DISABLED = '1'
AllowRemoval = '<blank>'

Using internal SQL cmd to create 'Patch' table.
Using internal SQL cmd to create 'PatchPackage' table.
Using internal SQL cmd to create 'MsiPatchHeaders' table.

ERROR: Cannot generate a primary transform.

***** Log finishing: 2006-11-18 09:34:05 *****

error.
Exception - Reason: MsiMsp.exe failed to create the patch file.

Build finished because an error was encountered.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please ensure that your windows installer installation is not damaged. You can verify that by creating the patch on other computer.

Also make sure that you have enough free space on your primary drive.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
TBrame
Posts: 14
Joined: Fri Nov 17, 2006 3:01 pm

I have a similar problem. I have verified that my windows installer installation is not damaged, and there is plenty of space on my destination drive. Below is my log:


Building package: D:\Installer\AdvancedInstaller\Update\qmpatch.msp
Creating PCP database... done.
Creating MSP...
***** Log starting: 2006-11-20 16:50:39 *****

Input-PCP path = 'D:\Installer\AdvancedInstaller\Update\qmpatch.pcp'
Patch-MSP path = 'D:\Installer\AdvancedInstaller\Update\qmpatch.msp'
Temp Folder = 'C:\DOCUME~1\tbrame\LOCALS~1\Temp\~PCW_TMP.TMP\'
Patch GUID = '{F953FAA8-D153-4B6D-9DBE-BEFD6BFD985E}'
ListOfPatchGUIDsToReplace = '<none>'
ListOfTargetProductCodes = '*'
PatchSourceList = 'PatchSourceList'
AllowProductCodeMismatches = '1'
AllowProductVersionMajorMismatches = '1'
OptimizePatchSizeForLargeFiles = '<blank>'
ApiPatchingSymbolFlags = '<blank>'
MsiFileToUseToCreatePatchTables = '<blank>'
SqlCmdToCreatePatchTable = '<blank>'
SqlCmdToCreatePatchPackageTable = '<blank>'
SqlCmdToCreateMsiPatchHeadersTable = '<blank>'
DontRemoveTempFolderWhenFinished = '<blank>'
IncludeWholeFilesOnly = '<blank>'
MinimumRequiredMsiVersion = '200'
SEQUENCE_DATA_GENERATION_DISABLED = '1'
AllowRemoval = '<blank>'

Using internal SQL cmd to create 'Patch' table.
Using internal SQL cmd to create 'PatchPackage' table.
Using internal SQL cmd to create 'MsiPatchHeaders' table.

WARNING (14): File versions are equal. Upgraded: 'D:\Installer\AdvancedInstaller\Update\images\IGCSetup\.\.\QuickMove\QuickMove.exe' ver=6.4.0.244; Target: 'D:\Installer\AdvancedInstaller\Update\images\IGCSetup_1\.\.\QuickMove\QuickMove.exe' ver=6.4.0.244.
Files differ: 'D:\Installer\AdvancedInstaller\Update\images\IGCSetup\.\.\QuickMove\QuickMove.exe',
'D:\Installer\AdvancedInstaller\Update\images\IGCSetup_1\.\.\QuickMove\QuickMove.exe'.
Patch file created: FTK=QuickMove.exe; temp location=Family\00002.HDR.
ERROR: Cannot generate a primary transform.

***** Log finishing: 2006-11-20 16:54:27 *****

error.
Exception - Reason: MsiMsp.exe failed to create the patch file.

Build finished because an error was encountered.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Files differ: 'D:\Installer\AdvancedInstaller\Update\images\IGCSetup\.\.\QuickMove\QuickMove.exe',
'D:\Installer\AdvancedInstaller\Update\images\IGCSetup_1\.\.\QuickMove\QuickMove.exe'.
I see that the content of the "QuichMove.exe" file is changed. So you need to change its version also.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
TBrame
Posts: 14
Joined: Fri Nov 17, 2006 3:01 pm

I have changed the version of this file, and also updated the version of the new msi which was another problem I was overlooking. Now when I compile the patch, it builds successfully, but when I try to run it the following error is displayed

Image


Thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This error message pops up if the .msp is used by other program. So please make sure that the .msp file is not opened by other application (you can use a process tool to determine that).

However if the problem persist please send both AIP files (old and new) if not contain any confidential informations to support at advancedinstaller dot com so we can take a look.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”