filePro5.8 32 & 64-bit
Richard Kreiss
rkreiss at gccconsulting.net
Tue Mar 22 10:05:46 PDT 2016
Ran into an unforeseen problem last Friday after installing 5.8 64-bit. This was tested and ran without a problem at my client's site. I could only test this through RDP which is 64-bit Windows Server 2012. In fact my client advised me that filePro was running faster on the same hardware. This was unexpected.
The problem that arose occurred when I modified the startup script to use 5.8 and not 5.7. Some of the office staff found that filepro would not run on their computer. The machines have 32-bit Windows.
In any event, to keep everyone on 5.8, I have downloaded the 32-bit version and installed that. When the user logs into filePro, and before the login screen appears which version of FP is set.
Test batch file: set processor will show what the actual OS is. If it is 64-bit the value is AMD64 - it doesn't matter if it is AMD or Intel, that is the answer for a 64-bit OS. I checked this on 2 computers in my office, one with an AMD processor and the other an Intel processor.
A thanks to Ken Brody and Ernie Bernard for their assistance.
rem @ECHO OFF
set processor
pause
if '%processor_architecture%' == 'AMD64' GOTO set64
If '%processor_architecture%' == 'X86' GOTO set32
:set32
ECHO This is a 32-Bit OS
pause
GOTO done
:set64
ECHO THIS IS A 64-BIT os
PAUSE
GOTO done
:DONE
Note: '%processor_architecture%' resolves into either x86 or AMD64
Here is a sample production file:
In this file, the 64-bit program is the primary version, therefore, if you don't want to duplicate everything for the 32-bit version, just use environmental variables to point to the 64-bit fp directory for these items.
One advantage to this method is this file will not have to be changed as the local desktop computers are upgraded to ones with a 64-bit OS or the OS is upgraded.
The fall through here is to use the 32-bit version in case something fails. That version will run on either a 32-bit or 64-bit system.
My client has people who login locally and using RDP( 64-bit) & from their local machine with a 32-bit OS.
rem This File created by install shield on 9-22-2006
rem Modified 03/21/16 for fp5.8. 64-bit & 32-bit programs by Richard Kreiss
title=CCP - Programmer
set fplmhost=10.162.1.2:6556
set PATH=c:\windows\system32
set PFDSK=F
set PFDATA=F:
set PFTMP=c:\pftemp
If '%PROCESSOR_architecture%' == 'AMD64' GOTO set64
If '%PROCESSOR_architecture%' == 'X86' GOTO set32
:set32
SET PFPROG=F:\fp58_32
set PFMENU=f:\fp58\fp\menus
SET PFLICFILE=F:\fp58\fp\lib\licfp.dat
SET PFGLOB-f:\fp58\fp\lib\edits
:set64
set PFPROG=F:\fp58
set PFMENU=%PFPROG%\fp\menus
GOTO next
:next
set PFDIR=
set PFGLOB=F:\fp58\fp\lib\edits
set PFCONFIG=F:\fp58\fp\lib\config
set PFIMAGEDIR=F:\ccp_logos
set PFDLDIR=C:\WINDOWS\FONTS
rem set PFPRT=F:\PFSPOOL\RICHARD.TXT
rem set pfpt=on
set PATH=%pfprog%;%PFPROG%\fp;%path%
echo stuff > fp$$$$$$.bat
del fp$$*.bat>NUL
%pfprog%\fp\p.exe
Richard Kreiss
More information about the Filepro-list
mailing list