Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP9 Executable problem

Status
Not open for further replies.

EC1

Programmer
Jul 22, 2002
25
BE
Hello,

I want to install an executable on a server. Server : Windows 2007 32 bit.
I use my install procedure i made several years ago, just to install all the necessary Foxpro dll's, ... .
When i start up my exe the system is asking for an .fxp program.

2016-04-25_172411_m4yxhh.jpg


Is there something that i forgot?

Thanks.

EC
 
Sounds like you have forgotten to include a program file, or many, into the exe.
 
I use my install procedure i made several years ago, just to install all the necessary Foxpro dll's, ... .

Your install program need to install more than just the DLLs. It should also install your EXE, plus any other necessary runtime files.

The simplest solution might to be produce a new, correct install program.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Thanks for helping.

I have included a program file in my exe.
My install program will install any necessary file needed. The exe file is the only thing that is not included. After the installation i create a new directory, copy the exe and the foxtools.fll in it. I have to create some odbc connection to a sql server, and that's it.
i can say that i did this more than a 1000 times, for the last 16 years. This time, it is not working.

I will create a new install file, like you said.
Many thanks.

regards.
EC
 
I have seen such a DO file open dialog opening when executing an EXE that wasn't compiled correctly.

Do you have COM Servers in your PJX? If you open the project info (CTRL+J does that) and open the Servers tab, are any server classes listed?
If so start vfp9.exe as Admin (via right click on the exe and context menu item "Run As Administrator").

After doing so compile. Normally the only side effect of not doing so and starting VFP9.exe with not elevated with Administrator priviledges is, that the COM Classes you compile are not automaticall regsitered on your development computer. That normally doesn't matter mcuh, but since a few months (years) it seems to play a role. I only could get one PJX going again after removing all COM classes.

If that's the case you'll also see a size difference in the EXE, that con't just be explained by the registration or non registration of the COM (olepublic) classes.

Bye, Olaf.
 
You say your instal has worked 1,000 times. And now it is not working.

So the obvious question is: What has changed? What is different about the 1,001st time that does not apply to the others?



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Olaf,
there are no COM servers in my project. I made a simple project, just a main program, called RNV.prg. This application will check for the latest EXE in the current directory, and start it up.
This is a system i learned from one of the forum members.

Mike,
there must be something wrong with the installation. I copied an executable from another project on that server. There is no correct odbc link available on that server, the application have to give me an error. But, still, it has to start up anyway. I got the same problem, the system is asking for that .fxp program.

I have to install that installation program on my laptop. First i have to find my installation CD.

Thanks for your comments and suggestions.

ec
 
What's the name of the "offending" .fxp? It's clear that either you have forgotten to include a .prg with the same name. Or you reference a function with the same name, and this function isn't present in any of the included files. Give more details!
 
Hi,

project : RNV1
Main program : RNV.prg

2016-04-26_135336_zidt3l.jpg


Executable : RNV1.EXE

Starting exe file :

I got this message

2016-04-26_135702_qewkqg.jpg


System is asking for .fxp file. I copied that fxp file on that server. If i select that file the program will start.

Thanks for helping.

ec
 
The file is clearly set as main. There's something else afoot here.

When you ran your installer, did you run it as administrator?
 
If you launch RNV1.exe as an administrator, does it keep asking for the .fxp?
 
Hi,

The file is set as main. You can not create an exe without.
I ran the installer as administrator.
I launch RNV1.exe as administrator, same result.

I hope i have some time left today to continue my search.

Thank you all.

ec
 
From all said you can deduct the EXE is not workable. Rebuild. If you still get the same EXE and it continues to not work, then there is something wrong with the PJX and you should try to recreate the project.

Bye, Olaf.
 
As I clearly said in thread184-1753177, it CAN'T be anything wrong with the EXE or PJX since it works on most places (37 out of 40) AND I update the EXE about once a month and it is still only the same 3 places that it will show this behavior.
 
Well, if THAT exe works elsewehere, then something happened to this copy of the EXE, most probably. There never is the exe, when you install you always install copies. The exe only exists in the project output directory of your development machine. So go back there, get an original copy.

I've seen files corrupted mainly on flash drives, USB /thumb drives, SSD. Copying by FTP can also have some errors. Maybe do a checksum of the file and check at the site.

Bye, Olaf.
 
Did you already try to change the rnv.prg into a form, and execute whatever rnv.prg does in Load or Init events?
 
I've seen this happen when Windows Security Essentials or some other anti-virus program is blocking the EXE. Unblock this to prevent this issue.

Doug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top