Error that is causing InnoScript to crash

Started by randem, January 18, 2008, 11:12:55 AM

Previous topic - Next topic

Randem

spick56,
 
You will have to better explain what you mean. We add multiple search folders all the time. You must have them checked for InnoScript to search them and if a file is not found in the folder or a folder beneath it, the folder will be eliminated from the list. So putting it back in will serve no purpose.

spick56

OK, I can understand that.
 
I tried adding search folders and it allowed me to enter only one folder. Even if I edited the InnoScript Project File using Notepad and then tried to load it to InnoScript it still didn't show it in the Search Folders tab.
 
/Michael
 
P.S. I'm still at it and will let you know how I go.

Randem

It is different than your script. You are missing a few things. How?
 
These are the only missing files that I have:
 
Source: invoicemaker.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
Source: microsoft.reportviewer.commo.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: microsoft.reportviewer.winform.dll; DestDir: {sys}; Flags:  ignoreversion;

Randem

spick56,
 
This is what I get when I run InnoScript with your project file.
 
; InnoScript Version 8.0  Build 3
; Randem Systems, Inc.
; Copyright 2003-2008
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
 
; Date: January 18, 2008
 
;                  VB Runtime Files Folder:    
; Visual Basic .NET Project File (.vbproj):   E:\Works\spick56\InvoiceMaker_vbproj-8641\InvoiceMaker.vbproj
;     Inno Setup Script Output File (.iss):   E:\Works\spick56\InvoiceMaker_vbproj-8641\InvoiceMakernew Trial.iss
;                                         :   C:\Documents and Settings\Ralph James\Local Settings\Application Data\Randem Systems\innoscript\Templates\Trial.tpl
 
; ------------------------
;        References
; ------------------------
 
 
 
; --------------------------
;        Components
; --------------------------
 
 
 
[Setup]
AppId=InvoiceMaker Trial
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBPROJ Project File Parameters Root Namespace, Root NameSpace Assembly Version and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=InvoiceMaker Trial
AppVerName=InvoiceMaker Trial
AppPublisher=Gem Business Solutions
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName= Trial
DefaultDirName={pf}\
AppCopyright=
PrivilegesRequired=Admin
MinVersion=0,6.0
Compression=lzma
OutputBaseFilename=InvoiceMaker100Trial
 
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: DotNetFrameWork; Description: Install .Net Framework; GroupDescription: Install .Net Framework:; Check: InstallDotNET20
 
[Files]
Source: e:\server data\randem\develop\support\dotnetfx20\dotnetfx.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: DotNetFrameWork
Source: invoicemaker.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
Source: microsoft.reportviewer.commo.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: microsoft.reportviewer.winform.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac_msil\system.deployment\2.0.0.0__b03f5f7f11d50a3a\system.deployment.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\windows\system32\mscoree.dll; DestDir: {sys}; Flags:  ignoreversion;  
 
[INI]
Filename: {app}\InvoiceMaker.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\InvoiceMaker Trial; Filename : {app}\InvoiceMaker.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, InvoiceMaker Trial}; Filename: {app}\InvoiceMaker.url; IconFilename: {app}\InvoiceMaker.ico
Name: {group}{cm:UninstallProgram, InvoiceMaker Trial}; Filename: {uninstallexe}
Name: {commondesktop}\InvoiceMaker Trial; Filename: {app}\InvoiceMaker.exe; Tasks: desktopicon; WorkingDir: {app}
 
[Run]
Filename: {tmp}\dotnetfx.exe; Parameters: /q:a /c: install /l /q; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DotNetFrameWork
Filename: {app}\InvoiceMaker.exe; Description: {cm:LaunchProgram, InvoiceMaker Trial}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}\InvoiceMaker.url
Type: dirifempty; Name: {app}

Randem

svanxx,
 
Did you check off the items I mentioned in my last post?

svanxx

I'm trying to create shortcuts on the desktop and quick launch. I can create a shortcut on the desktop and the start menu, but it doesn't want to create one for the quick launch.  
 
Since it's not necessary, I'm not too worried about it. But I glad that you figured out the problem.

Randem

spick56,
 
Is your computer up to date on MS Updates? It would also seem that your installations never completed? I would uninstall Inno Setup and re-install.
 
