Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: bibin98 on July 19, 2010, 03:17:12 PM

Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 03:17:12 PM
Hi admin,
 
I get some problem creating script using 10.3.
Before this, I installed 10.2.14 it works fine if I choose CR 11.5, but after I upgrade to 10.3 and I choose CR 11.5 then after I click CREATE SCRIPT, then the combobox change to CR10.
 
Thanx for help
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 03:21:28 PM
Aloha bibin98,
 
The reason it changes to CR 10 is because InnoScript determines that the version of CR you have in your VB6 project is 10 or 10.5. There may need to be an override for those cases where you might want to install something other than what you have included in your project.
 
Check your CR references for the version of CR you are using. Let me know what you find.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 03:31:09 PM
Hi randem,
 
I think the problem is not that because I only install CR8.5 and CR11.5 in my PC and I don't have CR10, so I confused why it changes to CR 10?
 
In Project -> References, it used CR Active X Report Viewer Library 11.5 and CR Active X Designer Design and Runtime Library 11.5
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 03:33:29 PM
Ok in that case it may be an error I will check it out and let you know.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 03:41:32 PM
OK thx for help....
 
Btw if I used old version 10.2.xx it works fine, the combobox Crystal Reports didn't automatically change to CR10, it's exactly the same with my option (If I choose CR11.5 then InnoScript automatically include file CRXI_5_RDC_Redistribution.msi in my script, if I choose CR8.5 then InnoScript automatically include file CR85_RDC_Redistribution.msi)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 03:43:55 PM
Yes, I know. It was meant to be an improvement but it needs an override...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 03:49:01 PM
OK thanx a lot.... I am glad that InnoScript is more to take an easy way to creating installer. I'll be waiting for the next update on InnoScript especially on detecting CR version ... Keep moving randem ....
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 04:33:31 PM
Here is a version that should correct the issue you reported. It has other correction/changes also for the next version. Let me know if this is helpful. Unzip this file and replace your InnoScript file with this one (make backup of your file first).
 
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 05:22:56 PM
I have try the file update, and in the last process apeear MsgBox 13 - GenerateFileInformation() Type mismatch
 
The CRXI_5_RDC_Rdistribution.msi is successfully added in my script, but now combobox change to CR11.5 .NET
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 05:30:13 PM
That is what you want, correct? Not the error message but the functionality, yes?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 05:35:00 PM
Hmm actually yes buat there is another file not found..  
ETC-1-0-12-3.DLL
EBUS-3-3-2-4.DLL
LIBOCAHELPERW-2-13.DLL
FSSL-1-2-1-1.DLL
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 05:38:45 PM
These are the script:
 
[Files]
Source: D:Project VBGohoCRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
 
 
[Run]
Filename: msiexec.exe; Parameters: /package CRXI_5_NET_Redistribution.msi /passive /promptrestart /l* {tmp}crmsilog.txt; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation
 
I wonder why it detect a different version, I use CR11.5 not CR11.5 .NET
 
In the [Files] Section it is correct CR11.5, but in the [Run] section it change to CR11.5 .NET
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 05:43:54 PM
A file? You list four files... If so then just add those files to the unsafe.fil list and InnoScript will not pick them up again. When was the last time your unsafe.fil was updated? I have included the newest one with the updated InnoScript file that should eliminate the case of the problem that generated the error message.
 
Check the references and components listing in the beginning of the script to see what you have checked to be included in your project. Post that part of the script...
 
 
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 06:07:58 PM
I still have problems. CR is still detecting 11.5 .NET version, not 11.5
 
