Question regarding Innoscript and System files

Started by Randem, January 24, 2008, 03:20:33 AM

Previous topic - Next topic

Randem

Actually that is the very time you would need to pay attention to the messages...

nitesh

ok sure Randem. Next time it happens I will note it down. The only reason I didn't do it was because I was under pressure to get my program working in all the classrooms.

Randem

The script look good. I would need to see the actual message that gets generated. That would most likely clear things up.

nitesh

Oh yeah, windows is up to date. It doesn't happen on all the pc's I install on. The thing is I'm installing my app at a school and I am installing on about 15 pc's. That error happened on about 5 of them and when I ran the installation a second time it ran smoothly.

nitesh

Thanks Randem, That clears everything up for me.  
 
This is my script. Note**. I will be changing the file locations of the files that are being taken from the system32 folder later on today.
 
 
; InnoScript Version 7.3  Build 2
; Randem Systems, Inc.
; Copyright 2003-2007
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
 
; Date: January 25, 2008
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 7\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   E:\David\VBDev\PupilDBase\PupilDBase.vbp
; Inno Setup Script Output File (.iss):   E:\David\VBDev\PupilDBase\New Release\test Release2 Release.iss
;         Script Template Files (.tpl):   C:\Program Files\Randem Systems\InnoScript\InnoScript 7\Templates\Release.tpl
;                                     :   C:\Program Files\Randem Systems\InnoScript\InnoScript 7\Templates\VBRuntime.tpl
;                                     :   C:\Program Files\Randem Systems\InnoScript\InnoScript 7\Templates\Vista.tpl
;                                     :   E:\Downloads\Crystal Merge Module\CRXI_RDC_Redistribution\CR XI RDC Redistribution.tpl
 
; ------------------------
;        References
; ------------------------
 
; Visual Basic For Applications - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Shell Controls And Automation - (shell32.dll)
; Microsoft Data Binding Collection - (MSBIND.DLL)
; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)
; Microsoft Scripting Runtime - (scrrun.dll)
; Microsoft VBScript Regular Expressions 1.0 - (vbscript.dll)
; Microsoft OLE DB Service Component 1.0 Type Library - (oledb32.dll)
; Microsoft Internet Controls - (shdocvw.dll)
; Microsoft CDO For Exchange 2000 Library - (CDOEX.DLL)
; SMTP Send Mail for VB6.0 - (vbsendmail.dll)
; Microsoft Word 12.0 Object Library - (MSWORD.OLB)
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft XML, version 2.0 - (msxml.dll)
; Microsoft XML, v6.0 - (msxml6.dll)
; Crystal Reports ActiveX Designer Run Time Library 11.0 - (craxdrt.dll)
; Crystal Reports ActiveX Designer Design and Runtime Library 11.0 - (craxddrt.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; Microsoft Script Control 1.0 - (msscript.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (tabctl32.ocx)
; Microsoft Winsock Control 6.0 (SP6) - (mswinsck.ocx)
; Microsoft DataGrid Control 6.0 (SP6) (OLEDB) - (msdatgrd.ocx)
; Microsoft FlexGrid Control 6.0 (SP6) - (msflxgrd.ocx)
; Microsoft Windows Common Controls-2 5.0 (SP2) - (comct232.ocx)
; Microsoft Windows Common Controls-2 6.0 (SP6) - (mscomct2.ocx)
; Microsoft Hierarchical FlexGrid Control 6.0 (SP4) (OLEDB) - (mshflxgd.ocx)
; Microsoft Data Bound List Controls 6.0 (SP6) - (dblist32.ocx)
; Microsoft Rich Textbox Control 6.0 (SP6) - (richtx32.ocx)
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
 
 
[Setup]
AppId=PupilDBase Release
 
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
 
AppName=PupilDBase
AppVerName=PupilDBase 1.1.50
AppPublisher=lljp
 
;-----------------------------------------------------------------------------------------------------
 
AppVersion=1.1.50
VersionInfoVersion=1.1.50
AllowNoIcons=no
DefaultGroupName=PupilDBase
DefaultDirName={code:GetAppFolder}\PupilDBase
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.1,5.01
Compression=lzma
OutputBaseFilename=PupilDBase981150Release
 
[Tasks]
Name: AutoOSUpdater; Description: Install MDAC's for Database Operations; GroupDescription: Install MDAC's:
Name: ScriptingRuntime; Description: Install Microsoft's Scripting Runtime; GroupDescription: Install Scripting Runtime:
 
[Files]
Source: E:\Downloads\Crystal Merge Module\CRXI_RDC_Redistribution\CRXI_RDC_Redistribution.msi; DestDir: {tmp}; Flags: nocompression ignoreversion deleteafterinstall
Source: c:\program files\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: e:\david\vbdev\pupildbase\scripting runtime\scripten.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: e:\david\vbdev\pupildbase\scripting runtime\scr56en.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01; Tasks: ScriptingRuntime
Source: c:\program files\pupildbase\iview.exe; DestDir: {app}; Flags:  restartreplace sharedfile;  
Source: e:\david\vbdev\pupildbase\logonew.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: e:\david\vbdev\pupildbase\obereport.tmp; DestDir: {app}; Flags:  deleteafterinstall ignoreversion;  
Source: c:\program files\pupildbase\opendb.dsn; DestDir: {app}; Flags:  ignoreversion;  
Source: c:\program files\pupildbase\snapcam.exe; DestDir: {app}; Flags:  restartreplace sharedfile;  
Source: c:\windows\system32\msscript.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\common files\microsoft shared\cdo\cdoex.dll; DestDir: {cf}\microsoft shared\cdo\; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\pupildbase\vbsendmail.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\msword.olb; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: c:\program files\common files\business objects\3.0\crystalreportviewers11\activexcontrols\crviewer.dll; DestDir: {cf}\business objects\3.0\crystalreportviewers11\activexcontrols\; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\tabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\mswinsck.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\msdatgrd.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\msflxgrd.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\comct232.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\mscomct2.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\mshflxgd.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\dblist32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\richtx32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: e:\david\vbdev\pupildbase\pupildbase98.exe; DestDir: {app}; Flags:  restartreplace sharedfile;  
Source: E:\David\VBDev\PupilDBase\Icons\*.*; DestDir: {app}\Icons; Flags: ignoreversion
Source: E:\David\VBDev\PupilDBase\Nice\*.*; DestDir: {app}\Nice; Flags: ignoreversion
Source: E:\David\VBDev\PupilDBase\Reports\*.*; DestDir: {app}\Reports; Flags: ignoreversion
 
[INI]
Filename: {app}\PupilDBase98.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\PupilDBase; Filename: {app}\PupilDBase98.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, PupilDBase}; Filename: {app}\PupilDBase98.url
Name: {group}{cm:UninstallProgram, PupilDBase}; Filename: {uninstallexe}
 
[Run]
Filename: msiexec.exe; Parameters: /package {tmp}\CRXI_RDC_Redistribution.msi /passive; WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: AutoOSUpdater
Filename: {tmp}\scr56en.exe; Parameters: /r:n /q:1; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: ScriptingRuntime
Filename: {tmp}\scripten.exe; Parameters: /r:n /q:1; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: ScriptingRuntime
Filename: {app}\PupilDBase98.exe; Description: {cm:LaunchProgram, PupilDBase}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}\PupilDBase98.url
 
