Yes, Include the Vista Template.... (for the third time...:p )
Printable View
Yes, Include the Vista Template.... (for the third time...:p )
Then re-post your script... THE WHOLE SCRIPT!!!
randem:(
Im back at square 1. I ran the installation on the test machine and I got the "crviewer.dll is not registered or missing" The same error I posted at the beginning of this thread.:cry:
This is my new script. That error about missing procdure for GetAppFolder is gone. Thanks alot.
[CODE]; ********** Version 7.3 Build 2
[Registry]Code:; Randem Systems, Inc.
; Copyright 2003-2007
; Website: http://www.***********
; Support: http://www.***********/cgi-bin/discus/discus.cgi
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
; Date: November 28, 2007
; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 7\VB 6 Redist Files\
; Visual Basic Project File (.vbp): E:\David\VBDev\Plant Maintenance\plant.vbp
; Inno Setup Script Output File (.iss): E:\David\VBDev\Plant Maintenance\Improved Script\release Release.iss
; Script Template Files (.tpl): C:\Program Files\Randem Systems\**********\********** 7\Templates\Release.tpl
; : C:\Program Files\Randem Systems\**********\********** 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 ActiveX Data Objects 2.1 Library - (msado21.tlb)
; Microsoft Internet Controls - (shdocvw.dll)
; Unknown Component (Possibly not registered) - crviewer.dll - 11.0 - (crviewer.dll)
; Crystal Reports ActiveX Designer Run Time Library 11.0 - (craxdrt.dll)
; Crystal Reports ActiveX Designer Design and Runtime Library 11.0 - (craxddrt.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
; --------------------------
; Components
; --------------------------
; Microsoft Winsock Control 6.0 (SP6) - (mswinsck.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
; Microsoft Windows Common Controls-2 6.0 (SP6) - (mscomct2.ocx)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (tabctl32.ocx)
; Microsoft FlexGrid Control 6.0 (SP6) - (msflxgrd.ocx)
[Setup]
AppId=Project1 Release
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
AppName=Project1
AppVerName=Project1 1.0.0
AppPublisher=Network Support
;-----------------------------------------------------------------------------------------------------
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName=YardMan
DefaultDirName={code:GetAppFolder}\YardMan
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,5.01
Compression=lzma
OutputBaseFilename=YardMan18100Release
[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\plant maintenance\scripting runtime\scripten.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: e:\david\vbdev\plant maintenance\scripting runtime\scr56en.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01; Tasks: ScriptingRuntime
Source: e:\david\vbdev\plant maintenance\opendb.dsn; DestDir: {app}; Flags: ignoreversion;
Source: e:\downloads\crystal merge module\crxi_rdc_redistribution\crxi_rdc_redistribution.msi; DestDir: {app}; Flags: ignoreversion;
Source: c:\windows\system32\mswinsck.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\tabctl32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\msflxgrd.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: e:\david\vbdev\plant maintenance\exe\yardman18.exe; DestDir: {app}; Flags: restartreplace sharedfile;
Source: E:\David\VBDev\Plant Maintenance\Icons\*.*; DestDir: {app}\Icons; Flags: ignoreversion
Source: E:\David\VBDev\Plant Maintenance\Reports\*.*; DestDir: {app}\Reports; Flags: ignoreversion
[INI]
Filename: {app}\YardMan18.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\Project1; Filename: {app}\YardMan18.exe; WorkingDir: {app}
Name: {group}\{cm:ProgramOnTheWeb, Project1}; Filename: {app}\YardMan18.url
Name: {group}\{cm:UninstallProgram, Project1}; 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}\YardMan18.exe; Description: {cm:LaunchProgram, Project1}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\YardMan18.url
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;
Ok, there are several thing you can do and I will not repeat them again...
1 - Remove the crviewer.dll from the unsafe file, then re-run so that this file gets added to your script for deployment.
2 - Find out why this file does not appear to be registered on your machine. You can use Inno Script for this also. Go to View->Registered Shared Files then search for crviewer.dll to see if it exist.
3 - Go to the location where the crviewer.dll file exist then register it to attempt to resolve the registration issue.
One more thing...
4 - Open your VBP in notepad and remove the crviewer.dll reference then open the app in VB and re-add it. It would seem that your CSLID may have changed...
ok randem,
I removed the reference and re added it. Now it appears in ********** as it should.:afrog:
But when I go to view --> registered shared files. the crviewer.dll isn't there. and I still get the error when I ran the new installation. Have 2 go now. Thanks so much for all the help. will get back to this 2moro.
Ok, so go to the location of the crviewer.dll file and attempt to register it.
Regsvr32 crviewer.dll
Also why on earth are you using MDAC 2.1 in your application?
and you can delete all those .tmp files from your development folder...
ok randem, i've changed the refernce for the MDAC to 2.8. Thanks for the alert. will try to register the file now. will let you know shortly.
Ok...
Hi Randem,
When I look at my references in VB, the Crystal ActiveX ReportViewer Library 11.0 is there twice. I am emailing mylatest vbp file to you now. Please have a look. One of the I am able to unclick and the other says "Can't remove control or reference in use".
Why does stupid vb have the location for references at the bottom in a label and it isn't possible to view the entire location when it is quite long.:confused:
Getting back to my problem, when I ma in references and i give priority to the crystal library that is removable ********** shows the reference in the script without any "component not registered"
But if I give priority to the one that is unremovable, then ********** shows this in the script(the original issue):
please, please help.Code:; Unknown Component (Possibly not registered) - crviewer.dll - 11.0 - (crviewer.dll)
Try using this vbp in your project...
Also check you computer. I would believe you might have two files there. One in crviewer.dll
c:\windows\system32
and one in
C:\Program Files\Common Files\Business Objects\3.0\crystalreportviewers11\ActiveXControls\
Randem, I think the problem is coming in when I go to components and add the crystal activex report viewer library 11.0. I need this to use the reportviewer component on my forms.
yse, that's it. Once I add the component then it appears twice in references. what should i do.:confused:
Did you use the vbp I posted????
Stay on track...
Did you check like I asked in Post #54
yes i did randem. but the vbp file you posted gives errors because the viewer component dissapears from the forms. I've searched my c drive. I only have 1 of the dll's in:
Code:C:\Program Files\Common Files\Business Objects\3.0\crystalreportviewers11\ActiveXControls
this is the error in the form log files to be more specific:
that's because the component is not ticked.Code:Line 339: Class CrystalActiveXReportViewerLib11Ctl.CrystalActiveXReportViewer of control Cryst was not a loaded control class.
Well, in the vbp you sent me the Crviewer.dll is listed as a reference and a component which is to say the least strange. Now is the crviewer.dll registered?
How can you put a dll on a form????
Check to see if you have a crviewer.ocx on your system.
yes randem, this appears to be the problem. I don't have the crviewer.ocx on my system. should i re-install crystal??? what do you suggest
You say your system is working when you include this object in the components and the References in the IDE?
yes Randem, it works perfectly.
So you use it differently in two different places? Where exactly where you use it in the two different ways?
ok Ive removed it from references and only clicked in in components. Now it appears once in both. But when I re run ********** it shows:
Code:; Unknown Component (Possibly not registered) - crviewer.dll - 11.0 - (crviewer.dll)
We've already covered that several times... where in your app do YOU use it...
I use it on four different forms to view the reports.
Ok, now am I to guess which forms????
randem i am going to try to install the app with the crviewer.dll included now.
If it doesn't work without it why try to install it????
Do you mind telling me which forms???
i use it in frmViewJobCard, frmItemManager, frmViewOldNotes and frmViewTransportSchedule.
I don't see where you us it. Ase you saying that you drop a dll on the form and it acts like a control?
I can't see what you see since I don't have CR XI
no randem, once you add the crviewer under the components then it is added to the compnents toolbar as a control. it's like a report picture with a magnifying glass on it and I drag that onto the form.
Some good news. I included the crviewer.dll in my installation and it is working:D . just want to test something else quickly. will come back and update u. thanks s much for your help Randem. I no this thread went on and on but you still kept helping me. You are an installation God. Thank you very very much.:wave:
So you did what I stated in post #45? Remove the crviewer.dll from the unsafe file list?
yes randem. It also appears that I didn't need to tick the dll in references and components because if i only clicked it in components it gets added to references. thanks again randem Thanks for ********** also. It's an excellent product.:afrog:
Ok, so lets see this script as it stands now...
ok, this is the latest script:
[CODE]; ********** Version 7.3 Build 2
; Randem Systems, Inc.
; Copyright 2003-2007
; Website: http://www.***********
; Support: http://www.***********/cgi-bin/discus/discus.cgi
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
; Date: November 29, 2007
; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 7\VB 6 Redist Files\
; Visual Basic Project File (.vbp): E:\David\VBDev\Plant Maintenance\plant.vbp
; Inno Setup Script Output File (.iss): E:\David\VBDev\Plant Maintenance\Improved Script\release Release.iss
; Script Template Files (.tpl): C:\Program Files\Randem Systems\**********\********** 7\Templates\Release.tpl
; : C:\Program Files\Randem Systems\**********\********** 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 Internet Controls - (shdocvw.dll)
; Crystal Reports ActiveX Designer Run Time Library 11.0 - (craxdrt.dll)
; Crystal Reports ActiveX Designer Design and Runtime Library 11.0 - (craxddrt.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
; Microsoft ActiveX Data Objects 2.8 Library - (msado15.dll)
; --------------------------
; Components
; --------------------------
; Microsoft Winsock Control 6.0 (SP6) - (mswinsck.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
; Microsoft Windows Common Controls-2 6.0 (SP6) - (mscomct2.ocx)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (tabctl32.ocx)
; Microsoft FlexGrid Control 6.0 (SP6) - (msflxgrd.ocx)
[Setup]
AppId=Project1 Release
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
AppName=Project1
AppVerName=Project1 1.0.0
AppPublisher=Network Support
;-----------------------------------------------------------------------------------------------------
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName=YardMan
DefaultDirName={code:GetAppFolder}\YardMan
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,5.01
Compression=lzma
OutputBaseFilename=YardMan21100Release
[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\plant maintenance\scripting runtime\scripten.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: e:\david\vbdev\plant maintenance\scripting runtime\scr56en.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01; Tasks: ScriptingRuntime
Source: e:\david\vbdev\plant maintenance\opendb.dsn; DestDir: {app}; Flags: ignoreversion;
Source: e:\downloads\crystal merge module\crxi_rdc_redistribution\crxi_rdc_redistribution.msi; DestDir: {app}; Flags: ignoreversion;
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\mswinsck.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\tabctl32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\msflxgrd.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: e:\david\vbdev\plant maintenance\exe\yardman21.exe; DestDir: {app}; Flags: restartreplace sharedfile;
Source: E:\David\VBDev\Plant Maintenance\Icons\*.*; DestDir: {app}\Icons; Flags: ignoreversion
Source: E:\David\VBDev\Plant Maintenance\Reports\*.*; DestDir: {app}\Reports; Flags: ignoreversion
[INI]
Filename: {app}\YardMan21.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\Project1; Filename: {app}\YardMan21.exe; WorkingDir: {app}
Name: {group}\{cm:ProgramOnTheWeb, Project1}; Filename: {app}\YardMan21.url
Name: {group}\{cm:UninstallProgram, Project1}; 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}\YardMan21.exe; Description: {cm:LaunchProgram, Project1}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\YardMan21.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;
One problem... Remove this line
Source: e:\downloads\crystal merge module\crxi_rdc_redistribution\crxi_rdc_redistribution.msi; DestDir: {app}; Flags: ignoreversion;
There is no reason for you to have this in your installation twice...
will do. thanks again. ;)