list index out of bounds after IA 16 upgrade

Got a problem you cannot solve? Try here.
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

list index out of bounds after IA 16 upgrade

Postby alibaba » Wed Jul 03, 2013 7:26 am

I am not happy with the new version,

again a strange error where I have no idea what is the cause. I get "List index out of bounds (174)" error when I start an IA 16 generated setup. I have not changed anything in script, with IA 15 the setup was working fine.

I got this error also for line 12 at the beginng where the native engine is activated, so I copy and pasted this line again and commented it out. This was working but now I get this error for line 17 and here copy and past does not help...very strange

What to do now? Downgrad to IA 15?
Attachments
list_index.PNG
list_index.PNG (134.52 KiB) Viewed 13059 times

alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: list index out of bounds after IA 16 upgrade

Postby alibaba » Wed Jul 03, 2013 7:37 am

Again I had to re-localize to solv this problem.

So guys, before implementing new features, just fix this buggy translation process, it is just a nightmare for me....

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: list index out of bounds after IA 16 upgrade

Postby FrancescoT » Wed Jul 03, 2013 12:09 pm

Dear Alibaba,

... if I haven't missed anything ... probably, it has been caused due the ANSI vs UNICODE resource strings, originally used by your project.

I am supposing this due the re-localization you used to solve the problem.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: list index out of bounds after IA 16 upgrade

Postby alibaba » Thu Jul 04, 2013 6:49 am

Dear Francesco,

there are no UNICODE strings in line 17 so I don't understand why this is happening. Anyway this error is solved, but I still have other issues that block my work, see my other threads.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: list index out of bounds after IA 16 upgrade

Postby FrancescoT » Thu Jul 04, 2013 1:02 pm

... I have Just replied to your other threads.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

MartinIW
Posts: 70
Joined: Thu Feb 10, 2011 8:35 am
Location: Germany

Re: list index out of bounds after IA 16 upgrade

Postby MartinIW » Mon Jul 22, 2013 9:00 am

Hi there,
I have a similar problem in my project. When I export my translation files and the translator appears it seams for me there is Encoding-Error. We are from Germany and use many characters like öüäß in many dialogs and messageboxes all over the project. How can i prevent the translator to destroy my translations?
Change my Windows-Setting or something? Not using these Charakters is not a way for us to make Setup.
It goes that far that i could build my setup but when starting it i got a Index-out-Of-Range-Exception from the installer...
Hope you can help me in this and i am at the right place to post it?

Thanks,
Martin

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: list index out of bounds after IA 16 upgrade

Postby FrancescoT » Mon Jul 22, 2013 10:06 am

Dear Martin,

did you used the Unicode Upgrade tool?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

MartinIW
Posts: 70
Joined: Thu Feb 10, 2011 8:35 am
Location: Germany

Re: list index out of bounds after IA 16 upgrade

Postby MartinIW » Tue Jul 23, 2013 12:29 am

I didnt use any Upgrade Tool. Our latest setup was build in 2009 R2 so i decided to start all over with a new one because so many changes in the prerequisite-packages. I made a new setup and changed all messageboxes in all scripts manually. But now i am at the point to open each dialog and change the text by hand...
and thats not realy smart to do. So I exported my translations with the localize-button inside Stuidio Admin and startet the translator after that. But there i can see that all german chars are shown criptical and i decided not to import again... Where can i find the UNICODO-Upgrade-Tool and how may this help me?

Thanks,
Martin

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: list index out of bounds after IA 16 upgrade

Postby FrancescoT » Tue Jul 23, 2013 10:18 am

Dear Martin,

unicode upgrade tool.png
unicode upgrade tool.png (285.41 KiB) Viewed 12972 times


Upgrading setups created in InstallAware 15 to InstallAware 16 is automatic, unless your setup contains localizations, or it contains hard-coded strings in your MSIcode script that are in a different language from your system locale for non-Unicode programs. If you qualify for the automatic upgrade process, simply open your project in the new IDE as before and continue working normally. If you must manually upgrade, run the new Unicode Upgrade Tool that is included with InstallAware 16. Then, you may open your project in the new IDE as before, and continue working normally.


Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

MartinIW
Posts: 70
Joined: Thu Feb 10, 2011 8:35 am
Location: Germany

Re: list index out of bounds after IA 16 upgrade

Postby MartinIW » Wed Jul 24, 2013 12:40 am

Dear Francesco,
thanks for the fast answer. I did like you said and tried the Unicode Upgrade Tool. After that i startet my project with installAware 16 and the first thing i saw was all my characters in all messageboxes and dialog look like this:

error.JPG
error.JPG (23.39 KiB) Viewed 12967 times


After that i tried to export the translations with the Localize-Button. But there it doesnt look good at all...

translator.JPG
translator.JPG (49.15 KiB) Viewed 12967 times


If I try to replace the wrong characters by hand, import the translations for "German" into my setup. Build my setup and start it - I will get the following error:

error2.JPG
error2.JPG (30.02 KiB) Viewed 12966 times


What can I do?

Thanks for any help,
Martin

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: list index out of bounds after IA 16 upgrade

Postby FrancescoT » Wed Jul 24, 2013 12:09 pm

Dear Martin,

I have just tried and by my test;

- if you re-localize your resource strings with preserving existing translations and then importing them back to the project, the localized strings are handled correctly (no garbage characters found). Of course if you prefer, you can completely replace any existing translation.

I have used a localized German language project and before to do the above operations, I used the Unicode Upgrade tool with specifying German as project language.

I found the same "list index out of bounds" error if I don't re-localize the resource strings, but after project re-localization the generated build works fine at runtime.

However, I believe that you should correct manually the German Text you used with your script directly ( ...as with the MessageBox code you posted). Unfortunately the approach you originally used, it is not the most correct. You should have used localized string variables within the script.

This obviously is valid only with past IA ANSI versions ... currently, due UNICODE support with IA 16, this not required anymore even if it still not recommended.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

MartinIW
Posts: 70
Joined: Thu Feb 10, 2011 8:35 am
Location: Germany

Re: list index out of bounds after IA 16 upgrade

Postby MartinIW » Fri Jul 26, 2013 6:25 am

Hi Francesco,
thanks for the answer again. I see the problem now. I dont have to use such characters inside the installer MSI directly.
But what i am wondering is that the Translator Tool doesnt work with them too. I now had changed my setup this far that i use variables at the beginning of my msi-script to put all the messageboxes together. that way i have full control at only one place. I also had to replace the "Shared Strings" in the installaware programfolder with the original ones from new installed IA 16 and then it works.
For me its not neccessary make a multilingual setup, we only deliver our setup in german.

Thanks for the help anyway :)
Martin

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: list index out of bounds after IA 16 upgrade

Postby FrancescoT » Fri Jul 26, 2013 9:45 am

Happy you solved!
:D :D :D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 78 guests