[Registry]
 
[Code]
function GetAppFolder(Param: String): String;
begin
  if InstallOnThisVersion('0,6', '0,0') = irInstall then
    Result := 'C:\Users\Public\'   ExpandConstant('{username}')  
  else
    Result := ExpandConstant('{pf}');
end;

Randem

In regards to your script and Windows shutting down you will need to post you script for a look see. Windows does not normally shut down due to an installation. Is your windows up-to-date? (Windows Update - Custom Installation)?

Randem

Yes, If they got thru InnoScripts Unsafe file check then most likely they are safe to deploy. Those files are safe to deploy because they are part of VB and your app will not work without them. You won't get them past Inno Setup when you attempt to compile for they are from the system32 folder and Inno Setup WILL complain. Copy those files to another folder and have InnoScript take the files from that folder then everything in regards to that will be OK.

nitesh

Randem another thing is, sometimes my installation fails and says the workstation is shutting down. I find this happens while scripten.exe is being installed. How can I fix this. I didn't right down the exact error message. sorry

nitesh

ok thanks Randem,
 
I understand that part. But are those examples I posted safe to distribute with my setup.

Randem

The statement still remains the same
 
NONE of the versions searched the system32 folder unless you used UNSAFE mode.
 
Check to make sure you are not running in UNSAFE mode.

nitesh

Hi Randem,
 
These are some examples. Please clarify it for me. I will read the manual also.
 
Source: c:\windows\system32\mscomct2.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\tabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
 
(Message edited by nitesh on January 24, 2008)
 
Correct me if i'm wrong. But wouldn't placing them in another folder and deploying them be the same as taking them from the System32 folder.  
 
(Message edited by nitesh on January 24, 2008)

Randem

Hi Nitesh,
 
Incorrect... NONE of the versions searched the system32 folder unless you used UNSAFE mode.
 
What following file? The topic of missing files is covered in the manual. You are supposed to supply the location of the missing files. If they are in the system32 folder you do need to copy them elsewhere if you are still going to deploy them.

nitesh

}is it just me or is my post blank.
 
(Message edited by nitesh on January 24, 2008)
 
Let me redo it:
 
Hi Randem,
 
In reference to the attached image I noticed the new Innnoscript does not search the system32 and system folders unless I specify them in the search file path.
 
With regards to the following files, what should I do since they are declared missing according to Innoscript. How must I dustribute them and where will they be copied once my installation runs on a client pc.
 

 
 
 
 
(Message edited by nitesh on January 24, 2008)