; ********** Version 7.2 Build 0 Trial
; Randem Systems, Inc.
; Copyright 2003-2007
; Website: http://www.***********
; Support: http://www.**********.com/cgi-bin/discus/discus.cgi
; OS: Windows XP 5.1 build 2600 (Service Pack 2)

; Date: Αύγουστος 19, 2007

; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 7.0\VB 6 Redist Files\
; Visual Basic Project File (.vbp): C:\Program Files\Microsoft Visual Studio\VB98\ergasia_hlektron_ae\Prodelectron.vbp
; Inno Setup Script Output File (.iss): C:\Program Files\prodelectron_istool\prodelectron1982007 Release.iss
; Script Template Files (.tpl): C:\Program Files\Randem Systems\**********\********** 7.0\Templates\Release.tpl
; : C:\Program Files\Randem Systems\**********\********** 7.0\Templates\VBRuntime.tpl
; : C:\Program Files\Randem Systems\**********\********** 7.0\Templates\Vista.tpl

; ------------------------
; References
; ------------------------

; Visual Basic runtime objects and procedures - (MSVBVM60.DLL)
; Standard OLE Types - (OLEPRO32.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Data Report Designer v6.0 - (MSDBRPTR.DLL)
; Microsoft ActiveX Data Objects Recordset 2.8 Library - (msador15.dll)
; Microsoft Add-In Designer - (MSADDNDR.TLB)
; Microsoft ActiveX Data Objects 2.0 Library - (msado20.tlb)
; Microsoft Data Binding Collection - (MSBIND.DLL)
; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)


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

; HHCtrl 4.0 Type Library - (hhctrl.ocx)
; Microsoft ADO Data Control 6.0 (OLEDB) - (MSADODC.OCX)
; Microsoft Hierarchical FlexGrid Control 6.0 (OLEDB) - (MSHFLXGD.OCX)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (COMDLG32.OCX)
; Microsoft Windows Common Controls-2 6.0 - (MSCOMCT2.OCX)


[Comments]
; In the folder where your installation was created is a folder named Support. In this folder you will place the AutoOSUpdater, .Net Framework and the Scripting Runtime installations
; that you want to deploy with your installation. Both you installation exe and this folder need to be deployed fo your installation to work properly

(i forgot copy paste all these above, but all these are in comments, by inno script, Well still i have the proper settings, or must i have to run the automatic os updater?)
[Setup]

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

AppName=Prodelectron
AppVerName=Prodelectron 1.0.0
AppPublisher=Asimakopoulou

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

AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName=Prodelectron
DefaultDirName={code:GetAppFolder}\Prodelectron
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,4.0
Compression=lzma
OutputBaseFilename=ProdelectronSetup

[Tasks]

[Files]
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: uninsneveruninstall sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\microsoft visual studio\vb98\ergasia_hlektron_ae\myapphelp.chm; DestDir: {app}; Flags: ignoreversion
Source: c:\program files\microsoft visual studio\vb98\ergasia_hlektron_ae\mydb_new.mdb; DestDir: {app}; Flags: ignoreversion
Source: c:\program files\prodelectron_istool\msdbrptr.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\prodelectron_istool\msbind.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\prodelectron_istool\msstdfmt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\prodelectron_istool\msadodc.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\prodelectron_istool\mshflxgd.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\prodelectron_istool\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\prodelectron_istool\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\prodelectron_istool\mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:\program files\microsoft visual studio\vb98\ergasia_hlektron_ae\prodelectron.exe; DestDir: {app}; Flags: ignoreversion

;[INI]
;Filename: {app}\Prodelectron.url; Section: InternetShortcut; Key: URL; String:

[Icons]
Name: {group}\Prodelectron; Filename: {app}\Prodelectron.exe; WorkingDir: {app}
;Name: {group}\{cm:ProgramOnTheWeb, Prodelectron}; Filename: {app}\Prodelectron.url
Name: {group}\{cm:UninstallProgram, Prodelectron}; Filename: {uninstallexe}

[Run]
Filename: {app}\Prodelectron.exe; Description: {cm:LaunchProgram, Prodelectron}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}

[UninstallDelete]
Type: files; Name: {app}\Prodelectron.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;