Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: lorinm on November 30, 2010, 05:08:04 PM

Title: Error Message and Does Not Run
Post by: lorinm on November 30, 2010, 05:08:04 PM
I tried to update with  1004001 updater but it failed.
I have all the key info so I used the full install of 1004001.  It ran the first time.  after that it ran once with an error message then would not even start.  I booted and still same problem.
Have inno Setup 5.4.0 installed.  After first run with Inno Script I did process a script.  But after that the script was only partially completed on subsequent runs.  Missing all file paths.
The error message is  
AutoUpdateW
0 - 9 Subscript Out of range - ProcessDownload()
 
After the boot, it again asked for the registration info and I did that but still would not start.  Same error message then died.  It did not complain about registration info and seemed to accept it.
Title: Error Message and Does Not Run
Post by: lorinm on November 30, 2010, 05:09:14 PM
This is running on WinXP latest service packs and patches.
Title: Error Message and Does Not Run
Post by: Randem on November 30, 2010, 05:27:02 PM
Turn off Automatic Updating to see if the problems gets resolved.
 
If not uninstall and reinstall.
 
let me know what happens.
Title: Error Message and Does Not Run
Post by: Randem on November 30, 2010, 05:30:30 PM
Additionally what version did you upgrade from?
Title: Error Message and Does Not Run
Post by: lorinm on November 30, 2010, 06:25:22 PM
How do I turn off auto update I can't get in?
And if I do, where is it to turn off?
 
Previous Inno Script was 9.4 I think.
Title: Error Message and Does Not Run
Post by: Randem on November 30, 2010, 06:55:47 PM
Yes, you were not supposed to install version 10 and above in the same folder as any previous version. It is noted on the support page. If you did this is possibly why you are having trouble. Uninstall all versions delete the InnoScript folder then reinstall. The issue should be resolved.
Title: Error Message and Does Not Run
Post by: lorinm on November 30, 2010, 09:01:37 PM
Did the uninstall of two versions, one in the 9 folder and the other in the 10 folder.  deleted all files and folders remaining.  reinstalled latest version.  it ran without asking for serial number etc? just ran once so far. now I have new questions.
 
1) what is Scripten.exe needed for?  Inno Script cannot find it and makes a red entry.  should I just comment this out? or what?
 
Also noted that if I exit Inno Script and restart and load the project, the red lines are not red any more.
 
Also noted that I cannot highlight and copy text in the script area then paste elsewhere but I can edit there.  Would be nice cut and paste to speed work.  Less typo errors too.
 
 
2) for some reason it wants to add a file from open office.  not sure where this is coming from.  what should I look for in my vb6 source code?  or references? or what?
 
3) I just commented out errors and ran Inno Setup.  This created an install .exe that I then ran.  The resultant file was very small.  Strange. But it did not create an entry in Win Start menu. Nothing for a user to use to start the app. How do i get that to happen, Inno Script or inno Setup?
 
thanks for the guidance so far.  really new at this.  I have several complex apps that I need to get an installer set for.  All for XP and later.
Title: Error Message and Does Not Run
Post by: lorinm on November 30, 2010, 09:13:45 PM
I went to the new 10 folder (has today's date on folders) and looked for the Sample folder.  Most of the sample files are missing.  the .iss file is there and a few VB files are there but many are missing.  How do I coorelate the source with the script  when so many files are missing?
Title: Error Message and Does Not Run
Post by: lorinm on November 30, 2010, 09:18:24 PM
If I can figure out how use the package and deployment wizard in the vb6 ide, is it better or worse to use the .pdw file or the .vbg file to run Inno Script?  Which is better and why?
I have used the PDW many times before and had few problems.  I would hope that he .pdw file would be corrected when run through Inno Script.
Title: Error Message and Does Not Run
Post by: Randem on November 30, 2010, 09:23:19 PM
OK, glad you got that straightened out. Let me answer your new questions:
 
1) Scripten.exe is added because your project required the usage of the Microsoft Scripting Runtime and that file will install the proper version.
 
Yes the red lines are not red on a reload. This is by design so that you can tell the difference between a run and a reload. Red lines are warnings that files that are needed cannot be found in the current search locations. Either expand your search locations or place the files needed in the current search locations. Check the InnoScript web page for installation that you can download to add in your script.
 
InnoScript is NOT a script editor, it is a script Generator. Inno Setup, ISTool and InnoIDE are script editors. Therefore you should edit your scripts in an editor.
 
2) You should look first in your references. Since I cannot see your script I can only guess at what is in it. Post your script.
 
