I am attempting to create a patch file that will install new files, update existing files and the newer .MSI contains the same merge modules. When applying the patch, it returns an internal 1334 error.
In current version, the sequencing issue is fixed, but the Media table is not properly updated in the patch file.
Example: This is how the File Table looks in the Previous .MSI
This is how the File Tables looks in the upgraded .msi
Now the Media Table in the Upgrade .MSI looks like the following:
Now note how the File and Media Table looks in the Patch.
The New files are given new Sequence numbers, so that it is sequenced after the Merge module files. But notice the Media Table has not changed. This means that the two new files are expected to be in the #Cabs.m2 when running the patch file. Since the Media table was not properly updated, the two new files are still in the Cabs.w1.cab. This causes the internal error message 1334 for miscellaneous files.
You will not see this behavior with all patches. This issue appears to happen only when you set the REINSTALLMODE to AMUS in the new .msi.
Set the REINSTALLMODE to OMUS in the new .msi.
- If you must set the REINSTALLMODE to AMUS in the new .msi:
- Perform an administrave installation of the new .msi.
- Open both the old and new .msi's simultaneously. Open the new .msi in Orca and the old one in Windows Installer Editor.
- Click the Setup Editor and click Tables tab. Go to the Media table in both .msi files.
- Change the LastSequence column in the new .msi to match the values in the original .msi.
- Go to the File Table in both .msi files and sort by sequence number in the Sequence column.
- Change the sequence number for all merge module files in the new .msi to match the value in the old one in the Sequence column. Be cautious when changing the sequence number because there may be gaps in numbers at times. For example, it may skip from 208 to 211.
- Change the sequence numbers for the new files so they are the next two numbers after the merge module files.
- After saving the .msi, open the admin install in Windows Installer Editor and run the patch wizard to create patch file.
- Call a Wisescript to install the new files.
- Create an Upgrade rather than a patch.
Windows XP SP2
Wise Installation Studio/Express 7.x
Wise Package Studio 7.x
Imported Document Id