You are getting errors because you never instructed InnoScript on where to find the missing files. If you attempt to compile a script with missing file you will get errors and cannot expect the result to be good if the files are not in the installation. You have 6 missing files...
 
As far as the Index message, please tell me exactly the procedure you used to get it and with what file. Did you run the InnoScript Trace on that I could look in the logs to see where it is happening.

Randem

svanxx,
 
What shortcuts are you referring to? Did you select for InnoScript to deploy shortcuts with the selections on the Parameter screen (DesktopIcon and QuickLaunchIcon) and on the main screen to Include URL Links?

spick56

Sorry for taking just a bit longer than 30 min.  
 
I followed your instructions and got the following results:
- as part of installation I was asked to restart my PC (not sure if that was intended).
- I also got the following message: Setup/Uninstall is trying to set 'InnoSetupRegFile.0000000001' to run each time your computer is started.. What is that about?
- after compiling the project using InnoScript I got a message Invalid Property Array Index but no InnoScript crash. On several other attempts I sometimes got the same message and other times didn't get the message but no InnoScript crash at any time.
- when I compiled Inno Setup Script I initially got one error (I think on line 56) and on the last occasion syntax error in line 79, which I wouldn't have expected.  
 
/Michael

svanxx

I had to put all of my project's Bin files in another folder to get it to work, but everything is working now. I'm having a problem with shortcuts not being created, but I don't know if that's a problem from InnoScript or from Inno Setup.
 
Thanks for all of your help.

svanxx

I had put the files in another folder as the manual said and even after InnoScript found all of my files it was still giving me that error. I'll try the new version when I get to work.

Randem

The components are listed in the script but you need to tell InnoScript where to find them (especially in SAFE Mode), Since InnoScript will not search the System32 folder for files in SAFE Mode. If the files are elsewhere you would also need to tell InnoScript where they are if they are not in the path.

spick56

Thanks for the new version. I'll try it shortly as I need to step out for 30 min.
 
In the missing files issue, I thought that  vb.net project file should indicate all the components that project uses/needs and their locations so that programs such as InnoScript can fetch those components but I guess that's not correct, is it?  
 
/Michael

Randem

Ok, I have posted a new version with a few changes that should help. The reason you have errors is because the some files are not found in the script. You will need to locate the files and place the path into the search folders tab in InnoScript.

spick56

Hi Ralph,
I'm now back on line so I'll try the things you asked above.
- Firstly here are my Visual Studio details:
Microsoft Visual Studio 2005
Version 8.0.50727.867  (vsvista.050727-8600)
Microsoft .NET Framework
Version 2.0.50727
 
Installed Edition: Professional
 
Microsoft Visual Basic 2005   77626-009-2351316-xxxxx
Microsoft Visual Basic 2005
 
Microsoft Visual C# 2005   77626-009-2351316-xxxxx
Microsoft Visual C# 2005
 
Microsoft Visual C   2005   77626-009-2351316-xxxxx
Microsoft Visual C   2005
 
Microsoft Visual J# 2005   77626-009-2351316-xxxxx
Microsoft Visual J# 2005
 
Microsoft Visual Web Developer 2005   77626-009-2351316-xxxxx
Microsoft Visual Web Developer 2005
 
Microsoft Web Application Projects 2005   77626-009-2351316-xxxxx
Microsoft Web Application Projects 2005
Version 8.0.50727.867
 
Crystal Reports    AAC60-G0CSA4B-xxxxx
Crystal Reports for Visual Studio 2005
 
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)    
 
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB937061)    
 
Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB932232)    
 
Visual Studio Package Load Analyzer   1.0
A utility that analyzes package load failures in Visual Studio 2005.
 
- I downloaded the InnoScriptTrace.zip and replaced my existing exe with it
- I loaded my project and compiled it with the resulting (attached) ISS and trace files.
  Note that I've also been working on my 'project' so the ISS file will be different to the one I sent you yesterday.
- Interestingly the InnoScriptTrace program didn't crash this time however when I ran Inno Setup (V5.2.2) I got an error in line 55 but I don't think that has anything to do with Inno Script or Setup but rather my setup (which I'm not sure at this stage why, but that's another story)
 
/Michael

(Message edited by spick56 on January 17, 2008)