; ------------------------
;        References
; ------------------------
 
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBind.dll)
; Microsoft SQLDMO Object Library - (sqldmo.dll)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (msstdfmt.dll)
; Crystal Reports ActiveX Designer Design and Runtime Library 11.5 - (craxddrt.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; ComponentOne True DBDate 8.0 - (tidate8.ocx)
; Data Dynamics ActiveBar 2.0 - (Actbar2.ocx)
; ComponentOne Sizer/Tab Controls 8.0 - (c1sizer.ocx)
; ComponentOne True DBContainer3D 8.0 - (ticon3d8.ocx)
; ActiveSplash 1.0 Type Library - (actsplash.ocx)
; ComponentOne True DBNumber 8.0 - (tinumb8.ocx)
; Crystal ActiveX Report Viewer Library 11.5 - (CRViewer.dll)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; ComponentOne True DBGrid Pro 8.0 (OLEDB) - (todg8.ocx)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; ComponentOne True DBList Pro 8.0 (OLEDB) - (todl8.ocx)
; FindButton by Bibin - (FindButton.ocx)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 06:09:55 PM
Ok, let me check that.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 06:13:59 PM
Ok, now if you choose 11.5 (not the .NET version) Does InnoScript change it back to .NET?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 19, 2010, 06:21:58 PM
Yes, if I choose CR11.5, it always back to 11.5 .NET
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 19, 2010, 07:06:44 PM
Ok, try this version.
 
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 20, 2010, 09:02:47 PM
Sorry the support site has been down for a few days... But here is a newer version that should be more to where you need it to be.
 
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 21, 2010, 01:57:22 AM
Bravo fot the new updates .... InnoScript now can detect CR11.5 correctly.
 
But I have a question:  
1. Why InnoScript 10.2.13 detects 4 files not found? If I use InnoScript 10.2.14 is not showing that problem. I think these files are dependence with CR11.5 and maybe if I installed in client maybe an error shows.
 
ETC-1-0-12-3.DLL
EBUS-3-3-2-4.DLL
LIBOCAHELPERW-2-13.DLL
FSSL-1-2-1-1.DLL
 
Thanks in advance.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 21, 2010, 08:11:45 AM
Can't answer that question without more information. Did you update your Unsafe.fil file to the latest version?
 
What file is InnoScript stating that these files are dependencies of? Check the Dependencies tab and the run log.
 
Some files that are reported as dependencies are never used and those files will never need to be deployed. Sometimes the names are left over from development work that were never removed. But they are never called either.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 21, 2010, 06:40:39 PM
Dear randem,
What I am confused is why the newer InnoScript can detect these 4 files?
ETC-1-0-12-3.DLL
EBUS-3-3-2-4.DLL
LIBOCAHELPERW-2-13.DLL
FSSL-1-2-1-1.DLL  
 
If I used the older version of InnoScript it's OK without changing UnSafe.fil
 
 
Regards,
B*N
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 21, 2010, 06:42:46 PM
Well, that is progress... What exactly are you worried about? I explained that you don't need those files and why you don't need them.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 21, 2010, 07:00:32 PM
BTW: You will also need this file for the version of InnoScript that I gave you. Place it in the same folder where you placed the exe file.
 
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 21, 2010, 07:55:17 PM
OK thanks for the information... That helps me a lot ...
 
Ohhh if I don't need those 4 files then I just added more line in Unsafe.fil right? Hehehe...  
 
Btw, InnoSetupKeywords.fil is what for? Can I get the example how to use it?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 21, 2010, 07:56:50 PM
Yes, just add them to the UnSafe.fil, that is why it is there.
 
You don't use the InnoSetupKeyWords.fil. InnoScript uses it...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 21, 2010, 09:42:17 PM
OK thanks a lot Mr. Randem for the support... bravo InnoScript!!
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 21, 2010, 09:44:27 PM
My Pleasure!  
 
Thank you for reporting this issue.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 05:21:58 PM
I'll be waiting for the next InnoScript installer release update... Viva InnoScript
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 22, 2010, 05:50:43 PM
It was released this morning...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 07:14:51 PM
woooww.... coolll  
 
the new version have been released  
 
Vivaaaa InnoScript !!
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 07:16:34 PM
Is the release version is the same with my version?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 22, 2010, 07:17:37 PM
Yes
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 07:22:56 PM
 coooolll  I am the first man who have it first before the other people download the release one heheheh
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 22, 2010, 07:24:53 PM
That's the way it happens around here. When people report problems that get corrected and they test them they get first dibs...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 09:05:38 PM
 yes you right....
 
I appreciate to you Mr Randem for your support in developing and correcting the bugs very fast ... It helps me a lot in creating installer more simple and fast. Btw, actually it still a problem when I installing on target computer but I will post it to u soon for bug fixed.
 
Keep moving bro....
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 09:13:30 PM
Btw, may I suggest to include the HELP file offline with InnoScript in the next release cause it difficult to learn InnoScript feature and parameters if I have to connect internet to see online documentation.
 
Thx.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 22, 2010, 09:15:04 PM
The help is included offline. Look under the HELP menu... Documentation
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 09:21:42 PM
 ok then sorry I don't realize the Documetation... Maybe it can be more specific example like capturing the form or more detail explanation about each menu or keyword parameter.
 
Thx
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 22, 2010, 09:23:54 PM
Capturing the form??? What exactly do you mean?
 
The Inno Setup keywords are from Inno Setup's Help Documentation. No need to explain them twice...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 22, 2010, 09:37:12 PM
I mean by capturing form is capturing the InnoScript how to fill the entry, especially if I want to add manually External Installs how to understand to fill each textbox and InnoSetup keyword like Flags: skipifdoesntexist what it means, etc)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 22, 2010, 09:57:19 PM
Yes, the documentation hasn't caught up with development yet. About the flags... They are Inno Setup parameters and they are best found in the Inno Setup documentation for explanation.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 05:02:22 PM
Hi randem, I want to report more about error messages while creating script. I attached the JPG file, it seems error from SQL Server 2000 about language independent and I don't know why it appears(https://randemsystems.support/discus/messages/12/9886.jpg)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 25, 2010, 05:06:28 PM
InnoScript does not use SQL Server or any database for that fact. That error must have something to do with an issue on your system. That error looks like SQL Server is trying to start and the .rll files are not registered.
 
