Hop
Posts: 13
Joined: Mon Feb 15, 2010 2:22 pm

Command-line NewMspUpgraded creates incomplete

I'm working with a patch .AIP created with Advanced Installer 8.2.

If I do not add any images through the GUI, but instead use the /NewMspUpgraded command-line option, the <ROW Family> element is inserted without appropriate MediaDiskId and FileSequenceStart attributes and building the .msp fails with an MsiMsp.exe internal error.

My current workaround has been adding the Upgrade through the GUI, but then using the command-line DelMspUpgraded option prior to AddMspUpgraded. However, I fear that if the Update .MSI changes much, the build will no longer work.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Command-line NewMspUpgraded creates incomplete

Hello,

The Disk ID and File Sequence Start values are used in the patched MSI's Media table. They are set with default values by Advanced Installer that can be customized. This means they will be updated in the patch project when adding the target, not the upgraded.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hop
Posts: 13
Joined: Mon Feb 15, 2010 2:22 pm

Re: Command-line NewMspUpgraded creates incomplete

I am doing both /NewMspUpgraded AND /NewMspTarget before attempting a /Build for which the result is an MsiMsp internal error and a project where the attributes are missing.
However, I am successful if I add Upgrade and Target through the GUI and then preceed the above steps with /DelMspUpgraded.
It is my assumption that the attributes missing are a problem, but perhaps they are just another symptom of the actual problem.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Command-line NewMspUpgraded creates incomplete

Hello,

This behavior is caused by a bug in Advanced Installer patch CLI. Thank you for bringing it to our attention.
I discussed the issue with the development team and a fix will be included in the 8.5 release.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”