win_installer

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Changed the language pack to not use the sql procedures at all, because they do not seem to work in NSIS or ant, instead, the rows are updated from within the nsis code, and there is a list called languages.txt that contains all the current languages in the form:

[language_iso_code]-[country_iso_code]-[description]-[direction]

The language.txt file and the language-pack.nsi must be encoded with utf-8

Changed the language pack to not use the sql procedures at all, because they do not seem to work in NSIS or ant, instead, the rows are updated from within the nsis code, and there is a list called languages.txt that contains all the current languages in the form:

[language_iso_code]-[country_iso_code]-[description]-[direction]

The language.txt file and the language-pack.nsi must be encoded with utf-8

LI-38: Changed the function .inInstFail so it only dletes the files created by the failed installation (not retained files) and it removes the db which was made by teh failed install

Unable to use nsExec::ExecToStack when there is redirection involved. ie: nsExec::ExecToStack mysql < insertlocale.sql

Have to use ant instead, which is fairly annoying

Unable to use nsExec::ExecToStack when there is redirection involved. ie: nsExec::ExecToStack mysql < insertlocale.sql

Have to use ant instead, which is fairly annoying

    • -0
    • +18
    ./src/LanguagePack.xml
Now this actually works, inserts the language valuse if they dont already exist, however it will fail if the number of languages surpass 127, because the locale_id is a tinint(4) and will only go up to 127

undo of changes made by an accidental commit

Calling sql scripts to update the db with the new languages

Procedure to update locales table in database, calls insertlocalses repeatedly until all languages have been covered

To add a new language, you nee only to add a line:

insertLocal(language_iso_code, country_iso_code, description, direction)

sql code (for language pack) for a procedure to insert locales into the lams_supported_local if they dont already exist.

This procedure is called by updateLocales.sql

sql code (for language pack) for a procedure to insert locales into the lams_supported_local if they dont already exist.

This procedure is called by updateLocales.sql

    • -0
    • +18
    ./src/insertlocale.sql
Procedure to update locales table in database, calls insertlocalses repeatedly until all languages have been covered

To add a new language, you nee only to add a line:

insertLocal(language_iso_code, country_iso_code, description, direction)

    • -0
    • +32
    ./src/updatelocales.sql
Updater now unpacks all the llid language files for comlex activities into their respective folders

All that is needed now is SQL procedures to add rows to the lams_supported_locale where the matching language doesnt exist

Then we're done for teh language pack

Now have names for all the llid file folders

Now have names for all the llid file folders

Can now get multiple rows from the database using an array utility i found on the net. All that is needed now is to make the correct llid directories and put the required language files in

Oh, and update the database with the new language files

Finally found a way around the sql database query problem, now i can get single values from the db for the llid, still havent thought of a way to get multiple entries

Adding in a java program, to try and adress the database access problem through NSIS

    • -0
    • +55
    ./src/SQLQueryGenerator.java
Adding in a java program, to try and adress the database access problem through NSIS

    • binary
    ./src/SQLQueryGenerator.class
Working on finding a way to get the locations for the llid folders from the database in NSIS, will probably need to use a array header for NISIS

Updator now extracts all the xx.xml files required for flahs to $INSTDIR\jboss-4.0.2\server\default\deploy\lams.ear\lams-central.war\flashxml

Great Success! This is nice!

All language files for projects are now unpacking correctly, ie lams_blah/conf/language

Added date string utility so the date can be entered as a string, but can still be compared as a version in the registry in the form yyyy-dd-mm

Uses a date instead of a vertsion to check for newer language pack versions

Added backup functionality, existing language files are zipped to C:\lams\jboss-4.0.2\server\default\deploy\lams.ear\lams-dictionary.jar\backup\

Updator checks for existing newer versions than the current, then applies this version to the registry, it also checks if there is a lams version 2.x installed

Skeleton for the language pack updator

    • -0
    • +218
    ./src/language-pack.nsi
add caveat about wildfire

Added in all the neccessary licences from the list of libraries in "lams_build/assemble/lams.ear/"

For task LI-30

add readme.txt; readme.txt and license.txt now copied to instdir