Jump to content


Photo

Which files should be distributed? - Help


  • Please log in to reply
2 replies to this topic

#1 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 300 posts
  • LocationCuiabá-Brasil

Posted 11 July 2016 - 10:07 PM

Hello friends
What are the folders that are to be distributed with the application?
Ja copied ext-4.2.5.1763, touch-2.4.2-complete, uni-0.99.95.1309, unim-0.99.95.1309, unipackages
 
And my application still does not boot.
The documentation does not say anything about it.
These path is a big mess.
 
ExtRoot =.\[ext]\
UniRoot =.\[uni]\
UniMobileroot =.\[unim]\
uniguiversion = 0.99.95.1309
 
The mentioned folders are where this ISAPI DLL.
I do not know what to do.

  • 0

#2 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 12 July 2016 - 10:18 AM

Hi

 

The documentation describes this topic in details.

 

Normally it is as easy as installing uniGUI Runtime Packages and you are done.


  • 0

#3 Eduardo Junqueira

Eduardo Junqueira

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 90 posts
  • LocationSão Joaquim da Barra - Brasil

Posted 26 July 2016 - 06:24 AM

unit ServerModule;
 
interface
 
uses
  Classes, SysUtils, uniGUIServer, uniGUIMainModule, uniGUIApplication, uIdCustomHTTPServer,
  uniGUITypes;
 
type
  TUniServerModule = class(TUniGUIServerModule)
    procedure UniGUIServerModuleBeforeInit(Sender: TObject);
  private
    { Private declarations }
  protected
    procedure FirstInit; override;
  public
    FFmtFormatoBR      : TFormatSettings;
 
  end;
 
function UniServerModule: TUniServerModule;
 
implementation
 
{%CLASSGROUP 'Vcl.Controls.TControl'}
 
{$R *.dfm}
 
uses
  UniGUIVars;
 
function UniServerModule: TUniServerModule;
begin
  Result:=TUniServerModule(UniGUIServerInstance);
end;
 
procedure TUniServerModule.FirstInit;
begin
  InitServerModule(Self);
end;
 
procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
begin
  //Configurando Caminhos Pastas
  self.CacheFolder   := UniServerModule.StartPath+'ArqCache\';
  self.ExtRoot       := UniServerModule.StartPath+'ArqApp\ext-4.2.5.1763\';
  self.FilesFolder   := UniServerModule.StartPath+'ArqApp\';
  self.TempFolder    := UniServerModule.StartPath+'ArqTemp\';
  self.UniMobileRoot := UniServerModule.StartPath+'ArqApp\unim-0.99.95.1304\';
  self.UniRoot       := UniServerModule.StartPath+'ArqApp\uni-0.99.95.1304\';
  self.CustomFiles.Clear;
  self.CustomFiles.add('\ArqApp\unipackages\themes\resources\ext-theme-uni_win10\ext-theme-uni_win10-all.css');
 
  //Configurando Configurações Regionais
  FFmtFormatoBR                   := TFormatSettings.Create;
  FFmtFormatoBR.ThousandSeparator := '.';
  FFmtFormatoBR.DecimalSeparator  := ',';
  FFmtFormatoBR.CurrencyDecimals  := 2;
  FFmtFormatoBR.DateSeparator     := '/';
  FFmtFormatoBR.ShortDateFormat   := 'dd/mm/yyyy';
  FFmtFormatoBR.LongDateFormat    := 'dd/mm/yyyy';
  FFmtFormatoBR.TimeSeparator     := ':';
  FFmtFormatoBR.TimeAMString      := 'AM';
  FFmtFormatoBR.TimePMString      := 'PM';
  FFmtFormatoBR.ShortTimeFormat   := 'hh:mm';
  FFmtFormatoBR.LongTimeFormat    := 'hh:mm:ss';
  FFmtFormatoBR.CurrencyString    := 'R$ ';
  System.SysUtils.FormatSettings  := FFmtFormatoBR;
end;
 
initialization
  RegisterServerModuleClass(TUniServerModule);
end.

  • 1

Development Environment:
Windows 2012 R2 - Portuguese Locale

Delphi Seatle 10 - 32 bit
Browser Chrome version: 56.0.2924.87
Unigui version: 1.0.0.1376_RC




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users