I'm About to Give Up on InnoScript - Part 1

Started by tomb, November 28, 2007, 06:29:15 AM

Previous topic - Next topic

Randem

Ok, You could run any code that your program needs (a function) then when it returns it would still shut down the normal way.
 
The Exit button would run the same function then exit the program.  
 
I'll let you know when the zip file is uploaded.
 

Tom Buggy

Ok, but why can't the window close with the X?
 
I don't understand why but in some cases in the past it shut the program down and Windows thought it was still running.  I supose I could recode and return to the previous window when X is clicked.
 
I'll look forward to the zipped file.  Perhaps you could also send the script in a file that I can use with Inno Setup to create a Setup executable.
 
I'll be gone for a few hours in a bit but I'll pick up when I return.

Randem

Ok, but why can't the window close with the X? You should still be able to run the same code...
 
I am downloading the program now to see if I get any  errors. You may get errors downloading exe files. I will upload a zip file to see if you get errors on that.

Tom Buggy

Still get the corrupted message.  But, it seems you have the program running.
 
With respect to the X my understanding is that it can't be removed without removing the entire Control Box and I want to leave the Minimize option.  But, you make a good point - why a message instead of just ignoring - probably because we have neophyte users who want to know why about everything.  If the program bugs them enough with the message perhaps they'll stop trying.

Randem


Randem

It had not finished uploading when you downloaded it. I will let you know when it finishes uploading...
 
BTW: You can remove the X at the top of the forms so that no one can attempt to use it or just ignore the close request instead of issuing the messages...

Tom Buggy

I created a CD with the .EXE you sent.  When I went to run it on the XP Virtual PC I got the message The Setup files are corrupted.  Please obtain a new copy of the program.

Randem

Try this installation - GHM
 
This is what generated it:
 
; InnoScript Version 8.0  Build 0  Beta
; 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: December 01, 2007
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 8\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   E:\Works\TomBuggy\GHM.vbp
; Inno Setup Script Output File (.iss):   E:\Works\TomBuggy\Scripts\Swagolf Release.iss
;         Script Template Files (.tpl):   C:\Documents and Settings\Ralph James\Application Data\Randem Systems\InnoScript\Templates\Release.tpl
;                                     :   E:\Works\TomBuggy\Templates\Swagolf.tpl
 
; ------------------------
;        References
; ------------------------
 
