Skip to main content
Hello everybody,
 
for some reasons it could be possible in near future that we have to run uniface 10.4 in both 32 and 64 bit.
 
Does anybody of you know if it is possible to do this on the same machine?
In case of the answer is "yes, it's possible"... Is there something particular to consider?
 
Best regards


------------------------------
Michael Rösch
Abrechnungszentrum Emmendingen
------------------------------
Hello everybody,
 
for some reasons it could be possible in near future that we have to run uniface 10.4 in both 32 and 64 bit.
 
Does anybody of you know if it is possible to do this on the same machine?
In case of the answer is "yes, it's possible"... Is there something particular to consider?
 
Best regards


------------------------------
Michael Rösch
Abrechnungszentrum Emmendingen
------------------------------

Hello Michael

Yes it is possible.

It is important to set the correct path and environment variables and a case of MSS or PGS use 64 bit DSN entries for 64 bit Uniface and use 32 bit DSN entries for 32 bit Uniface.

In my environment I use bat scripts to set PATH and other environment variables:

An example with Informix and Oracle:

32 bit

@echo off 
setlocal
set "THEVERSION=104R2w32"
set "UNIFACE_HOME=C:\\uniface\\installations\\%THEVERSION%"
set "PATH=C:\\Program Files (x86)\\MySQL\\MySQL Installer for Windows;%PATH%"
set "PATH=%UNIFACE_HOME%\\common\\bin;%PATH%"
set "CLIENT_LOCALE=en_US.utf8"
set "DB_LOCALE=en_US.utf8" 
set "INFORMIXDIR=C:\\Program Files (x86)\\Informix Client-SDK"
set "PATH=%INFORMIXDIR%\\bin;%PATH%"
set "INFORMIXSERVER=infserver"
set "INFORMIXSQLHOSTS=C:\\Program Files\\IBM Informix Software Bundle\\etc\\sqlhosts.infserver"
set "PATH=C:\\Oracle\\instantclient_19_16;%PATH%"
set "TNS_ADMIN=C:\\Oracle"
set "_EXE=%UNIFACE_HOME%\\common\\bin\\ide.exe"
set "ADM=%UNIFACE_HOME%\\uniface\\adm"
set "ASN=.\\asn\\ide_%THEVERSION%.asn"
set "INI=C:\\uniface\\project\\ini\\unicode%THEVERSION%.ini"
call "%_EXE%" /dir=".." /adm="%ADM%" /asn="%ASN%" /ini="%INI%" ?
endlocal
exit

64 bit

@echo off 
setlocal
set "THEVERSION=104R2w64"
set "UNIFACE_HOME=C:\\uniface\\installations\\%THEVERSION%"
set "PATH=%UNIFACE_HOME%\\common\\bin;%PATH%"
set "CLIENT_LOCALE=en_US.utf8"
set "DB_LOCALE=en_US.utf8" 
set "DBDATE=DMY4"
set "INFORMIXDIR=C:\\Program Files\\IBM Informix Client-SDK"
set "PATH=%INFORMIXDIR%\\bin;%PATH%"
set "INFORMIXSERVER=infserver"
set "INFORMIXSQLHOSTS=C:\\Program Files\\IBM Informix Software Bundle\\etc\\sqlhosts.infserver"
set "PATH=C:\\Oracle\\instantclient_21_7_x64;%PATH%"
set "TNS_ADMIN=C:\\Oracle"
set "_EXE=%UNIFACE_HOME%\\common\\bin\\ide.exe"
set "ADM=%UNIFACE_HOME%\\uniface\\adm"
set "ASN=.\\asn\\ide_%THEVERSION%.asn"
set "INI=C:\\uniface\\project\\ini\\unicode%THEVERSION%.ini"
call "%_EXE%" /dir=".." /adm="%ADM%" /asn="%ASN%" /ini="%INI%" ?
endlocal
exit



------------------------------
Peter Beugel
Rocket Internal - All Brands
Amsterdam NL
------------------------------

Hello Michael

Yes it is possible.

