I have a strange problem that I am wondering if anyone can help me with.
Have been building an Unattended setup for the past few months and successfully got both XP and Windows 7 working (Win7 using previous threads on utilising WinPE from the mailing list)
Not so long ago I had a corruptio on the hard drive where the Unattended files were stored so have had to start from scratch and rebuild everything. Now I am having an issue with WIndows 7 when it calls the get_windows_language function in the todo.pl. The error reports too many language options and halts the installation.
Having looked into it a little further I know the lang_id table in todo.pl is aimed at Windows 2000/XP/2003 as there are new language codes in Windoes 7 but I didn't have this issue before I had to rebuild my setup and and don't recall making any modifications either.
If anyone can shed some light on the issue it would be greatly appreciated.
Many thanks for your reply.
I have uncommented the lines as suggested but to no success, errors are returned further down the function ("Can't call method "OSLanguage" on an undefined value at Z:\bin\todo.pl line 286")
With version 4.9 of Unattended, the get_windows_version function was updated to include Windows 7 as an OS option, could this not be utilised to get around the problem? Unfortunately I've never written in Perl but if the $os = 'win7' is true then is there not an If condition that can be put in for the language function to either hard code the $ENV('Winlang') variable or use another table to lookup the language code?
Apologies again for not being able to offer any code to support this idea but any suggestions would be welcomed.
From: Gerhard Hofmann <gerhard.hofmann@pl...> - 2011-10-05 11:24:57
> Not so long ago I had a corruptio on the hard drive where the Unattended files were stored so have had to start from scratch and rebuild everything. Now I am having an issue with WIndows 7 when it calls the get_windows_language function in the todo.pl. The error reports too many language options and halts the installation.
I had the same error on one (and only one) Win-7 machine.
Unfortunately, I have no access to that machine any more to prove my
ideas about the problem, but maybe you could...
Maybe you could try to uncomment these lines...
scalar @oses == 1
or die "Internal error (too many OS objects in get_windows_language)";
... in todo.pl and see if that makes a difference on your machine.
(Don't know if that will break other things...)
I must point out that my only Unattended usage on Win-7 machines is
appsonly.bat (application only installs on machines with pre-installed