; ============================================================================
; OpenText HostExplorer 15 SP1 Shop Floor Installation
; ============================================================================
;
; Installs OpenText HostExplorer 15 x64 with ShopFloor transform and SP1,
; deploys connection profiles, keymaps, menus, and accessories to ProgramData
; (shared across all users), and creates desktop shortcuts.
;
; Author: WJDT / GE Aerospace
; Version: 15.0.SP1.2
; ============================================================================

[Setup]
AppId={{B9C8D7E6-F5A4-3B2C-1D0E-9F8A7B6C5D4E}
AppName=WJDT OpenText HostExplorer ShopFloor
AppVersion=15.0.SP1.2
AppPublisher=WJDT
AppPublisherURL=https://tsgwp00525.wjs.geaerospace.net
AppSupportURL=https://tsgwp00525.wjs.geaerospace.net
AppUpdatesURL=https://tsgwp00525.wjs.geaerospace.net
CreateAppDir=no
PrivilegesRequired=admin
ArchitecturesInstallIn64BitMode=x64compatible
OutputDir=C:\Users\270015376\Downloads\Output
OutputBaseFilename=OpenText
SolidCompression=yes
Compression=lzma2
WizardStyle=modern
SetupIconFile=gea-logo.ico
WizardImageFile=patrick.bmp
WizardSmallImageFile=patrick-sm.bmp
DisableWelcomePage=no
CreateUninstallRegKey=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Messages]
WelcomeLabel2=This will install OpenText HostExplorer 15 SP1 with GE Aerospace ShopFloor configuration.%n%nIncludes:%n- Pre-configured connection profiles (WJ Shopfloor, WJ Office, mmcs, IBM qks)%n- Keyboard maps and menu layouts%n- Desktop shortcuts%n%nClick Next to continue.

; ============================================================================
; [Files] - MSI/CAB/MST/MSP staged to temp, config files deployed directly
; ============================================================================
[Files]
; MSI installer files (temp - deleted after install)
Source: "OpenTextHostExplorer15x64.msi"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall
Source: "OpenTextHostExplorer15x64.cab"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall
Source: "OpenTextHostExplorer15x64_ServicePack1.msp"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall
Source: "ShopFloorx64.mst"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall

; Accessories - ProgramData (shared)
Source: "Accessories\EB\*.ebs"; DestDir: "{commonappdata}\Hummingbird\Connectivity\15.00\Shared\Accessories\EB"; Flags: ignoreversion
Source: "Accessories\EB\*.ebx"; DestDir: "{commonappdata}\Hummingbird\Connectivity\15.00\Shared\Accessories\EB"; Flags: ignoreversion

; Accessories - user profile (AppData\Roaming)
Source: "Accessories\EB\*.ebs"; DestDir: "{userappdata}\Hummingbird\Connectivity\15.00\Accessories\EB"; Flags: ignoreversion
Source: "Accessories\EB\*.ebx"; DestDir: "{userappdata}\Hummingbird\Connectivity\15.00\Accessories\EB"; Flags: ignoreversion

; Connection profiles - ProgramData (shared)
Source: "Profile\*.hep"; DestDir: "{commonappdata}\Hummingbird\Connectivity\15.00\Shared\Profile"; Flags: ignoreversion

; Connection profiles - user profile (AppData\Roaming)
Source: "Profile\*.hep"; DestDir: "{userappdata}\Hummingbird\Connectivity\15.00\Profile"; Flags: ignoreversion

; Keyboard maps - ProgramData (shared)
Source: "HostExplorer\Keymap\*.kmv"; DestDir: "{commonappdata}\Hummingbird\Connectivity\15.00\Shared\HostExplorer\Keymap"; Flags: ignoreversion

; Keyboard maps - user profile (AppData\Roaming)
Source: "HostExplorer\Keymap\*.kmv"; DestDir: "{userappdata}\Hummingbird\Connectivity\15.00\HostExplorer\Keymap"; Flags: ignoreversion

; Menu layouts - ProgramData (shared)
Source: "HostExplorer\Menu\*.hmv"; DestDir: "{commonappdata}\Hummingbird\Connectivity\15.00\Shared\HostExplorer\Menu"; Flags: ignoreversion

; Menu layouts - user profile (AppData\Roaming)
Source: "HostExplorer\Menu\*.hmv"; DestDir: "{userappdata}\Hummingbird\Connectivity\15.00\HostExplorer\Menu"; Flags: ignoreversion

; Desktop shortcuts (Public Desktop - visible to all users)
Source: "W10shortcuts\*.lnk"; DestDir: "{commondesktop}"; Flags: ignoreversion

; ============================================================================
; [Run] - MSI installation and Service Pack 1
; ============================================================================
[Run]
; Install OpenText HostExplorer 15 x64 with ShopFloor transform
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\OpenTextHostExplorer15x64.msi"" TRANSFORMS=""{tmp}\ShopFloorx64.mst"" /qb /norestart /l*v ""{tmp}\OpenText_Install.log"""; StatusMsg: "Installing OpenText HostExplorer 15..."; Flags: waituntilterminated

; Apply Service Pack 1
Filename: "msiexec.exe"; Parameters: "/p ""{tmp}\OpenTextHostExplorer15x64_ServicePack1.msp"" /qb /norestart /l*v ""{tmp}\OpenText_SP1.log"""; StatusMsg: "Applying Service Pack 1..."; Flags: waituntilterminated

; ============================================================================
; [UninstallRun] - MSI uninstallation
; ============================================================================
[UninstallRun]
Filename: "msiexec.exe"; Parameters: "/x {{11703D6F-C9B8-4981-96F2-989899ED7479}} /qb"; StatusMsg: "Uninstalling OpenText HostExplorer..."; Flags: waituntilterminated; RunOnceId: "UninstallOpenText"

; ============================================================================
; [UninstallDelete] - Desktop shortcuts (config files handled by [Files] auto-uninstall)
; ============================================================================
[UninstallDelete]
Type: files; Name: "{commondesktop}\IBM_qks.lnk"
Type: files; Name: "{commondesktop}\mmcs.lnk"
Type: files; Name: "{commondesktop}\WJ Shopfloor.lnk"
Type: files; Name: "{commondesktop}\WJ_Office.lnk"