3) Commenting out errors is like ignoring a slow leak in the tires of your car. Sure you make still make the car roll but for how long. Error are a sign that something is wrong or missing. Ignoring the errors will not fix them and you will run into problems later.
 
Again if you comment out things that are supposed to be in your script you cannot expect the resulting installation file to be of any real size for you have eliminated much of what should be in it.
Title: Error Message and Does Not Run
Post by: Randem on November 30, 2010, 09:26:47 PM
The pdw .lst file cannot be corrected by running it thru InnoScript. PDW made certain incorrect assumptions and InnoScript can only build on those incorrect assumptions. It is better to start fresh with your vbp or vbg project file and let InnoScript create the correct assumptions. If you start with something wrong it can possibly get worse. It's like making a wrong turn to get somewhere, you find out you are going the wrong direction and you still keep going... It's not going to get you where you need to go.
Title: Error Message and Does Not Run
Post by: Randem on November 30, 2010, 09:46:20 PM
Sample Folder? There is no sample folder deployed with version 10 of InnoScript.
Title: Error Message and Does Not Run
Post by: lorinm on December 01, 2010, 07:40:50 AM
So far so good.
1) But, since it says that Scripen.exe is not found, where do I get that and put it so to can be found?
2) Sample folder is under Random SystemsInnoScript 10Sample
Has a Sample.iss and .pjt and a few VB6 files.  Where did that come from?
.vbp has VersionProductName=InnoScript
VersionCompanyName=Random Systems, Inc.
It looked very interesting but many files missing.
Title: Error Message and Does Not Run
Post by: Randem on December 01, 2010, 08:20:33 AM
It probably would be a good idea to scan thru the manual or help documents...
 
1) As I stated Scripten.exe can be downloaded from the website...
 
2) In InnoScript 10.4 Build 1 there is no sample folder deployed so you are probably not on the latest version. In prior version there was a sample folder deployed and Samples are just that samples not complete working projects.
 
 
BTW: The name of the company is RANDEM not RANDOM, It is everywhere...
 
As I stated prior Please read the messages from InnoScript and the manual. It tells you exactly how to handle missing files. They do not just mysteriously appear YOU have to do something for them to be found.
 
Posting the script could eliminate lots of repeat questions...
Title: Error Message and Does Not Run
Post by: Randem on December 01, 2010, 08:31:44 AM
The samples folder hasn't been deployed since Version 10.2 Build 8 the current version of InnoScript is 10.4 build 1. The first thing you should do is get on the current version. BTW: You stated that you did an automatic update... An automatic update would get you to version 10.4 Build 1. So an automatic update could not have happened...
Title: Error Message and Does Not Run
Post by: lorinm on December 02, 2010, 09:17:40 PM
Confused.
I searched the website and could not find scripten.exe for download.  Can't a link be provided.
 
You statement about InnoScript not being an editor confuses me since on the web pages it tells me to edit the script (using what?).
Or you can add this to your Inno Setup Script using (of course change the source file location):
Anyway, if I cannot highlight and copy out of InnoScript to an eMail I have to take many more steps to accomplish that kind of task.
 
I have 10.4 Build 1 installed and there is a Samples folder under the 10 folder.  So it must have been a lower 10 version that did not erase the samples folder when I installed the 10.4 B 1.
Title: Error Message and Does Not Run
Post by: Randem on December 03, 2010, 09:51:48 AM
Scripten.exe can be downloaded from inside InnoScript. Look at the main menu in the selection titled Downloads then select Scripting Runtime Installation
 
As far as InnoScript not being an editor; I already answered this:
 
InnoScript is NOT a script editor, it is a script Generator. Inno Setup, ISTool and InnoIDE are script editors. Therefore you should edit your scripts in an editor.
 
In order to compile your scripts you need Inno Setup (which by the way is an editor). You can edit the script in Inno Setup.
 
You still need to use the correct tool for the job, just as you would not attempt to hammer a piece of wood in two or saw a nail into a piece of wood; but you use both in the manner they were intended to be used to build a house. This is the same with InnoScript and Inno Setup...
Title: Error Message and Does Not Run
Post by: Randem on December 03, 2010, 01:15:34 PM
BTW: All you need to do to edit the script that you have just created in InnoScript is to Press one of the editor buttons at the top of the screen (Inno Setup, ISTool or InnoIDE) and you will be able to edit the script if you have the editor installed.  
 
So, since you need to have Inno Setup installed to compile the script all it takes is one press of a button to be able to edit the script...