Error adding 3rd replace operation to Text Update - Advanced Installer Community

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!

gommo
Posts: 4
Joined: Wed Nov 11, 2009 11:26 pm

Error adding 3rd replace operation to Text Update

Hi,

I'm using the latest demo version and testing out the Text Update functionality.
It works fine with 2 replace operations on the one file, but as soon as I add a third (and fourth etc..) I get

Reusing archives from cache... done.
Creating MSI database... error.
Exception - Error calling Msi API: 1627 Method: MsiDatabaseImport 1: 2216 2: C:\temp\test-setup.msi 3: AI_TxtUpdate.idt 4: 7 Table: AI_TxtUpdate.

Build finished because an error was encountered.

Any ideas? Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error adding 3rd replace operation to Text Update

Hi,

Thank you for your interest in Advanced Installer.

Unfortunately we cannot replicate this behavior on our test machines. Can you please send us the .AIP (project) which uses some dummy text text files to support at advancedinstaller dot com so we can replicate and investigate this behavior?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error adding 3rd replace operation to Text Update

Hi,

The problem was that a corrupted encoding was inserted into your project file. I've tried to delete the two elements from your file and them back,
with exactly the same values but could not reproduce the problem.

Could please give us more details that would allow us to reproduce this problem? Also, did you edited the project file manually into an XML editor, or maybe one of your colleagues?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gommo
Posts: 4
Joined: Wed Nov 11, 2009 11:26 pm

Re: Error adding 3rd replace operation to Text Update

I can't think of anything that would have done that. It isn't even committed to VC yet.

How can I detect (and fix) these corrupt encodings? Are you meaning that the encoding value on the root XML element was set wrong or invalid characters were inserted? Can you send me back the fixed aip file so I can diff it?

Thanks
gommo
Posts: 4
Joined: Wed Nov 11, 2009 11:26 pm

Re: Error adding 3rd replace operation to Text Update

Are you referring to the FileEncoding attribute? If so I can see where it has some large numbers in one of the attributes, 0 in 2 others, and -1 in another. When I set this manually to all 0's the project compiled

I haven't done anything but use AdvancedInstaller on this file (except for now) so my gut feeling is that is a bug
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error adding 3rd replace operation to Text Update

Hi,
Are you referring to the FileEncoding attribute?
Yes, this is the attribute I was referring. I have sent the fixed .aip file through e-mail. The values 0 and -1 were correct, however, there was a random number as value for one entry which was breaking the build.

Since you said the file was edited only from Advanced Installer it is clearly a bug, but we cannot reproduce it. Can you try to replicate this on a new project?
Also, on what OS are you running Advanced Installer?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”