It is important to set the correct path and environment variables and a case of MSS or PGS use 64 bit DSN entries for 64 bit Uniface and use 32 bit DSN entries for 32 bit Uniface.

In my environment I use bat scripts to set PATH and other environment variables:

An example with Informix and Oracle:

32 bit

@echo off 
setlocal
set "THEVERSION=104R2w32"
set "UNIFACE_HOME=C:\\uniface\\installations\\%THEVERSION%"
set "PATH=C:\\Program Files (x86)\\MySQL\\MySQL Installer for Windows;%PATH%"
set "PATH=%UNIFACE_HOME%\\common\\bin;%PATH%"
set "CLIENT_LOCALE=en_US.utf8"
set "DB_LOCALE=en_US.utf8" 
set "INFORMIXDIR=C:\\Program Files (x86)\\Informix Client-SDK"
set "PATH=%INFORMIXDIR%\\bin;%PATH%"
set "INFORMIXSERVER=infserver"
set "INFORMIXSQLHOSTS=C:\\Program Files\\IBM Informix Software Bundle\\etc\\sqlhosts.infserver"
set "PATH=C:\\Oracle\\instantclient_19_16;%PATH%"
set "TNS_ADMIN=C:\\Oracle"
set "_EXE=%UNIFACE_HOME%\\common\\bin\\ide.exe"
set "ADM=%UNIFACE_HOME%\\uniface\\adm"
set "ASN=.\\asn\\ide_%THEVERSION%.asn"
set "INI=C:\\uniface\\project\\ini\\unicode%THEVERSION%.ini"
call "%_EXE%" /dir=".." /adm="%ADM%" /asn="%ASN%" /ini="%INI%" ?
endlocal
exit

64 bit

@echo off 
setlocal
set "THEVERSION=104R2w64"
set "UNIFACE_HOME=C:\\uniface\\installations\\%THEVERSION%"
set "PATH=%UNIFACE_HOME%\\common\\bin;%PATH%"
set "CLIENT_LOCALE=en_US.utf8"
set "DB_LOCALE=en_US.utf8" 
set "DBDATE=DMY4"
set "INFORMIXDIR=C:\\Program Files\\IBM Informix Client-SDK"
set "PATH=%INFORMIXDIR%\\bin;%PATH%"
set "INFORMIXSERVER=infserver"
set "INFORMIXSQLHOSTS=C:\\Program Files\\IBM Informix Software Bundle\\etc\\sqlhosts.infserver"
set "PATH=C:\\Oracle\\instantclient_21_7_x64;%PATH%"
set "TNS_ADMIN=C:\\Oracle"
set "_EXE=%UNIFACE_HOME%\\common\\bin\\ide.exe"
set "ADM=%UNIFACE_HOME%\\uniface\\adm"
set "ASN=.\\asn\\ide_%THEVERSION%.asn"
set "INI=C:\\uniface\\project\\ini\\unicode%THEVERSION%.ini"
call "%_EXE%" /dir=".." /adm="%ADM%" /asn="%ASN%" /ini="%INI%" ?
endlocal
exit



------------------------------
Peter Beugel
Rocket Internal - All Brands
Amsterdam NL
------------------------------

Hello Peter,

thanks for your quick response. One additional question:

Can these two "installations" share the same UAR? Or do we have to compile our components with both 32 and 64 bit?

Best regards



------------------------------
Michael Rösch
Abrechnungszentrum Emmendingen
------------------------------

Hello Peter,

thanks for your quick response. One additional question:

Can these two "installations" share the same UAR? Or do we have to compile our components with both 32 and 64 bit?

Best regards



------------------------------
Michael Rösch
Abrechnungszentrum Emmendingen
------------------------------

Hello Michael

Yes they can use the same uar file.



------------------------------
Peter Beugel
Rocket Internal - All Brands
Amsterdam NL
------------------------------

Hello Michael

Yes they can use the same uar file.



------------------------------
Peter Beugel
Rocket Internal - All Brands
Amsterdam NL
------------------------------

Perfect... Thank you very much



------------------------------
Michael Rösch
Abrechnungszentrum Emmendingen
------------------------------