Invalid parameter

Started by Bibin, March 07, 2016, 04:35:53 AM

Previous topic - Next topic

Bibin


Randem

Hi jazzfantasy2003@yahoo.com,

Just remove the 6. The value comes from the registry and is unimportant.

BTW: You should not use your email address as your user name. you will get spam bot pulling the email address from the thread...

Bibin

; InnoScript Version 11.5  Build 8
; Randem Systems, Inc.
; Copyright (c) 2002 - 2014, Randem Systems, Inc.
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support/
; OS: Windows NT 6.1 build 7601 (Service Pack 1)

; Derived from VB VBP Project File

; Designed for Inno Setup Version: 5.5.8 (a)
; Installed Inno Setup Version: 5.5.8 (a)

; Date: March 07, 2016

; Local Machine Settings. Use these settings as a template for your installation folders

; {app}           : C:\Program Files\Randem Systems\InnoScript
; {appdata}       : C:\Users\yulia\AppData\Roaming\Randem Systems\InnoScript\
; {localappdata}  : C:\Users\yulia\AppData\Local\Randem Systems\InnoScript\
; {cf}            : C:\Program Files\Common Files\Randem Systems
; {tmp}           : C:\Users\yulia\AppData\Local\Temp\
; {commonappdata} : C:\ProgramData\Randem Systems\InnoScript\Release\
; {pf}            : C:\Program Files\

;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript 11\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   D:\ProjectVB\HandyBilly\myPOS2016.vbp
; Inno Setup Script Output File (.iss):   D:\ProjectVB\HandyBilly\Scripts\myPOS2016 1.0.2 Release.iss
;:   D:\ProjectVB\HandyBilly\Innoscript\Templates\ismyPOS.tpl
;:   C:\Users\yulia\AppData\Local\Randem Systems\InnoScript\Release\Templates\AutoOSUpdater.tpl
;:   C:\Users\yulia\AppData\Local\Randem Systems\InnoScript\Release\Templates\VCRuntime.tpl
;:   C:\Users\yulia\AppData\Local\Randem Systems\InnoScript\Release\Templates\Crystal Reports.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)


; --------------------------
;        Components
; --------------------------

; ComponentOne True DBNumber 8.0 - (tinumb8.ocx)
; ComponentOne Sizer/Tab Controls 8.0 - (C1Sizer.ocx)
; Crystal ActiveX Report Viewer Library 11.5 - (CRViewer.dll)
; ComponentOne True DBDate 8.0 - (tidate8.ocx)
; Xtreme Suite Controls ActiveX Control 15.3.1 - (Codejock.Controls.v15.3.1.ocx)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; Xtreme CommandBars ActiveX Control 15.3.1 - (Codejock.CommandBars.v15.3.1.ocx)
; Xtreme SkinFramework ActiveX Control 15.3.1 - (Codejock.SkinFramework.v15.3.1.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; ComponentOne True DBGrid Pro 8.0 (OLEDB) - (todg8.ocx)
; ComponentOne True DBList Pro 8.0 (OLEDB) - (todl8.ocx)


[Setup]
SetupLogging=Yes
AppId=myPOS 2016

;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------

AppName=myPOS 2016 1.0.2
AppVerName=myPOS 2016
AppPublisher=Duta Karya Konsultama

;------------------------------------------------------------------------------------------------------------------------

AppVersion=1.0.2
VersionInfoVersion=1.0.2
AllowNoIcons=yes
DefaultGroupName=Duta Karya Konsultama\myPOS 2016
DefaultDirName={pf}\Duta Karya Konsultama\myPOS2016 1
AppCopyright=2016
PrivilegesRequired=Admin
MinVersion=0,5.01
OnlyBelowVersion=0,6.3
Compression=lzma
OutputBaseFilename=myPOS20160100002Release

[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: AutoOSUpdater; Description: Install Database Support Updater; GroupDescription: Database Support:
Name: VCRuntime6; Description: Install VC++ 6.0 Runtimes; GroupDescription: VC Runtimes:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:

[Files]
Source: D:\ISSearch\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater;
Source: D:\ISSearch\vcredist.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; AfterInstall: InstallVCRuntime('{tmp}\vcredist.exe','/Q /T:{tmp}'); Tasks: VCRuntime6;
Source: D:\ProjectVB\HandyBilly\Images\*.*; DestDir: {app}\Images\; Flags:
Source: D:\ProjectVB\HandyBilly\Report\*.*; DestDir: {app}\Report\; Flags:
Source: D:\ProjectVB\HandyBilly\Styles\*.*; DestDir: {app}\Styles\; Flags:
Source: D:\ISSearch\tinumb8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ISSearch\MSBIND.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ISSearch\C1Sizer.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ISSearch\tidate8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v15.3.1\Bin\Codejock.Controls.v15.3.1.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ISSearch\Comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v15.3.1\Bin\Codejock.CommandBars.v15.3.1.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v15.3.1\Bin\Codejock.SkinFramework.v15.3.1.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ISSearch\MSCOMCTL.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ISSearch\todg8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ISSearch\todl8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\ProjectVB\HandyBilly\myPOS2016.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;
Source: D:\ISSearch\CRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: D:\ProjectVB\HandyBilly\Config.lic; DestDir: {app}; Flags:  ignoreversion;
Source: D:\ISSearch\MFC42.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile; 6

Source: D:\ISSearch\KERNELBASE.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Debug-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-ErrorHandling-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-File-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Handle-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Interlocked-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-LibraryLoader-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Localization-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-LocalRegistry-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Memory-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Misc-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-ProcessThreads-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Profile-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-String-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-Synch-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: D:\ISSearch\API-MS-Win-Core-SysInfo-L1-1-0.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;

[INI]

[Icons]
Name: {group}\myPOS2016 ; Filename : {app}\myPOS2016.exe; WorkingDir: {app};
Name: {group}\{cm:UninstallProgram, myPOS2016 }; Filename: {uninstallexe};
Name: {commondesktop}\myPOS2016 ; Filename: {app}\myPOS2016.exe; Tasks: Desktopicon ; WorkingDir: {app};

[Run]
Filename: msiexec.exe; Parameters: "/package ""CRXI_5_RDC_Redistribution.msi"" /passive /promptrestart /l* ""{sd}\CRXI_5_RDC_Redistribution.msi.txt"""; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation; StatusMsg: Installing Crystal Reports Runtimes;
; 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@\11.5.9.1265}\{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!F62B9FA4-455F-4FE3-8A2D-205E4F0BCAFB@\11.5.9.1265}\; StatusMsg: Registering Crystal ActiveX Report Viewer Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {tmp}\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; MinVersion: 4.1,4.0
Filename: {app}\myPOS2016.exe; Description: {cm:LaunchProgram, myPOS2016 }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}

[UninstallDelete]
Type: dirifempty; Name: {app}


[InstallDelete]
Type: files; Name: {app}\Install.log;

[Registry]


//===================================================================
// Install VC++ Runtime files
//===================================================================
Procedure InstallVCRuntime(Filename: String; Param: String);
var
  ErrorCode: Integer;
  begin
     ShellExec('', ExpandConstant(Filename), ExpandConstant(Param), '', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
  end;
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;


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;



Dear Randem,
I create script but the script created parameter "6" that is become error if I compile it. But if I deleted the number "6" then it run successfull. What could it be? Is this a bug in 11.5.8? Thanks