; Visual Basic For Applications - (MSVBVM60.DLL)
; Standard OLE Types - (OLEPRO32.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Data Source Interfaces - (msdatsrc.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (MSSTDFMT.DLL)
; Microsoft ADO Ext. 2.5 for DDL and Security - (msadox.dll)
; Microsoft ActiveX Data Objects Recordset 2.5 Library - (msador15.dll)
; Microsoft Visual Basic 6.0 Extensibility - (VB6EXT.OLB)
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Access Components Installed Version - (odbcconf.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
; Microsoft HTML Object Library - (mshtml.tlb)
 
 
; --------------------------
;        Components
; --------------------------
 
; Microsoft Comm Control 6.0 - (MSCOMM32.OCX)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
 
 
[Setup]
AppId=GHMP Release
 
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
 
AppName=GHMP
AppVerName=GHMP 1.0.4 Release
AppPublisher=SportsWare Ltd.
 
;-----------------------------------------------------------------------------------------------------
 
AppVersion=1.0.4
VersionInfoVersion=1.0.4
AllowNoIcons=yes
DefaultGroupName=GHM
DefaultDirName={pf}\GHM
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,4.0
Compression=lzma
OutputBaseFilename=GHM104Release
 
[Tasks]
Name: AutoOSUpdater; Description: Install Support for Database Operations; GroupDescription: Install Database Support:
 
[Files]
Source: e:\server data\randem\develop\support\scripts\output\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: e:\works\tombuggy\ghm_v70.add; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.dbf; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.hst; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.rng; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.trn; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\hcpcard.lwt; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\labels.def; DestDir: {sys}; Flags:  ignoreversion;  
Source: e:\server data\randem\develop\deployable system files\msbind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\server data\randem\develop\deployable system files\msstdfmt.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\gbprintdialog.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\resizekit.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\dymolbl.exe; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\vfpoledb.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\server data\randem\develop\deployable system files\mscomm32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\varbetterbutton.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\server data\randem\develop\deployable system files\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\gbgraphs.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\ghm.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
Source: e:\works\tombuggy\labels.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
 
[INI]
Filename: {app}\GHM.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\GHMP; Filename: {app}\GHM.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, GHMP}; Filename: {app}\GHM.url
Name: {group}{cm:UninstallProgram, GHMP}; Filename: {uninstallexe}
 
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: AutoOSUpdater
Filename: e:\works\tombuggy\dymolbl.exe; Parameters: /regserver; WorkingDir: e:\works\tombuggy\;
Filename: {app}\GHM.exe; Description: {cm:LaunchProgram, GHMP}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}\GHM.url
Type: filesandordirs; Name: {userappdata}\SportsWare Ltd.\GHM
Type: filesandordirs; Name: {app}
Type: dirifempty; Name: {app}
Type: dirifempty; Name: {userappdata}
 
[Dirs]
Name: {userappdata}\SportsWare Ltd.; Flags: uninsalwaysuninstall;
Name: {userappdata}\SportsWare Ltd.\GHM; Flags: uninsalwaysuninstall;

Tom Buggy

The database files in the script are skeleton files for new users and thus require the user to set up System Parameters, add real player to the database, etc.  I'm attaching a series of real files that will resolve this situation for you.  Copy these files to the installation folder (C:\Program Files\GHM) before you run the program.
 
You should then be able to go the Handicap Maintenance from the main menu and then to Player Maintenance from the next menu.  From there you can do variouus things via the buttons at the bottom of the window.

Randem

Ok, I will generate the installation file and test it. Any information on how to test?

Tom Buggy

No.  The databases we use are the GHM_V70.xxx files we sent you and are included in the script you just posted.

Randem

I think I remembered you mentioning an Access database or something of the sort. Is that the case?

Tom Buggy

Do I have all the files need for your app?
 
I believe so.


Randem

Here is what I have now. Do I have all the files need for your app?  
 
; InnoScript Version 8.0  Build 0  Beta
; 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: December 01, 2007
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 8\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   E:\Works\TomBuggy\GHM.vbp
; Inno Setup Script Output File (.iss):   E:\Works\TomBuggy\Scripts\Swagolf Release.iss
;         Script Template Files (.tpl):   C:\Documents and Settings\Ralph James\Application Data\Randem Systems\InnoScript\Templates\Release.tpl
 
; ------------------------
;        References
; ------------------------
 
; Visual Basic For Applications - (MSVBVM60.DLL)
; Standard OLE Types - (OLEPRO32.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Data Source Interfaces - (msdatsrc.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (MSSTDFMT.DLL)
; Microsoft ADO Ext. 2.5 for DDL and Security - (msadox.dll)
; Microsoft ActiveX Data Objects Recordset 2.5 Library - (msador15.dll)
; Microsoft Visual Basic 6.0 Extensibility - (VB6EXT.OLB)
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Access Components Installed Version - (odbcconf.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
; Microsoft HTML Object Library - (mshtml.tlb)
 
 
; --------------------------
;        Components
; --------------------------
 
; Microsoft Comm Control 6.0 - (MSCOMM32.OCX)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
 
 
[Setup]
AppId=GHMP Release
 
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
 
AppName=GHMP
AppVerName=GHMP 1.0.4 Release
AppPublisher=SportsWare Ltd.
 
;-----------------------------------------------------------------------------------------------------
 
AppVersion=1.0.4
VersionInfoVersion=1.0.4
AllowNoIcons=yes
DefaultGroupName=GHM
DefaultDirName={pf}\GHM
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,4.0
Compression=lzma
OutputBaseFilename=GHM104Release
 
[Tasks]
Name: AutoOSUpdater; Description: Install Support for Database Operations; GroupDescription: Install Database Support:
 
[Files]
Source: e:\server data\randem\develop\support\scripts\output\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: e:\works\tombuggy\ghm_v70.add; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.dbf; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.hst; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.rng; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\ghm_v70.trn; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\hcpcard.lwt; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\works\tombuggy\labels.def; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\server data\randem\develop\deployable system files\msbind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\server data\randem\develop\deployable system files\msstdfmt.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\gbprintdialog.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\resizekit.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\dymolbl.exe; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\vfpoledb.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\server data\randem\develop\deployable system files\mscomm32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\varbetterbutton.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\server data\randem\develop\deployable system files\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\gbgraphs.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\works\tombuggy\ghm.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
Source: e:\works\tombuggy\labels.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
 
[INI]
Filename: {app}\GHM.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\GHMP; Filename: {app}\GHM.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, GHMP}; Filename: {app}\GHM.url
Name: {group}{cm:UninstallProgram, GHMP}; Filename: {uninstallexe}
 
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: AutoOSUpdater
Filename: e:\works\tombuggy\dymolbl.exe; Parameters: /regserver; WorkingDir: e:\works\tombuggy\;
Filename: {app}\GHM.exe; Description: {cm:LaunchProgram, GHMP}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[Dirs]
Name: {userappdata}\SportsWare Ltd.; Flags: uninsalwaysuninstall;
Name: {userappdata}\SportsWare Ltd.\GHM; Flags: uninsalwaysuninstall;
 
[UninstallDelete]
Type: files; Name: {app}\GHM.url
Type: filesandordirs; Name: {userappdata}\SportsWare Ltd.\GHM
Type: filesandordirs; Name: {app}
Type: dirifempty; Name: {app}
Type: dirifempty; Name: {userappdata}