Are you using your development system as a test installation system?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 05:40:41 PM
Yes, I was using my CPU as a test installation system too. It's not allowed?
 
Then I have to test the installation software to another clean CPU?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 25, 2010, 05:48:35 PM
You should NEVER use your development system as a test system. The whole point of testing is to make sure your app works in a virgin environment that has nothing it needs installed already. In that wy you will find out if you have deployed all that you need for your app to run. Also if you mess up and deploy something you should not have you will not mess up your current system.
 
If you are going to use your development box as a test box then you should run  Virtual PC 2007 SP1 (http://www.microsoft.com/downloads/details.aspx?FamilyID=28c97d22-6eb8-4a09-a7f7-f6c7a1f000b5&displaylang=en) from Microsoft to create a virgin environment that you can make clean each time you test. All you need to do is to create a test environment then zip it. After you use the test environment and need to return to a clean system all you need to do is unzip the clean environment and you have a clean PC.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 06:02:30 PM
OK thanx.... I will try install VirtualPC
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 06:21:44 PM
How do I find Boot file name in VirtualPC 2007?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 25, 2010, 06:22:34 PM
What do you mean Boot File?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 07:09:02 PM
I can't booting WindowsXP in VirtualPC 2007, error is below attached(https://randemsystems.support/discus/messages/12/9889.jpg)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 25, 2010, 07:11:41 PM
Did you tell Virtual PC 2007 to use your CD drive to boot from?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 07:25:54 PM
Where can I do that to use my CDROM as bootable?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 25, 2010, 07:31:39 PM
From the main menu CD->Use Physical Drive...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 07:36:12 PM
Ohh... it means that first step I have to install XP using ISO? I thought that VirtualPC already have VFD files that contain fresh OS'es... hehe OK right now, I already install XP on my virtual PC
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 10:42:12 PM
I have installed XP on VirtualPC and I also installed my installer created by InnoScript, but in the last of process appears error message like this
(https://randemsystems.support/discus/messages/12/9895.jpg)
 
 
 
 
I used ComponentOne ActiveX in my VB6 Project
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 10:50:35 PM
(https://randemsystems.support/discus/messages/12/9902.jpg)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on July 25, 2010, 10:56:36 PM
This is messagebox that appears in the last installation :
 
(https://randemsystems.support/discus/messages/12/9906.jpg)
 
 
I used ComponentOne but only a few OCX's error at installation (date, number and container OCX)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on July 26, 2010, 05:30:02 AM
When showing the error messages, it would be prudent to show what caused the errors so that I can determine what the errors are from. Post your script and details about your Clean Virtual Machine.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 02, 2010, 04:48:22 AM
Hi randem, sorry taking so long to reply the message...
 
Below I described my system:
1. I am running XP SP3
2. VB6   SP6
3. SQL Server 2000   SP4
4. ComponentOne ActiveX 2007
5. CR 11.5
 
And this is my InnoScript:
; InnoScript Version 10.3  Build 0
; Randem Systems, Inc.
; Copyright (c) 2002 - 2010, Randem Systems, Inc.
; Website:  https://randemsystems.com (https://randemsystems.com)
; Support:  https://randemsystems.support (https://randemsystems.support)
; OS: Windows XP 5.1 build 2600 (Service Pack 3)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.3.9 (a)
; Installed Inno Setup Version: 5.3.9 (a)
 
; Local Machine Settings. Use these settings as a template for your installation folders
 
; {app}           : C:\Program Files\Randem Systems\InnoScript
; {appdata}       : C:\Documents and Settings\Administrator\Application Data\Randem Systems\InnoScript\
; {localappdata}  : C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\
; {cf}            : C:\Program Files\Common Files\Randem Systems
; {tmp}           : C:\Documents and Settings\Administrator\Local Settings\Temp\
; {commonappdata} : C:\Documents and Settings\All Users\Application Data\Randem Systems\InnoScript\Release\
; {pf}            : C:\Program Files\
 
; Date: July 18, 2010
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   G:\Project VB\Goho\PrGoho.vbp
; Inno Setup Script Output File (.iss):   G:\Project VB\Goho\Scripts\PrGoho 1.0.0 Release.iss
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Crystal Reports.tpl
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Release.tpl
 
; ------------------------
;        References
; ------------------------
 
; OLE Automation - (stdole2.tlb)
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft SQLDMO Object Library - (sqldmo.dll)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (MSSTDFMT.DLL)
; Crystal Reports ActiveX Designer Design and Runtime Library 11.5 - (craxddrt.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; ComponentOne True DBDate 8.0 - (tidate8.ocx)
; Data Dynamics ActiveBar 2.0 - (Actbar2.ocx)
; ComponentOne Sizer/Tab Controls 8.0 - (c1sizer.ocx)
; ComponentOne True DBContainer3D 8.0 - (ticon3d8.ocx)
; ActiveSplash 1.0 Type Library - (actsplash.ocx)
; ComponentOne True DBNumber 8.0 - (tinumb8.ocx)
; Crystal ActiveX Report Viewer Library 11.5 - (CRViewer.dll)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; ComponentOne True DBGrid Pro 8.0 (OLEDB) - (todg8.ocx)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; ComponentOne True DBList Pro 8.0 (OLEDB) - (todl8.ocx)
; FindButton by Bibin - (FindButton.ocx)
 
 
[Setup]
SetupLogging=Yes
AppId=Gordyn House  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=Gordyn House 1.0.0
AppVerName=Gordyn House  
AppPublisher=Gordyn House
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=yes
DefaultGroupName=Performance Edition Dec 2009\Gordyn House  
DefaultDirName={pf}\Gordyn House  
PrivilegesRequired=None
MinVersion=0,5.01
Compression=lzma
OutputBaseFilename=PrGoho0100000Release
 
[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: AutoOSUpdater; Description: Install Support for Database Operations; GroupDescription: Install Database Support:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
Name: ScriptingRuntime; Description: Install Microsoft's Scripting Runtime; GroupDescription: Install Scripting Runtime:
 
[Files]
Source: G:\Project VB\Goho\Report\*.*; DestDir: {cf}\Performance Edition Dec 2009\Report\; Flags: ignoreversion recursesubdirs
Source: C:\WINDOWS\system32\tidate8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Common Files\Data Dynamics\ActiveBar2\Actbar2.ocx; DestDir: {cf}\Data Dynamics\ActiveBar2\; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\c1sizer.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\ticon3d8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\actsplash.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\tinumb8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqldmo.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\scripten.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\scr56en.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01; Tasks: ScriptingRuntime
Source: C:\WINDOWS\system32\todg8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\Comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\todl8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\FindButton.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: G:\Project VB\Goho\PrGoho.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;  
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: G:\Project VB\Goho\UareUSDKDB.mdb; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\Background.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\Config.lic; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\dugo.spl; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\MXOTDLL.DLL; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\OSL_DLL_DLINK.dll; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\toolbar.tb2; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\UareUSDK.dll; DestDir: {app}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\SQLRESLD.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\SQLSVC.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRTOWORDS_EN.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\UFMANAGER.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\QUERYBUILDER.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CHARTUI.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRANALYZER.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDB_DICTIONARY.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\WINDOWS\Crystal\CRXF_PDF.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\WINDOWS\Crystal\CRXF_RTF.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_WORDW.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_XLS.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\WINDOWS\Crystal\U2FXML.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDEPLOY.REG; DestDir: {app}; Flags:  ignoreversion;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\PARAMETERDESIGNER.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRLOV.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86\XERCES-C_2_1_0.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\W95SCM.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\dbghelp.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\CRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
 
[INI]
 
[Icons]
Name: {group}\PrGoho ; Filename : {app}\PrGoho.exe; WorkingDir: {app}
Name: {group}{cm:UninstallProgram, PrGoho }; Filename: {uninstallexe}
Name: {commondesktop}\PrGoho ; Filename: {app}\PrGoho.exe; Tasks: Desktopicon ; WorkingDir: {app}
 
[Run]
Filename: {tmp}\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: AutoOSUpdater
Filename: msiexec.exe; Parameters: /package CRXI_5_RDC_Redistribution.msi /passive /promptrestart /l* {tmp}\crmsilog.txt; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation
Filename: {tmp}\scripten.exe; Parameters: /r:n /q:a; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: ScriptingRuntime
; Register the Crystal Reports Merge Module components that need to be registered in place where the Merge Modules installed them
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!F62B9FA4-455F-4FE3-8A2D-205E4F0BCAFB@\b.5}{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!F62B9FA4-455F-4FE3-8A2D-205E4F0BCAFB@\b.5}\; StatusMsg: Registering Crystal ActiveX Report Viewer Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!4FB2D832-C996-4EB1-BE0D-4DE953CF25F0@\11.5.0.313}{code:LogFileName|craxddrt.dll}; WorkingDir: {code:GetCLSIDFldr|!4FB2D832-C996-4EB1-BE0D-4DE953CF25F0@\11.5.0.313}\; StatusMsg: Registering Crystal Reports ActiveX Designer Design and Runtime Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|sacommoncontrols.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Analysis Common Controls 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|saxmlserialize.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Analysis XML Serialization Type Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|sacommlayer.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Analysis Communication Layer Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|prompt.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Reports Prompting 1.0 Type Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {app}\PrGoho.exe; Description: {cm:LaunchProgram, PrGoho }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}
 
[UninstallDelete]
Type: dirifempty; Name: {app}
 
[InstallDelete]
Type: files; Name: {app}\Install.log;
 
 
 
[Comments]
 
 Template Processing first character indicators usage.
 
         No Indicator      Attempt replacement if cannot replace then add the line
          Plus Sign      Force addition of template line into script (no attempted replacement).
  ;      Semi-colon      Add line as a comment only. (No attempted replacement).
  -      Minus Sign      Delete the line. (No attempted replacement).
  &      Ampersand      Comment the line. (No attempted replacement).
 
 
[Code]
 
//============================================================================
// Get the CLSID from the registry for the queried file to locate where this file was installed by the CR merge module
// We do this so that we know where to register the file after installation.
//============================================================================
 
function GetCLSIDFldr(Param: String): String;
var
  Location: String;
  CSLID: String;
  LogFile: String;
  sStr: String;
begin
  CSLID := Param;
  StringChangeEx(CSLID, '!', '{', True);
  StringChangeEx(CSLID, '@', '}', True);
 
  LogFile := ExpandConstant('{app}')   '\Install.log';
  SaveStringToFile(LogFile, #13#10   CSLID   #13#10, True);
 
  if not RegQueryStringValue(HKEY_CLASSES_ROOT, 'TypeLib\'   CSLID   '\0\win32','', Location) then
     Result := 'Not Registered !!!'   #13#10   'Possible Wrong Crystal Reports Version Installed on Source Machine or '   #13#10   'Wrong CRystal Reports Merge Module Installed on Target Machine'   #13#10;
     
  begin
    Location := ExpandConstant(Location)
    sStr := #13#10   Location   #13#10   StringOfChar('*',70)   #13#10
    SaveStringToFile(LogFile, sStr, True);
    Result := ExtractFileDir(Location);
  end;
end;
 
//-----------------------------------------------------------------------------------------------------------------
// Log the filename process to a log file  
//-----------------------------------------------------------------------------------------------------------------
 
function LogFileName(Filename: String): String;
var
  LogFile: String;
  sSTr: String;
begin
  LogFile := ExpandConstant('{app}')   '\Install.log';
  sStr := #13#10   'Registering '   Filename   #13#10;
  SaveStringToFile(LogFile, sStr, True);
  Result := Filename;
end;
 
//============================================================================
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 04:58:57 AM
OK, Download the new version of InnoScript (Version 10.2 Build 3) and the latest version of VB_VC_DCOM_MDAC_JET_AutoSetup.exe There has been some changes to correct some issues.
 
InnoScript will now handle SQLDMO installation and VB_VC_DCOM_MDAC_JET_AutoSetup.exe will install the VC Runtime files without the error.
 
The other issue in your script is the ComponentOne files. Since you are taking these files from your Windows System folder (which is a no-no) they might not be redistributable or may need a seperate file to register them. See what ComponentOne says about this.
 
Also look at the dependency list connected with those ComponentOne files to see what other files are required for it to work.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 05:16:13 AM
Here is something I found about True Grid DB
 
 
http://bbs.ok800.net/thread-1920-1-1.html (http://bbs.ok800.net/thread-1920-1-1.html)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 05:24:33 AM
Just as I thought ComponentOne uses C1REGSVR.EXE to register those files which will not register with MS's RegSvr32.exe. You will need to find this file from ComponentOne and register the files with it.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 02, 2010, 07:01:58 PM
OK thanks for the info....
 
I wonder that InnoScript can handle to register ComponentOne uses C1REGSVR.EXE? Can u tell me how to do it automatically using InnoScript?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 02, 2010, 07:13:45 PM
I have some question, which version that I have to install: InnoScript 10.3 Build 3 or InnoScriptUpdateInstall? Or I need to install both of them? Which one that I have to install first?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 08:01:53 PM
You install either one they are basically the same. Once you have InnoScript installed all you need is the update but re-installing InnoScript will not hurt either.
 
There is no automatic way for InnoScript to install those file. You would either have to use a template with the files in it the way you want and InnoScript can automatically add the template to your script (the easiest way). Or you can add the files and commands in the External Install Tab.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 02, 2010, 08:59:40 PM
How can I use a template with the files in the External Install Tab? Can u give me an example 4 me? thanks
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 09:01:29 PM
Here is one example of what to include in a template that will include the files when you include the template with your InnoScript project:
 
[Run]
Filename: {app}Programsc1regsvr.exe; Parameters: /u olch2x7.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
 
 
BTW: External Installs Tab and Template Tab are two different things
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 02, 2010, 09:35:09 PM
How can I create a template? TPL file? I just copy that script in my TPL file?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 09:55:24 PM
A template file is nothing more that a text file that have one or more Inno Setup sections in it that will be merged into the created script.
 
Use notepad to create the .tpl file then tell InnoScript where to find it using the Template tab. Upon the next run of InnoScript the template will be incorporated into the new script.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 02, 2010, 10:08:22 PM
OK thanks for the info....
[Run]
Filename: {app}Programsc1regsvr.exe; Parameters: /u olch2x7.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs  
 
I have several questions:
What means by {app}Programs? My c1regsvr.exe in C:Program FilesComponentOne StudioChart8Bin, so what i have to do?
 
And what is WorkingDir: {app}Programs
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 10:15:37 PM
You have to change the paths to point to the location on your machine where the files are located...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 02, 2010, 11:48:39 PM
OK thanks a lot for the info.... I'll try it..
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 02, 2010, 11:50:51 PM
Let me correct something there, In the [Run] Section you have to use the location where you installed the files on the target machine...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 03, 2010, 10:01:56 PM
Ohh... I thought the file in my CPU.
 
Then it means that I have to include file c1regsvr.exe in the InnoScript? so I can register it after the OCX's installed on the target machine?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 03, 2010, 10:09:24 PM
That is correct. c1regsvr.exe is a ComponentOne file NOT a Windows System file.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 03, 2010, 10:13:25 PM
[Run]
Filename: {pf}ComponentOne StudioChart8Binc1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
Filename: {pf}ComponentOne StudioChart8Binc1regsvr.exe; Parameters: /u ticon3d8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
Filename: {pf}ComponentOne StudioChart8Binc1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
 
 
3 files above is in red color. Where I make a mistakes?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 03, 2010, 10:16:51 PM
If you put those lines in a template the color you see is not red but a shade of red. Look carefully or you can change the color of added lines from the main menu.
 
Also is {pf}ComponentOne StudioChart8Bin where you are installing c1regsvr.exe?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 03, 2010, 10:33:27 PM
c1regsvr.exe is in my folder C:\Program Files\ComponentOne Studio\Chart8\Bin
 
Then I have to use Add Files Tab to insert c1regsvr.exe?
 
Is it right to change the Filename and Working Dir to C:\Program Files\ComponentOne Studio\Chart8\Bin?
 
I have tried and in the last installation, error occurs
 
(https://randemsystems.support/discus/messages/12/9909.jpg)
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 03, 2010, 10:37:23 PM
Yes, but did you remove the regserver flag from those files that are going to be registered by c1regsvr.exe. You can't register those files in the conventional way, that is why you need the lines in the [Run] section.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 03, 2010, 11:01:05 PM
I am confused... heheh... can u help me?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 03, 2010, 11:13:45 PM
You have to give me some idea of where you are confused?
 
Each file in the [Run] section that is being registered with c1regsvr.exe you will revove regserver from the line in the [Files] section the same file that is being registerd by c1regsvr.exe
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 03, 2010, 11:17:38 PM
It would actually be best to copy those lines in the [Files] section of those files to the template and remove the regserver flag from the line there. InnoScript will replace the lines with the ones from the template each time you create a new script.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 03, 2010, 11:19:09 PM
This is my script:
 
; InnoScript Version 10.3  Build 3
; Randem Systems, Inc.
; Copyright (c) 2002 - 2010, Randem Systems, Inc.
; Website:  https://randemsystems.com (https://randemsystems.com)
; Support:  https://randemsystems.support (https://randemsystems.support)
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.3.10 (a)
; Installed Inno Setup Version: 5.3.10 (a)
 
; Local Machine Settings. Use these settings as a template for your installation folders
 
; {app}           : C:\Program Files\Randem Systems\InnoScript
; {appdata}       : C:\Documents and Settings\Administrator\Application Data\Randem Systems\InnoScript\
; {localappdata}  : C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\
; {cf}            : C:\Program Files\Common Files\Randem Systems
; {tmp}           : C:\Documents and Settings\Administrator\Local Settings\Temp\
; {commonappdata} : C:\Documents and Settings\All Users\Application Data\Randem Systems\InnoScript\Release\
; {pf}            : C:\Program Files\
 
; Date: August 04, 2010
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   D:\Project VB\RajaPaksi\PrRajaPaksi.vbp
; Inno Setup Script Output File (.iss):   D:\Project VB\RajaPaksi\Scripts\PrRajaPaksi 1.0.0 Release.iss
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Crystal Reports.tpl
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Release.tpl
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\ComponentOne.tpl
 
; ------------------------
;        References
; ------------------------
 
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBind.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; Data Dynamics ActiveBar 2.0 - (Actbar2.ocx)
; Crystal Report Control - (Crystl32.OCX)
; ComponentOne True DBGrid Pro 8.0 (OLEDB) - (todg8.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; FindButton by Bibin - (FindButton.ocx)
; ActiveSplash 1.0 Type Library - (actsplash.ocx)
; ComponentOne True DBDate 8.0 - (tidate8.ocx)
; ComponentOne True DBList Pro 8.0 (OLEDB) - (todl8.ocx)
; ComponentOne True DBNumber 8.0 - (tinumb8.ocx)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (tabctl32.ocx)
 
 
[Setup]
SetupLogging=Yes
AppId=RajaPaksi  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=RajaPaksi 1.0.0
AppVerName=RajaPaksi  
AppPublisher=DarkOS
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=yes
DefaultGroupName=DarkOS\PrRajaPaksi  
DefaultDirName={pf}\DarkOS\PrRajaPaksi 1  
PrivilegesRequired=None
MinVersion=0,5.01
Compression=lzma
OutputBaseFilename=PrRajaPaksi0100000Release
 
[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: AutoOSUpdater; Description: Install Support for Database Operations; GroupDescription: Database Support:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
 
[Files]
Source: D:\Project VB\RajaPaksi\Report\*.*; DestDir: {app}\Report\; Flags: ignoreversion recursesubdirs
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\CR85_RDC_Redistribution.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: D:\Project VB\RajaPaksi\Toolbar.tb2; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\RajaPaksi\Administrator.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\RajaPaksi\config.lic; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\RajaPaksi\RajaPaksi.spl; DestDir: {app}; Flags:  ignoreversion;  
Source: C:\Program Files\ComponentOne Studio\Chart8\Bin\c1regsvr.exe; DestDir: {app}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Common Files\Data Dynamics\ActiveBar2\Actbar2.ocx; DestDir: {cf}\Data Dynamics\ActiveBar2\; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\todg8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\MSCOMCTL.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\Comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\FindButton.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\actsplash.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\tidate8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\todl8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\tinumb8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\MSBind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\tabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\PrRajaPaksi\PrRajaPaksi.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\MSSTDFMT.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
 
[INI]
Filename: {app}\PrRajaPaksi.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\PrRajaPaksi ; Filename : {app}\PrRajaPaksi.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, PrRajaPaksi }; Filename: {app}\PrRajaPaksi.url; IconFilename: {app}\PrRajaPaksi.ico
Name: {group}{cm:UninstallProgram, PrRajaPaksi }; Filename: {uninstallexe}
Name: {commondesktop}\PrRajaPaksi ; Filename: {app}\PrRajaPaksi.exe; Tasks: Desktopicon ; WorkingDir: {app}
 
[Run]
Filename: {tmp}\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: AutoOSUpdater
Filename: {tmp}\CR85_RDC_Redistribution.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation
; Register the Crystal Reports Merge Module components that need to be registered in place where the Merge Modules installed them
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!00025600-0000-0000-C000-000000000046@\8.0.0.4}{code:LogFileName|crystl32.ocx}; WorkingDir: {code:GetCLSIDFldr|!00025600-0000-0000-C000-000000000046@\8.0.0.4}\; StatusMsg: Registering Crystal Report Control; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {app}\PrRajaPaksi.exe; Description: {cm:LaunchProgram, PrRajaPaksi }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}
Filename: {app}\c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: C:\WINDOWS\system32
Filename: {app}\c1regsvr.exe; Parameters: /u ticon3d8.ocx; Flags: skipifdoesntexist; WorkingDir: C:\WINDOWS\system32
Filename: {app}c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: C:\WINDOWS\system32
 
[UninstallDelete]
Type: files; Name: {app}\PrRajaPaksi.url
Type: dirifempty; Name: {app}
 
[InstallDelete]
Type: files; Name: {app}\Install.log;
 
 
 
[Comments]
 
 Template Processing first character indicators usage.
 
         No Indicator      Attempt replacement if cannot replace then add the line
          Plus Sign      Force addition of template line into script (no attempted replacement).
  ;      Semi-colon      Add line as a comment only. (No attempted replacement).
  -      Minus Sign      Delete the line. (No attempted replacement).
  &      Ampersand      Comment the line. (No attempted replacement).
 
 
[Code]
 
//============================================================================
// Get the CLSID from the registry for the queried file to locate where this file was installed by the CR merge module
// We do this so that we know where to register the file after installation.
//============================================================================
 
function GetCLSIDFldr(Param: String): String;
var
  Location: String;
  CSLID: String;
  LogFile: String;
  sStr: String;
begin
  CSLID := Param;
  StringChangeEx(CSLID, '!', '{', True);
  StringChangeEx(CSLID, '@', '}', True);
 
  LogFile := ExpandConstant('{app}')   '\Install.log';
  SaveStringToFile(LogFile, #13#10   CSLID   #13#10, True);
 
  if not RegQueryStringValue(HKEY_CLASSES_ROOT, 'TypeLib\'   CSLID   '\0\win32','', Location) then
     Result := 'Not Registered !!!'   #13#10   'Possible Wrong Crystal Reports Version Installed on Source Machine or '   #13#10   'Wrong CRystal Reports Merge Module Installed on Target Machine'   #13#10;
     
  begin
    Location := ExpandConstant(Location)
    sStr := #13#10   Location   #13#10   StringOfChar('*',70)   #13#10
    SaveStringToFile(LogFile, sStr, True);
    Result := ExtractFileDir(Location);
  end;
end;
 
//-----------------------------------------------------------------------------------------------------------------
// Log the filename process to a log file  
//-----------------------------------------------------------------------------------------------------------------
 
function LogFileName(Filename: String): String;
var
  LogFile: String;
  sSTr: String;
begin
  LogFile := ExpandConstant('{app}')   '\Install.log';
  sStr := #13#10   'Registering '   Filename   #13#10;
  SaveStringToFile(LogFile, sStr, True);
  Result := Filename;
end;
 
//============================================================================
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 03, 2010, 11:27:39 PM
Copy these lines to the template under the [Files] Section
 
 
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;  
 
I don't see where you are deploying ticon3d8.ocx, but you have it in the [Run] section.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 03, 2010, 11:45:03 PM
Yes indeed, my ticon3d8.ocx is'nt used anymore but I added it in TPL hehehe, I have updated it.
 
Thanks
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 02:42:23 PM
This is my Templates file, I save it using ComponentOne.tpl :
 
[Run]
Filename: {app}c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: C:WINDOWSsystem32
Filename: {app}c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: C:WINDOWSsystem32
 
Is it correct? I confused in WorkingDir should I write C:WINDOWSsystem32 OR {sys}?
 
Thx
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 02:45:04 PM
Your WorkingDir should be {app}
 
What about the lines I told you to add to the template???
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 02:51:11 PM
Ohh... you mean these ones should I add on the top lines of [Run] Section?
 
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 02:54:58 PM
Yes... Well, add in front of the [Run] Section
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 03:12:19 PM
This is my ComponentOne.tpl :
 
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;  
 
[Run]
Filename: {app}c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
Filename: {app}c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
 
Is it correct?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 03:15:58 PM
Yes... But you really should not deploy the files from the system folder you may get into trouble down the line as I already suggested.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 03:44:30 PM
Ohhhh... then I should change the DestDir to: {app} right? Cause I want to install it in Windows 7 Home Basic
 
 
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 04:25:03 PM
Not necessarily... If you were doing a WinSxS installation you probably should but the destination {sys} is fine in this case.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 04:30:58 PM
what is WinSxS? I don't understand between Release, None, Update, WinSxS
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 05:19:13 PM
WinSxS is an installation that does not need to register any dll/ocx and creates a manifest file that the application uses to access those files. In this type of installation all dll/ocx files that the application needs would be deployed to the {app} folder and the application would find them there when it needs them. This type of installation is used so that if the user has another installation of components you are deploying your application would not interfere with the operation of those program that use a different version of those files.
 
The other installation types are just preferences. You are installing a Release for your application or an Update and that name will appear on the exe created by the script so that you can track what you are doing if you create multiple installation types.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 06:32:19 PM
hmmm.... I think that WinSxS is more comfortable in whatever OS'es right? But if I choose WinSxS and what happen to my DLL or OCX that needs to register? my application might not working smoothly?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 06:37:26 PM
I can't click WinSxS button.... why it is happen?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 06:42:47 PM
You can't just click WinSxS to get a WinSxS Deployment (as in the manual). It is best if you get you application to work in regular mode first because when you have trouble creating the WinSxS deployment you will know that the application works and possibly where to make the corrections...
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 06:54:20 PM
okay.... thanks for the info.... I have success instaling in Windows 7, ComponentOne also success.
 
I have one question, how can I install MSDE and also attaching the database automatically using InnoScript?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 07:57:41 PM
You would need to install the MSDE Engine using the MSDE installation. You can just add the database files to your installation
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 08:50:55 PM
How can I attach database after the end of installation? Looks like needs more script in MSDE and can InnoScript handle it in external installs?
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: Randem on August 04, 2010, 09:30:06 PM
That is beyond the scope of InnoScript. You would need to research MSDE to see if it can be done via code. If so then you may be able to write a program to do what you want and run that after you run the MSDE installation. It is your app connects to the MSDE database so that should not be an issue.
Title: Why 10.2.14 better than 10.3 if using CR 11.5
Post by: bibin98 on August 04, 2010, 09:48:36 PM
OK thanx for the info.... I guess all my problems already solved in this topic... Thank you randem!! Viva InnoScript!!