Build setup v5 using windows with sources - save/restore db
First, it's necessary to clean your computer :
Uninstall GTK, GTK-dev if you dont have version 2.2.! Uninstall all pro"rams #ith GTK include li$e the "imp or %ia &to 'uild openerp module #ith U()* Uninstall python-2.+ and all modules, at the end delete the folder python2+ ,fter uninstall openerp you should clean up too delete files-folders : vista : in .:/user/admin0user .openerprc &or .terprc*, openerp-client.lo", in .:/Users/,dministrateur/,pp%ata/1oamin"/ post"res2l in .:/user delete all user post"res2l 3openp"svc3 4p : .:/%ocuments and 5ettin"s/U561/,pplication %ata/ post"res2l .:/%ocuments and 5ettin"s/U561/ all user post"res2l 3openp"svc3, .openerprc &or .terprc*, openerp- client.lo", clean your folder .:/789%:75/;refetch &all post"res files* .lean re"istry #ith pro"rams li$e "lary utilities <:1 ccleaner http:--###."laryutilities.com- http:--###.piriform.com-ccleaner-do#nload you must clean completly re"istry &start-=e4ecute type re"edit* #ith $ey#ord &.T1)>F chec$ ?ust $ey* openerp &delete allinone, client, #e' openerpc .....*, openp", p"a &p"admin 888, p"a"ent*, post"res2l, p"s2l. clean 'efore all ne# installation of openerp. install python 2.+ : http:--###.python.or"-do#nload-releases-2.+.@- install standalone 'aAaar and last version python 2.+ 'ased and install its. http:--#i$i.'aAaar.canonical.com-7indo#s%o#nloads: create a folder to stoc$ sources and 'uild : .:/openerp do#nload manually all python li'raries : http:--'aAaar.launchpad.net-Bopenerp-op ... endencies- or automatically #ith 'aAaar : :pen a #indo#s console start-=e4ecute cmd o$ cd .:/ openerp &enter* 'Ar 'ranch lp:Bopenerp-openerp-#in-installer-trun$ &enter* &dont #orry for the #arnin"s messa"e of launchpad, stand the end, a fe# minutes* a ne# folder has 'een created : .:/openerp/#in-installer-trun$ copy all in #in-installer/ and copy it in .:/openerp install pro"rams and li'raries &#ith installation and options 'y defaultC=else scripts dont #or$* #hich are in the folder dependencies, ?ust this listin" and in this order : Finally you must ?ust install the listin" of li'raries "iven 'y the :pen61; Duic$ 8nstallation Guide ¬hin" else to do#nload* : differences #ith :pen61; Duic$ 8nstallation Guide : do not install pytA-2EEFi &'ecause in server/'in/addons/'ase/res/res0user.py, the fonction 0tA0"et call pytA.all0timeAones, and in pytA-2EEFi there is not all0timeAones* e"eni4-pyopenssl is not in the listin", 'ut is do#nloaded #ith 'aAaar in dependencies. numpy-.. 'ecomes numpy .2. &'u" #ith numpy-..* nsis-2.@E-setup.e4e "raphviA-2.2E.2.e4e &do not install pytA-2EEFi.#inG2.e4e 'ut if you #ant, you must add at the end the listin" of timeAone all0timeAone and common-timeAone* e"eni4-m4-'ase-G...#inG2-py2.+.msi e"eni4-pyopenssl-E.F.E0E.!.Fi0.#inG2-py2.+.msi ¬ in the :pen61; Duic$ 8nstallation Guide* ;y<()-E.F.@.#inG2-py2.+.e4e li'4ml2-python-2.H..#inG2-py2.+.e4e l4ml-2..2.#inG2-py2.+.e4e matplotli'-E.!F.G.#inG2-py2.+.e4e numpy-.2.-#inG2-superpac$-python2.+.e4e ;8)-..I.#inG2-py2.+.e4e ;y.hart-.G!.#inG2.e4e & created 'y 5tephane 7irtel * 1eport)a'-2.2.#inG2-py2.+.e4e vo'?ect-E.H..#inG2.e4e & created 'y 5tephane 7irtel * py"o'?ect-2.@.-.#inG2-py2.+.e4e py"t$-2.2.-2.#inG2-py2.+.e4e pycairo-.@.2-.#inG2-py2.+.e4e install 'y default &in .:/GTK #ith options 'y default* "t$-2.2.!-#inG2-2.e4e install 'y default &in .:/GTK #ith options 'y default * "t$-dev-2.2.!-#inG2-2.e4e pydot-.E.2.#inG2.e4e & created 'y 5tephane 7irtel * pyparsin"-.+.E.#inG2.e4e py#inG2-22.#inG2-py2.+.e4e py2e4e-E.I.F.#inG2-py2.+.e4e hippo-canvas-E.G.E-#inG2.Aip unAip &files 3li'hippocanvas--E.dll3 and 3hippo.pyd3* in .:/;ython2+/%))s/ msvcpH.Aip unAip dll &msvcpH.dll* in .:/789%:75/5J5T6(G2 if it is not installed psycop"2-2.E.F.#inG2-py2.+-p"F.G.@-release.e4e setuptools-E.Ic!.#inG2-py2.+.e4e (a$o-E.G..#inG2.e4e in .:/python2+/)i'/site-pac$a"es/matplotli'/fi"ure.py line I2G and I2@ comment the line #ith 3K3 you must have : Kadd0a4es.00doc00 C add0a4es.00doc00 L &3, 3.?oin&"et0pro?ection0names&**, 'L&,4es*s'* Kadd0a4es.00doc00 C dedent&add0a4es.00doc00* L artist.$#docd delete fi"ure.pyo and fi"ure.pyc &if you #ant an editor #ith line num'er do#nload notepad>> : http:--notepad- plus.sourcefor"e.net-fr-site.htm* verify environment varia'les : on des$op ri"ht clic on computer-=properties-=advanced parameters system-=environment varia'le in system varia'le clic on 3path3: you should have : LGTK0M,56;,TNL/'inO .:/;ython2+O .:/;ython2+/scriptsO .:/;ro"ram Files/9585/'inO .:/;ro"ram Files/9585O .:/;ro"ram Files/GraphviA2.2E/'inO %o this if there is an error pytA timeAone in client "t$&'u" fi4ed* search name of your local timeAone in your #indo#s : start-=e4ecute type re"edit "o to NK6J0):.,)0(,.N896-5:FT7,16-(icrosoft-7indo#s 9T-.urrentPersion-Time Qones- search your timeAone 'y e4ample for me 31omance 5tandard Time3 -= su'$ey on the ri"ht 3std3 value 3;aris, (adrid3 copy python2+/)i'/site-pac$a"es/pytA/Aoneinfo/6urope/;aris in python2+/)i'/site- pac$a"es/pytA/Aoneinfo/;aris, (adrid in python2+/)i'/site-pac$a"es/pytA/00init00.py at the end of the script in all0timeAones list add the line : ';aris, (adrid', you must do this #ith your o#n timeAone installed on your computer. Jou have no# installed all you need to 'uild the different setup #ith follo#in" scripts : #arnin" : the trun$ version is not sta'le, 'ut you can chan"e +.E 'y trun$ if you #ant. scripts #ithout update of sources : MU8)% :;6961; ,))89:96 ,9% 89%6;69%69T 561P61, .)869T GTK ,9% .)869T 76M : 8n .:/openerp/ma$e.'at ri"ht clic$ modify File-=5ave as name0of0script.'at %elete all, paste, save, read commentary of this : ::'e"innin" of script :: %isa'led-6na'le echoin" Recho off :: 5et some script #ide varia'le set ;:5TG165D)0(58Cpost"res2l-F.G-int.msi set :;6961;09585Csetup.nsi set :;6961;0%6(:0%81Cdemo :: Get current date &JJJJ((%%* set T:%,JCL%,T6:BI,@LL%,T6:BG,2LL%,T6:BE,2L :: 5ave current directory set T:;%81CL.%L :: 5et correct a su'directory for pac$a"in", :: dont trash the current directory... set 5UM%81CL if 3L3CC33 "oto usa"e if 3L23CC33 "oto usa"e set P6158:9CL2 "oto create0su'dir :usa"e echo 3ma$e.'at T8T)60:F0MU8)% P6158:93 "oto end :: ;repare su'-directory :create0su'dir echo .reatin" su'dir L5UM%81L. m$dir L5UM%81L echo. echo .opyin" ;ost"re5D) installer... copy -J L;:5TG165D)0(58L L5UM%81L echo. echo .opyin" :pen61; 9ullsoft installer script... copy -J L:;6961;09585L L5UM%81L echo. echo .opyin" Sdemo' files... m$dir L5UM%81L/demo 4copy -6 -8 -J L:;6961;0%6(:0%81L L5UM%81L/demo cd L5UM%81L :: Get sources from launchpad :'Ar0clone echo. echo %o#nloadin" :pen61; 5erver-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-server-+.E server echo :pen61; 5erver do#nloaded T echo. echo %o#nloadin" :pen61; .lient-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-client-+.E client echo :pen61; .lient do#nloaded T echo. echo %o#nloadin" :pen61; 7e' .lient-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-client-#e'-+.E client-#e' echo :pen61; 7e' .lient do#nloaded T echo. echo %o#nloadin" :pen61; ,ddons-%evelopment version... 'Ar clone lp:openo'?ect-addons-+.E server/'in/addons echo :pen61; ,ddons do#nloaded T :: delete 3:3 for each line if you #ant e4tra-addons :echo. :echo %o#nloadin" :pen61; e4tra-addons-%evelopment version... :'Ar 'ranch lp:openo'?ect-addons-e4tra-+.E e4tra-addons :4copy -6 -J e4tra-addons/U server/'in/addons/ :echo :pen61; e4tra-addons do#nloaded T :clean 'uild and dist python file compiled :rmdir -5 -D client-#e'/#inG2/'uild :rmdir -5 -D client-#e'/'uild :rmdir -5 -D server/#inG2/'uild :rmdir -5 -D server/'uild :rmdir -5 -D server/#inG2/dist :rmdir -5 -D server/dist :rmdir -5 -D client/'uild :rmdir -5 -D client/dist :del -F client/ms"fmt.pyc :del -F client/mydistutils.pyc :del -F .:/openerp/trun$/client-#e'/#inG2/util.pyc :pac$a"in" :: pac$a"e clients echo. echo 'e"in client 'uild cd client python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -P setup.nsi move -J openerp-client-setup-LP6158:9L.e4e .. ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P setup.nsi echo. echo end clients 'uild :: pac$a"e servers echo. echo 'e"in server 'uild cd .. cd server/#inG2 python setup.py --2uiet py2e4e cd .. python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -P setup.nsi move -J openerp-server-setup-LP6158:9L.e4e .. ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P setup.nsi echo. echo end servers 'uild :: pac$a"e client-#e' echo. echo 'e"in client-#e' 'uild cd .. cd client-#e' del -F #inG2/openerp-#e'U python #inG2/setup.py --2uiet 'dist0#ininst move -J #inG2/openerp-#e'U #inG2/openerp-#e'-setup-LP6158:9L.e4e ma$ensis -%P6158:9CLP6158:9L -P #inG2/setup.nsi move -J #inG2/openerp-#e'-U .. ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P #inG2/setup.nsi move -J #inG2/openerp-#e'-U openerp-#e'-setup-LP6158:9L.e4e echo. echo end client-#e' 'uild :: pac$a"e all-in-one echo. echo 'e"in allinone 'uild cd .. ma$ensis -%P6158:9CLP6158:9L -P setup.nsi echo. echo end allinone 'uild :end :: %o some clean-up, :: return to T:;%81, and unset script environment vars :cleanup cd LT:;%81L set ;:5TG165D)0(58C set :;6961;09585C set :;6961;0%6(:0%81C set T:%,JC set T:;%81C set 5UM%81C pause ::end of script 5ave the file to lauch a script : start-=e4ecute type cmd, in the console, type: .d .:/ openerp/ &enter* name0of0script.'at trun$ +.E.I-o$ &enter, some minutes* trun$ is the folder #hich #ill 'e created, in #hich sources and 'uild #ill 'e stoc$ed &you can choose #hat you #ant* +.E.I-o$ is the name for the 'uild &you can choose #hat you #ant* The 'uild setup is stoc$ed in my case, in the folder .:/ openerp/trun$ Jou can install your openerp allinone setup &uninstall precedent first naturally* 9:T8.6 : 8f you dont chan"e the folder to stoc$ 'uild and sources, &first ar"ument after ma$e.'at, here : trun$, 'aAaar dont do#nload a second time the sources. 8f you #ant to insert a data'ase in the allinone installer or server follo# this ¬ tested* : 8n the folder .:/.../#ininstaller-trun$/trun$/server in the file setup.nsi, insert this command at the end : 64ec7ait '3V;1:G1,(F8)65//;ost"re5D)@Tiny61;//'in/p"0dump3 -d post"res -. 3V;1:G1,(F8)65//:pen61; 5erver//addons/mydata'ase.'ac$up3 -U openp"' 8f6rrors E >2 (essa"eMo4 (M0:K 3%ata'ase %ump Finished3 Type the "ood ;,TN, data'ase name and id admin for post"res2l&openp" 'y default for all in one* MU8)% :;6961; 56TU; ,))89:96 : 8n .:/openerp/ma$e.'at ri"ht clic$ modify File-=5ave as ma$e-allinone.'at %elete all, paste, save, read commentary of this : ::'e"innin" of script :: %isa'led-6na'le echoin" Recho off :: 5et some script #ide varia'le set ;:5TG165D)0(58Cpost"res2l-F.G-int.msi set :;6961;09585Csetup.nsi set :;6961;0%6(:0%81Cdemo :: Get current date &JJJJ((%%* set T:%,JCL%,T6:BI,@LL%,T6:BG,2LL%,T6:BE,2L :: 5ave current directory set T:;%81CL.%L :: 5et correct a su'directory for pac$a"in", :: dont trash the current directory... set 5UM%81CL if 3L3CC33 "oto usa"e if 3L23CC33 "oto usa"e set P6158:9CL2 "oto create0su'dir :usa"e echo 3ma$e.'at T8T)60:F0MU8)% P6158:93 "oto end :: ;repare su'-directory :create0su'dir echo .reatin" su'dir L5UM%81L. m$dir L5UM%81L echo. echo .opyin" ;ost"re5D) installer... copy -J L;:5TG165D)0(58L L5UM%81L echo. echo .opyin" :pen61; 9ullsoft installer script... copy -J L:;6961;09585L L5UM%81L echo. echo .opyin" Sdemo' files... m$dir L5UM%81L/demo 4copy -6 -8 -J L:;6961;0%6(:0%81L L5UM%81L/demo cd L5UM%81L :: Get sources from launchpad :'Ar0clone echo. echo %o#nloadin" :pen61; 5erver-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-server-+.E server echo :pen61; 5erver do#nloaded T echo. echo %o#nloadin" :pen61; .lient-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-client-+.E client echo :pen61; .lient do#nloaded T echo. echo %o#nloadin" :pen61; 7e' .lient-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-client-#e'-+.E client-#e' echo :pen61; 7e' .lient do#nloaded T echo. echo %o#nloadin" :pen61; ,ddons-%evelopment version... 'Ar clone lp:openo'?ect-addons-+.E server/'in/addons/ echo :pen61; ,ddons do#nloaded T :: delete 3:3 for each line if you #ant e4tra-addons :echo. :echo %o#nloadin" :pen61; e4tra-addons-%evelopment version... :'Ar 'ranch lp:openo'?ect-addons-e4tra-+.E e4tra-addons :4copy -6 -J e4tra-addons/U server/'in/addons/ :echo :pen61; e4tra-addons do#nloaded T :clean 'uild and dist python file compiled :rmdir -5 -D client-#e'/#inG2/'uild :rmdir -5 -D client-#e'/'uild :rmdir -5 -D server/#inG2/'uild :rmdir -5 -D server/'uild :rmdir -5 -D server/#inG2/dist :rmdir -5 -D server/dist :rmdir -5 -D client/'uild :rmdir -5 -D client/dist :del -F client/ms"fmt.pyc :del -F client/mydistutils.pyc :del -F .:/openerp/trun$/client-#e'/#inG2/util.pyc :pac$a"in" :: pac$a"e client for allinone echo. echo 'e"in client 'uild cd client python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P setup.nsi echo. echo end client 'uild :: pac$a"e server for allinone echo. echo 'e"in server 'uild cd .. cd server/#inG2 python setup.py --2uiet py2e4e cd .. python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P setup.nsi echo. echo end server 'uild :: pac$a"e client-#e' for allinone echo. echo 'e"in client-#e' 'uild cd .. cd client-#e' del -F #inG2/openerp-#e'U python #inG2/setup.py --2uiet 'dist0#ininst move -J #inG2/openerp-#e'U #inG2/openerp-#e'-setup-LP6158:9L.e4e ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P #inG2/setup.nsi :move -J #inG2/openo'?ect-#e'-setup-U #inG2/openerp-#e'-setup-LP6158:9L.e4e move -J #inG2/openerp-#e'-setup-LP6158:9L.e4e . echo. echo end client-#e' 'uild :: pac$a"e all-in-one echo. echo 'e"in allinone 'uild cd .. ma$ensis -%P6158:9CLP6158:9L -P setup.nsi echo. echo end allinone 'uild :end :: %o some clean-up, :: return to T:;%81, and unset script environment vars :cleanup cd LT:;%81L set ;:5TG165D)0(58C set :;6961;09585C set :;6961;0%6(:0%81C set T:%,JC set T:;%81C set 5UM%81C pause ::end of script MU8)% 561P61>.)869T-GTK>.)869T-76M 89%6;69%,9T 8n .:/openerp/#in-installer-trun$/ ma$e.'at ri"ht clic$ modify File-=5ave as ma$e-allinone-solo.'at %elete all, paste, save, read commentary of this : ::'e"innin" of script :: %isa'led-6na'le echoin" Recho off :: 5et some script #ide varia'le set ;:5TG165D)0(58Cpost"res2l-F.G-int.msi set :;6961;09585Csetup.nsi set :;6961;0%6(:0%81Cdemo :: Get current date &JJJJ((%%* set T:%,JCL%,T6:BI,@LL%,T6:BG,2LL%,T6:BE,2L :: 5ave current directory set T:;%81CL.%L :: 5et correct a su'directory for pac$a"in", :: dont trash the current directory... set 5UM%81CL if 3L3CC33 "oto usa"e if 3L23CC33 "oto usa"e set P6158:9CL2 "oto create0su'dir :usa"e echo 3ma$e.'at T8T)60:F0MU8)% P6158:93 "oto end :: ;repare su'-directory :create0su'dir echo .reatin" su'dir L5UM%81L. m$dir L5UM%81L echo. echo .opyin" ;ost"re5D) installer... copy -J L;:5TG165D)0(58L L5UM%81L echo. echo .opyin" :pen61; 9ullsoft installer script... copy -J L:;6961;09585L L5UM%81L echo. echo .opyin" Sdemo' files... m$dir L5UM%81L/demo 4copy -6 -8 -J L:;6961;0%6(:0%81L L5UM%81L/demo cd L5UM%81L :: Get sources from launchpad :'Ar0clone echo. echo %o#nloadin" :pen61; 5erver-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-server-+.E server echo :pen61; 5erver do#nloaded T echo. echo %o#nloadin" :pen61; .lient-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-client-+.E client echo :pen61; .lient do#nloaded T echo. echo %o#nloadin" :pen61; 7e' .lient-%evelopment version... 'Ar clone lp:Bopenerp-openo'?ect-client-#e'-+.E client-#e' echo :pen61; 7e' .lient do#nloaded T echo. echo %o#nloadin" :pen61; ,ddons-%evelopment version... 'Ar clone lp:openo'?ect-addons-+.E server/'in/addons/ echo :pen61; ,ddons do#nloaded T :: delete 3:3 for each line if you #ant e4tra-addons :echo. :echo %o#nloadin" :pen61; e4tra-addons-%evelopment version... :'Ar 'ranch lp:openo'?ect-addons-e4tra-+.E e4tra-addons :4copy -6 -J e4tra-addons/U server/'in/addons/ :echo :pen61; e4tra-addons do#nloaded T :clean 'uild and dist python file compiled :rmdir -5 -D client-#e'/#inG2/'uild :rmdir -5 -D client-#e'/'uild :rmdir -5 -D server/#inG2/'uild :rmdir -5 -D server/'uild :rmdir -5 -D server/#inG2/dist :rmdir -5 -D server/dist :rmdir -5 -D client/'uild :rmdir -5 -D client/dist :del -F client/ms"fmt.pyc :del -F client/mydistutils.pyc :del -F .:/openerp/trun$/client-#e'/#inG2/util.pyc :pac$a"in" :: pac$a"e client echo. echo 'e"in client 'uild cd client python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -P setup.nsi echo. echo end client 'uild :: pac$a"e server echo. echo 'e"in server 'uild cd .. cd server/#inG2 python setup.py --2uiet py2e4e cd .. python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -P setup.nsi echo. echo end server 'uild :: pac$a"e client-#e' echo. echo 'e"in client-#e' 'uild cd .. cd client-#e' del -F #inG2/openerp-#e'U python #inG2/setup.py --2uiet 'dist0#ininst move -J #inG2/openerp-#e'-setup-U #inG2/openerp-#e'-setup-LP6158:9L.e4e ma$ensis -%P6158:9CLP6158:9L -P #inG2/setup.nsi move -J #inG2/openerp-#e'-setup-LP6158:9L.e4e . echo. echo end client-#e' 'uild cd .. copy server/openerp-server-setup-LP6158:9L.e4e . copy client/openerp-client-setup-LP6158:9L.e4e . copy client-#e'/openerp-#e'-setup-LP6158:9L.e4e . :end :: %o some clean-up, :: return to T:;%81, and unset script environment vars :cleanup cd LT:;%81L set ;:5TG165D)0(58C set :;6961;09585C set :;6961;0%6(:0%81C set T:%,JC set T:;%81C set 5UM%81C pause ::end of script script for automatic update of openerp sources : install 'Ar li'rary if not installed yet: easy0install 'Arli' &pac$a"e setuptools must 'e installed 'efore* do#nload 'Ar0set.py in command line : cd c:/openerp 'Ar 'ranch lp:openerp 4copy ./openrp/'Ar0set.py trun$ modify lines +I +F #ith &chan"e #e' 'y client-#e' and addons-e4tra 'y e4tra-addons*: 'e4tra-addons': &M,56U1) > 'Bopenerp-commiter-openo'?ect-addons-' > e4traversion > '-e4tra-addons', False*, 'client-#e'': &M,56U1) > 'Bopenerp-openo'?ect-client-#e'-' > #e'version, True*, for 4p users : lauch a first time 'Ar0set.py : in console mode : cd c:/openerp/trun$ python .:/openerp/trun$/'Ar0set.py after this step copy all files and folders of addons in c:/openerp/trun$/server/'in/addons in 'Ar0set.py modify 'addons': &M,56U1) > 'Bopenerp-openo'?ect-addons-' > version, True* 'y 'server//'in//addons': &M,56U1) > 'Bopenerp-openo'?ect-addons-' > version, True* for users vista and H only : &should not #or$ on 4p 'ecause ne# command m$lin$ #hich computes sym'olic lin$ for #indo#s doesn't #or$ on 4p, sorryT* : use symlin$ used in 'Ar0set.py to have sym'olic lin$ for addons in script #ith automatic update : do#nload corrected li' 'y myself for python 2.+ of pac$a"e ?araco and c'print.py, e4tract directly in site- pac$a"es : http:--dl.free.fr-plh5te+yN-?araco.Aip for info steps to correct pac$a"e ?araco.#indo#s : https:--'u"s.launchpad.net-'Ar->'u"-FIF!WcommentsCall in 'Ar0set.py add line in the head of file : 00import00&'?araco.#indo#s.filesystem'*.#indo#s.filesystem.patch0os0module&* $eep your 'aAar repositery &do not copy addons in server/'in/addons, and don't replace in repository 'addons' 'y 'server//'in//addons'* 'Ar0repository C X 'server': &M,56U1) > 'Bopenerp-openo'?ect-server-' > version, True*, 'client': &M,56U1) > 'Bopenerp-openo'?ect-client-' > version, True*, 'addons': &M,56U1) > 'Bopenerp-openo'?ect-addons-' > version, True*, 'e4tra-addons': &M,56U1) > 'Bopenerp-commiter-openo'?ect-addons-' > e4traversion > '-e4tra-addons', False*, 'client-#e'': &M,56U1) > 'Bopenerp-openo'?ect-client-#e'-' > #e'version, True*, symlin$ should #or$ no# in script 'Ar0set.py this method could 'e used to add e4tra addons automatically too, or others 'ranchs, 8 thin$ you should add the line in 'Ar0lin$ : 'Ar0lin$s C X 'addons//U': 'server//'in//addons', 'e4tra-addons//U': 'server//'in//addons', ......... Y 'ut #arnin", verify if there not modules #hich have the same name : to test if you need it. script to 'uild allinone #ith automatic update of sources #ith 'Ar0set.py : &to have independant pac$a"e chan"e script used #ithout update, chan"e part 3"et sources* ::'e"innin" :: %isa'led-6na'le echoin" Recho off :: 5et some script #ide varia'le set ;:5TG165D)0(58Cpost"res2l-F.G-int.msi set :;6961;09585Csetup.nsi set :;6961;0%6(:0%81Cdemo :: Get current date &JJJJ((%%* set T:%,JCL%,T6:BI,@LL%,T6:BG,2LL%,T6:BE,2L :: 5ave current directory set T:;%81CL.%L :: 5et correct a su'directory for pac$a"in", :: dont trash the current directory... set 5UM%81CL if 3L3CC33 "oto usa"e if 3L23CC33 "oto usa"e set P6158:9CL2 "oto create0su'dir :usa"e echo 3ma$e.'at T8T)60:F0MU8)% P6158:93 "oto end :: ;repare su'-directory :create0su'dir echo .reatin" su'dir L5UM%81L. m$dir L5UM%81L echo. echo .opyin" ;ost"re5D) installer... copy -J L;:5TG165D)0(58L L5UM%81L echo. echo .opyin" :pen61; 9ullsoft installer script... copy -J L:;6961;09585L L5UM%81L echo. echo .opyin" Sdemo' files... m$dir L5UM%81L/demo 4copy -6 -8 -J L:;6961;0%6(:0%81L L5UM%81L/demo cd L5UM%81L ::unchec$ed this lines if you don't #ant to update :: for other scripts ?ust chan"e section Get sources li$e this : :: Get sources from launchpad, do#nload sources if not done, update sources to last revision python c:/openerp/trun$/'Ar0set.py ::save and clean ori"inal files of server/'in/addons :rmdir -5 -D server/'in/addons-temp :m$dir server/'in/addons-temp :m$dir server/'in/addons-temp/'ase :4copy -6 -J server/'in/addons/'ase/U server/'in/addons-temp/'ase :4copy -6 -J server/'in/addons/00init00.py server/'in/addons-temp :4copy -6 -J server/'in/addons/"en0"raph.sh server/'in/addons-temp :4copy -6 -J server/'in/addons/module0"raph.py server/'in/addons-temp :rmdir -5 -D server/'in/addons :m$dir server/'in/addons :4copy -6 -J server/'in/addons-temp/U server/'in/addons/ :rmdir -5 -D server/'in/addons-temp ::update server #ith ne# addons and e4tra addons ::revision F+E e4tra addons modules automatic install in server code :4copy -6 -J addons/U server/'in/addons/ :4copy -6 --J e4tra-addons/U server/'in/addons/ :: %o some clean-up, :rmdir -5 -D client-#e'/#inG2/'uild :rmdir -5 -D client-#e'/'uild :rmdir -5 -D server/#inG2/'uild :rmdir -5 -D server/'uild :rmdir -5 -D server/#inG2/dist :rmdir -5 -D server/dist :rmdir -5 -D client/'uild :rmdir -5 -D client/dist :del -F client/ms"fmt.pyc :del -F client/mydistutils.pyc :del -F .:/openerp/trun$/client-#e'/#inG2/util.pyc :pac$a"in" :: pac$a"e client for allinone echo. echo 'e"innin" client 'uild cd client python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P setup.nsi echo. echo client 'uild :: pac$a"e server for allinone echo. echo 'e"innin" server 'uild cd .. cd server/#inG2 python setup.py --2uiet py2e4e cd .. python setup.py --2uiet py2e4e ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P setup.nsi echo. echo server 'uild :: pac$a"e client-#e' for allinone echo. echo 'e"innin" client #e' 'uild cd .. cd client-#e' del -F #inG2/openerp-#e'U python #inG2/setup.py --2uiet 'dist0#ininst move -J #inG2/openerp-#e'U #inG2/openerp-#e'-setup-LP6158:9L.e4e ma$ensis -%P6158:9CLP6158:9L -%,))89:96C -P #inG2/setup.nsi move -J #inG2/openerp-#e'-setup-LP6158:9L.e4e . echo client-#e' 'uild :: pac$a"e all-in-one echo. echo 'e"innin" allinone 'uild cd .. ma$ensis -%P6158:9CLP6158:9L -P setup.nsi echo. echo all in one 'uild echo. ::chec$ unchec$ if you #ant to $eep or delete individual pac$a"e :del -F client-#e'/openerp-#e'-U ./ :del -F client/openerp-client-U ./ :del -F server/openerp-server-U ./ :end :: %o some clean-up, :: return to T:;%81, and unset script environment vars :cleanup cd LT:;%81L set ;:5TG165D)0(58C set :;6961;09585C set :;6961;0%6(:0%81C set T:%,JC set T:;%81C set 5UM%81C pause ::end of script G possi'ilities to 'ac$up restore data'ases : * create scripts to delelete, save or restore a data'ase in openerp : create a simple file .cmd 'y create a file te4t #ith at the end the type of file .cmd you #ill have ?ust clic$ on this file to lauch your script, to modify it, ri"ht clic$ and modify. 8 remem'er you to save a second 'ac$up of your data and system 'efore to run this type of script. modify paths names ans option #ith your o#n confi"uration and conte4t. 8t is poss'ile you have a messa"e #hich says that a user is already connected, in this case, stop openerp server &after the script restart it naturally* if you have a dou't, consult post"res2l documentation online #ith $ey#ord p"0dump, p"0dump, dropd'. if a pass#ord is as$ed, put this of server.conf d'0pass#ord 8 use commands made also in openerp's code, to see it : http:--'aAaar.launchpad.net-Bopenerp-op ... ervices.py this scripts are for v+, for vI chan"e openerp-service 'y openerp-server, if you have v+ and vI on the same machine, put the t#o at the 'e"innin" and at the end of each script : Rnet stop openerp-service Rnet stop openerp-server ..... Rnet start openerp-service Rnet start openerp-server e4port add this lines in e4port.cmd : Code: Recho off Rnet stop openerp-service Rset ;G;,557:1%Cd'0pass#ord R3a'solute0path0to/post"res2l/'in/p"0dump.e4e3 -F c -: -U d'0user -h localhost -p +@G2 data'ase0name = 3a'solute0path0to0name0'ac$up3 Rset ;G;,557:1%C Rnet start openerp-service pause varia'les d'0user d'0pass#ord are this of path0to/server/openerp-server.conf import add this lines in import.cmd : Code: Recho off Rnet stop openerp-service Rset ;G;,557:1%Cd'0pass#ord R3a'solute0path0to/post"res2l/'in/created'.e4e3 -U d'0user -T templateE data'ase0name0to0create R3a'solute0path0to/post"res2l/'in/p"0restore.e4e3 -: -U d'0user -h localhost -p +@G2 -d data'ase0name0to0create 3a'solute0path0of0data'ase0'ac$up3 Rset ;G;,557:1%C Rnet start openerp-service pause varia'les d'0user d'0pass#ord are this of path0to/server/openerp-server.conf &it is possi'le you have a #arnin", don't #orry, stand the end of the command, the data'ase is restored* delete a data'ase add this lines to drop.cmd &#ith allinone, 'y default it is openp"p#d* Code: Recho off Rnet stop openerp-service Rset ;G;,557:1%Cd'0pass#ord R3a'solute0path0to/post"res2l/'in/dropd'.e4e3 -U d'0user data'ase0name0to0delete Rset ;G;,557:1%C Rnet start openerp-service pause varia'les d'0user d'0pass#ord are this of path0to/server/openerp-server.conf 2* manually #ith "raphic interface p"admin 888 &than$s to Zuan?o, to remem'er that* open p"admin 888 &start-=pro"rams-=post"res2l-=p"admin 88*, clic$ on servers-post"res2l &on the hi"h left*, pass#ord as$ed is d'0pass#ord in your installed server/openerp-server.conf &#ith allinone, 'y default it is openp"p#d* ri"ht clic$ on data'ase you #ant use option you #ant : drop, 'ac$up, restore G* automatic ?o' &'ac$up*, #ith p"a"ent &inte"rated in p"admin 888* : read documentation : http:--###.post"resonline.com-?ournal-a ... c$ups.htm for users vista and H only : &should not #or$ on 4p 'ecause ne# command m$lin$ #hich computes sym'olic lin$ for #indo#s doesn't #or$ on 4p, sorryT* : use symlin$ used in 'Ar0set.py to have sym'olic lin$ for addons in script #ith automatic update : install ?araco.#indo#s to have symlin$ #or$s in py2.+ #ith 'aAaar &should #or$ for 2.I and hi"her* : open a #indo#s console and tape : easy0install ?araco.#indo#s a second time to 'e sure there is no errors &stran"e messa"e appears and cleared the first time* files ?araco.#indo#s-.F-py2.+.e"", ?araco.util-G.-py2.+.e", ...., are installed in site-pac$a"es 'ut this pac$a"e doesn't #or$ on python 2.+ then : edit site-pac$a"es/easy-install.pth, delete line : .-?araco.#indo#s-.F-py2.+.e"" delete file ?araco.#indo#s-.F-py2.+.e"" do#nload corrected li' 'y myself for python 2.+ of pac$a"e ?araco and c'print.py, e4tract directly in site- pac$a"es : http:--dl.free.fr-"etfile.plWfileC-oyt2I2Q. for info steps to correct pac$a"e ?araco.#indo#s for python 2.+: https:--'u"s.launchpad.net-'Ar->'u"-FIF!WcommentsCall in 'Ar0set.py add line in the head of file : 00import00&'?araco.#indo#s.filesystem'*.#indo#s.filesystem.patch0os0module&* $eep your 'aAar repositery &do not copy addons in server/'in/addons, and don't replace in repository 'addons' 'y 'server//'in//addons'* 'Ar0repository C X 'server': &M,56U1) > 'Bopenerp-openo'?ect-server-' > version, True*, 'client': &M,56U1) > 'Bopenerp-openo'?ect-client-' > version, True*, 'addons': &M,56U1) > 'Bopenerp-openo'?ect-addons-' > version, True*, 'e4tra-addons': &M,56U1) > 'Bopenerp-commiter-openo'?ect-addons-' > e4traversion > '-e4tra-addons', False*, 'client-#e'': &M,56U1) > 'Bopenerp-openo'?ect-client-#e'-' > #e'version, True*, symlin$ should #or$ no# in script 'Ar0set.py this method could 'e used to add e4tra addons automatically too, or others 'ranchs, 8 thin$ you should add the line in 'Ar0lin$ : 'Ar0lin$s C X 'addons//U': 'server//'in//addons', 'e4tra-addons//U': 'server//'in//addons', ......... Y 'ut #arnin", verify if there not modules #hich have the same name : to test if you need it. create a del-openerp.'at file a little script to delete file, folder and re"istry $ey #hich are not deleted after uninstall allinone &if you had an error durin" utilisation of openerp, some other $eys can 'e undeleted*, tested #ith version +.E.@ #ith #indo#s vista &older version should 'e o$ too*. ::start script :: %isa'led-6na'le echoin" Recho off rmdir -5 -D .:/Users/openp"svc rmdir -5 -D .:/Users/,dministrateur/,pp%ata/1oamin"/post"res2l del -F .:/Users/,dministrateur/.openerprc del -F .:/Users/,dministrateur/openerp-client.lo" re" delete 3NK)(/5:FT7,16/:pen61; ,ll 8n :ne3 -f re" delete 3NK)(/5J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/openerp-service3 -f re" delete 3NK)(/5J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/openerp-#e'3 -f re" delete 3NK)(/5J5T6(/.ontrol5etE/5ervices/openerp-service3 -f re" delete 3NK)(/5J5T6(/.ontrol5etE/5ervices/openerp-#e'3 -f re" delete 3NK)(/5J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/p","ent3 -f re" delete 3NK)(/5J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/;ost"re5D)3 -f re" delete 3NK)(/5J5T6(/.ontrol5etE/5ervices/p"s2l-F.G3 -f re" delete 3NK.U/5oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; .lient3 -f re" delete 3NK.U/5oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; 5erver3 -f re" delete 3NK.U/5oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; 7e'3 -f pause ::end script run the .'at script in command line &"o to the path #here your file is stored, tape the complete name.'at, tape 3enter3* or ri"ht clic on the file 3e4ecute as3 adapt #ith your o#n confi" &4p,H*, e4perience, test. hope this #ill 'e util. add to the script &vista*: re" delete 3NK.U/5oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; .lient3 -f re" delete 3NK.U/5oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; 5erver3 -f re" delete 3NK.U/5oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; 7e'3 -f can 'e #ritten in setup.nsi #hich 'uild allinone in section 3,%% J:U1 :79 F8)65 N616 ...3: 1(%81 -r 3.:/Users/openp"svc 3 1(%81 -r 3.:/Users/,dministrateur/,pp%ata/1oamin"/post"res2l3 %6)6T6 3.:/Users/,dministrateur/.openerprc3 %6)6T6 3.:/Users/,dministrateur/openerp-client.lo"3 %elete1e"Key NK)( 35:FT7,16/:pen61; ,ll 8n :ne3 %elete1e"Key NK)( 35J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/openerp-service3 %elete1e"Key NK)( 35J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/openerp-#e'3 %elete1e"Key NK)( 35J5T6(/.ontrol5etE/5ervices/openerp-service3 %elete1e"Key NK)( 35J5T6(/.ontrol5etE/5ervices/openerp-#e'3 %elete1e"Key NK)( 35J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/p","ent3 %elete1e"Key NK)( 35J5T6(/.ontrol5etE/5ervices/6ventlo"/,pplication/;ost"re5D)3 %elete1e"Key NK)( 35J5T6(/.ontrol5etE/5ervices/p"s2l-F.G3 %elete1e"Key NK.U 35oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; .lient3 %elete1e"Key NK.U 35oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; 5erver3 %elete1e"Key NK.U 35oft#are/(icrosoft/7indo#s/.urrentPersion/64plorer/(enu:rder/5tart (enu/;ro"rams/:pen61; 7e'3 for info a ne# script python is availa'le in the #in-installer-trun$ 'ranch, to 'uild standalone independant pac$a"es, or, standalone independant pac$a"es and allinone &possi'ility to do#nload sources archive.tar."A, from openerp #e'site C= see option --url default* , here : http:--'aAaar.launchpad.net-Bopenerp-op ... evision-@G than$s to author 5tephane 7irtel &openerp*. command to tape to 'uild independant > allinone #ith your sources on your dis$ &'uild independant 'y default, for allinone too, add option --allinone*: python ma$e.py --$eep --#inG2 --directory a'solute0path0to0your0sources --url http:--localhost:FEEE --allinone &rename folders client, client-#e' and server 'y openerp-client, openerp-server, openerp-#e', and have in the same path files post"res2l-F.G.msi, setup.nsi and folder demo* command to tape to 'uild independant > allinone #ithout sources on your dis$ python ma$e.py --$eep --#inG2 --directory a'solute0path0to0#rite0your0sources --allinone don't for"et to see the 'help' for each option. you should have a http server #hich run, if you have a http pro'lem error @E@ or other error http, open a second console and tape this command to run a http server: python -m 5impleNTT;5erver &info 5tephane 7irtel* for this #hich use also 'Ar0set.py to ?ust update sources, rename in file 'Ar0set.py in 'aAaar0repository &#hich define all 'ranch*, first #ord 'client' 'y 'openrp-client', 'server' 'y 'openerp-server', and 'client- #e'' 'y ' openerp-#e'' 8f li$e me you have vista &perhaps for seven too*, you have no icon for shortcut on des$top, or in list of pro"rams &even for stop-start server*. 8t's due to the fact vista use icon #ith pn" format, and 4p ico format. 8 tried to use a pn" to 'uild for icon 'ut py2e4e doesn't support it. Then it e4ists an other solution, add in files setup.nsi the path to display icons for all shortcut &'ut al#ays no icon for e4ecuta'les* in server/pi4maps open openerp-icon.pn" #ith 'y e4ample pro"ram 4nvie# &or other pro"ram #hich can "enerate a .ico format*, and save in the same path #ith name openerp-service.ico &choose in the list ico format*. copy this ne# file and paste it in client-#e'/#inG2/pi4maps. Jou can modify this for v+ and vI. for client/setup.nsi : add te4t in "reen color to this lines .reate5hort.ut 3V5(;1:G1,(5/V5T,1T(69U0F:)%61/:pen61; .lient.ln$3 3V895T%81/openerp-client.e4e3 33 3V895T%81/pi4maps/openerp-icon.ico3 .reate5hort.ut 3V%65KT:;/:pen61; .lient.ln$3 3V895T%81/openerp-client.e4e3 33 3V895T%81/pi4maps/openerp-icon.ico3 for server/setup.nsi: in : 5ection 3:pen61; 5erver3 5ec:pen61;5erver ns64ec::64ec 3net stop openerp-service3 sleep 2 5et:ut;ath 3V895T%813 add lines &'ecause folder pi4maps and icons are not imported #ith py2e4e* : File -r 3pi4maps/openerp-icon.ico3 File -r 3pi4maps/openerp-service.ico3 add "reen te4t to this lines .reate5hort.ut 3V5(;1:G1,(5/V5T,1T(69U0F:)%61/:pen61; 5erver.ln$3 3V895T%81/openerp-server.e4e3 33 3V895T%81/openerp-icon.ico3 .reate5hort.ut 3V5(;1:G1,(5/V5T,1T(69U0F:)%61/5tart service.ln$3 3V895T%81/service/start.'at3 33 3V895T%81/openerp-service.ico3 .reate5hort.ut 3V5(;1:G1,(5/V5T,1T(69U0F:)%61/5top service.ln$3 3V895T%81/service/stop.'at3 33 3V895T%81/openerp-service.ico3 for client-#e'/#inG2/setup.nsi : in : 5ection 3:pen61; 7e'3 5ec:pen61;7e' ns64ec::64ec 3net stop openerp-#e'3 sleep 2 add lines : 5et:ut;ath 3V895T%813 File -r 3pi4maps/openerp-service.ico3 ad te4t in "reen color .reate5hort.ut 3V5(;1:G1,(5/V5T,1T(69U0F:)%61/5tart :pen61; 7e'.ln$3 3V895T%81/'in/start.'at3 33 3V895T%81/openerp-service.ico3 .reate5hort.ut 3V5(;1:G1,(5/V5T,1T(69U0F:)%61/5top :pen61; 7e'.ln$3 3V895T%81/'in/stop.'at3 33 3V895T%81/openerp-service.ico3