Version 7.2 Build 1 - Minimum NT Version=Vista. Program .exe Has A ...

Started by davethomson, September 04, 2007, 08:13:02 AM

Previous topic - Next topic

davethomson

Well, I am not sure how to make an installation .exe for both XP and Vista as the same .exe? Perhaps I just use the XP one as it apparently installs on Vista.
 
Being a complete novice I figured I needed one version for XP and one for Vista.
 
Seems I am using trial & error to do this

Randem

Why do you need two different install anyway? On install should be able to handle both. That is the way InnoScript is configured.
 
If anything you should not copy and paste lines and let InnoScript handle it.

davethomson

 
 
Well, after reading your post and much head scratching I believe I may have found the problem.
 
I wrote a VB6 program to read in .txt files that are copies of the .iss code for each version. Then I compared the two versions line-by-line.  
 
I made a big mistake in the SETTING > PARAMETERS as in the Vista version I had the DEFAULT DIRECTORY as C:.dogfight directory!!! (just one key stroke to the left of the /). Never saw this error.
 
Since my program is reading .txt files from C:/dogfight manager it obviously could not find the file as the .txt files were never installed there.
 
I have correct the error (4:30 AM 9/5) and plan on once again installing the vista version of the Vista PC.
 
The comparison of the two new .iss files shows this:
 
*** Vista & XP line 12 not the same
V-> ; Inno Setup Script Output File (.iss):   C:/Dogfight Manager/Dogfight Manager 7 Vista Beta.iss
X-> ; Inno Setup Script Output File (.iss):   C:/Dogfight Manager/Dogfight Manager 7 XP Beta.iss
 
*** Vista & XP line 52 not the same
V-> MinVersion=4.0,6.0
X-> MinVersion=4.0,5.01
 
*** Vista & XP line 54 not the same
V-> OutputBaseFilename=Dogfight Manager 7 VistaBeta
X-> OutputBaseFilename=Dogfight Manager 7 XPBeta
 
Obviously they are the same except for the OUTPUT FILE, MINVERSION, and OUTPUTBASEFILENAME. Therefore, the vista versin should work now.
 
But it is curious that the XP version installed on the Vista PC with no problem and runs correctly.
 
Go Figure  
 
Sorry about posting this error on my part but sometimes it takes conservation about a problem to solve the problem. In my job (before retirement) I would have a program problem, couldn't find the solution, explain it to a co-worker and almost immediately the solution would pop into my head. Strange how the human mind works.

Randem

That seems to be a Vista related issue. In what folder are you installing the app on Vista? It could be a security issue. Did you check the text files to see if they were in fact fully intact?
 
Please show scripts...

davethomson

I am using InnoScript 7.2 Build 1 to develop script for my VB6 program. The program has to read .txt files. My program runs fine on my PC in the development folder. I use InnoScript to develop a Vista .iss version.  I use InnoSetup on the Vista .iss file. Works fine. I use Vista InnoSetup .exe to install my program on a Vista PC. The very first .txt file my program trys to read I get the message, The ..... (filename).txt is not complete. and the program stops.
 
Now I use the same program .exe and use a different .pjt file but with XP checked in the Minimum NT Version. Innoscript and InnoSetup both run fine, i.e. no problems. I install the XP version on a Vista PC and it installs fine (no missing .tbl files). I run the XP version on the Vista PC and it works fine, i.e. all .txt files are read in fine.
 
So, the question is, Why would the same program .exe not work using InnoScript-Vista but will works with InnoScript-XP on a Vista PC?
 
I hope this is clear enough to understand. One thing I can do is provide you with the Vista InnoScript .exe if you wish. It is 3,671KB. It is a program to manage a golf dogfight.
 
Thank you for considering my question.