On Saturday, November 19, 2016 at 12:30:03 PM UTC+1, Cédric Krier wrote: > > On 2016-11-19 02:30, Alexander Davis wrote: > > Hello guys, > > > > I am looking at ways of simplifying the tryton client by producing an > exe > > file with our server and database settings pre-configured in a profile > > rather than making the end-user having to manage profiles. Sort of like > a > > "Kiosk Mode" if you will, where the end-user would just have to worry > about > > entering their username and password. I have the following questions: > > > > * Where does the Tryton client store the profile settings once it is > set. I > > noticed that once i setup a profile on my laptop it sticks no matter > what > > version of Tryton i use > > It is in profiles.cfg, see > http://doc.tryton.org/4.0/tryton/doc/usage.html#configuration-file > > Rem: On Windows, '~' is %APPDATA. > > > * Is it possible to package a config file within the onefile exe that > would > > already include the pre-configured profile like the demo_server is right > > now? I made changes to the config.py file pointing to my tryton server > but > > it didnt seem to make a difference. > > What about having a installer script which execute the tryton-setup.exe > and after that create the profile file and also tryton.conf. > > > I am not sure if this would be useful for other users but it would be > very > > useful for a project i am working on right now where the end-users would > > not be very tech-savvy > > You also have the option of sao, the web client. > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] <javascript:> > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ >
Thanks for the tips. I have taken the files from %APPDATA%, edited them, and added them in a folder to reside with the source files. I then include the folder within the setup.nsi and setup-single.nsi and set it to copy the files to their rightful location. So everytime the single file is run or the setup is completed, it copies my config files into the %APPDATA% and presto, all settings are set automatically. -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/9049ba19-a4b1-4421-a59c-5c1464e754f4%40googlegroups.com.
