Page 4 sur 4

Re: Déployer Wapt par GPO

Posté : 23 mars 2018 - 12:31
par sfonteneau
En attendant vous pouvez modifier :

Code : Tout sélectionner

function RelocateCertDirWaptBase(Param: String):String;
var
  certdir: String;
begin
  certdir := ExpandConstant('{param:verify_cert|{#set_verify_cert}}');
  if (pos('c:\tranquilit\wapt',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\tranquilit\wapt')+1,255)
  else if (pos('c:\program files (x86)\wapt',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\program files (x86)\wapt')+1,255)
  else if (pos('c:\program files\wapt\',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\program files\wapt\')+1,255)
  else if (pos('c:\wapt\',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\wapt\')+1,255)
  else
    result := certdir;
end;
par :

Code : Tout sélectionner

function RelocateCertDirWaptBase(Param: String):String;
var
  certdir: String;
begin
  certdir := ExpandConstant('{param:verify_cert|{#set_verify_cert}}');
  if (pos('c:\tranquilit\wapt',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\tranquilit\wapt')+1,255)
  else if (pos('c:\program files (x86)\wapt',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\program files (x86)\wapt')+1,255)
  else if (pos('c:\program files\wapt\',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\program files\wapt\')+1,255)
  else if (pos('c:\wapt\',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('c:\wapt\')+1,255)
  else if (pos('d:\wapt\',lowercase(certdir))=1) then
    result := ExpandConstant('{app}')+'\'+copy(certdir,length('d:\wapt\')+1,255)

  else
    result := certdir;
end;

Re: Déployer Wapt par GPO

Posté : 29 mars 2018 - 08:48
par Arsgunner
Bonjour,

Je vous remercie, cela a fonctionné avec cette modification.
Je rencontre un autre problème mais au niveau de la console cette fois, j'ouvrirai un nouveau thread si je ne trouve pas de réponse par ailleurs.