Karl_Seeger
Posts: 3
Joined: Thu Nov 03, 2005 4:52 pm

Upgrade from 3.4 to 3.5 broke my set-up files!

I've upgraded Advanced Installer from 3.3 to 3.4 with no problems before so when I upgraded from 3.4 to 3.5 I was shocked to find all of my set-up files now fail!

They all fail with the same type of error message....

Exception - A row with this key [id somefilepathandname] was already registered in the table.

This is NOT good, how do I "save" my set-ups.
fd1
Posts: 21
Joined: Fri Sep 02, 2005 8:12 pm

Same here, I got the same error message trying to open a saved project after upgrading to 3.5
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

Thank you for signaling this problem to us.

Beginning with the 3.5 version there are some changes in the way Advanced Installer handles the files added to the project. In some cases this can cause the errors you are getting.

In oder to fix the problem, please send us the AIP files of the projects to support at advancedinstaller dot com. We will mail you back the fixed version of the AIPs.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
lasencio
Posts: 6
Joined: Wed May 11, 2005 10:01 pm

Exception - Current context does not contain an instance of

I'm getting the same error here. Nothing in my package has changed except I upgraded AI from 3.4 to 3.5. If more than one person is having this problem then something has changed in the programming logic. I suggest that you guys have your programmers take a look at this issue since i can't not build packages anymore and I rely heavily on AI. From previous postings I cannot send the AI project since I have more than three projects erroring out. I have searched the site for the 3.4 version and I cannot find a place to download previous versions. If I need to go back a version I will. PLEASE ADVISE ASAP.
lasencio
Posts: 6
Joined: Wed May 11, 2005 10:01 pm

Exception - Current context does not contain an instance of

I have found the answer to the upgrade problem from 3.4 to 3.5. If you get this error "Exception - Current context does not contain an instance of this component [id ReadOnly]" what you have to do is open the *.aip file either with notepad or an xml editor and find the closing tags that are missing. So far in two different projects one was missing </DOCUMENT> tag and the other </COMPONENT> tag. By adding them I was able to open my packages and compile them once again.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
From previous postings I cannot send the AI project since I have more than three projects erroring out.
You can send us all of them. However, if this is not possible, it is not difficult to repair them yourself:
1. Note the file, folder or shortcut name that causes the error when opening the AIP project in Advanced Installer.
2. Open the AIP file in a text editor.
3. Perform a case insensitive search after the name that caused the error (for example "defile~1.txt"). There will be at least 2 occurrences.
4. Replace the second and subsequent occurrences with something like "defil~19.txt" or something similar.
5. Save the AIP file and try opening it again in Advanced Installer.
6. If another error is received, repeat the steps 1->5 described above.


Regarding your second post, if you get the error "Exception - Current context does not contain an instance of this component [id ReadOnly]" then your AIP file might be corrupted.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
sylvia.n-gen
Posts: 1
Joined: Wed Jan 18, 2006 3:17 am

Hi,
Ionut wrote: 1. Note the file, folder or shortcut name that causes the error when opening the AIP project in Advanced Installer.
2. Open the AIP file in a text editor.
3. Perform a case insensitive search after the name that caused the error (for example "defile~1.txt"). There will be at least 2 occurrences.
4. Replace the second and subsequent occurrences with something like "defil~19.txt" or something similar.
5. Save the AIP file and try opening it again in Advanced Installer.
6. If another error is received, repeat the steps 1->5 described above.
Can you be more precise? I sent the AIP file, but it's very urgent, I tried to do it myself, and I got the same error (same file).

We should have the possibility of downloading a previous version!

Sylvia
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

The above instructions discuss only a particular case in which this error appears. It would be rather difficult to present repair instructions for all cases that can arise.
We should have the possibility of downloading a previous version!


This would not entirely solve the problem. This bug has been fixed in version 3.5 and the problem is with the AIP file, not with the newer versions of Advanced Installer.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Maniac
Posts: 12
Joined: Mon Mar 21, 2005 2:28 pm

Had the same Problem, and Ionut's resolution solved it for me.
Anyway i think, there should be a import function for older version aip files..
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

Thank you for your suggestion.

Because just a very small percent of the AIP files were affected by this change we figured that implementing an import function would be more time consuming than fixing the files manually.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”