; Script generated by the Inno Setup Script Wizard.
; This is the    === A n t e n n a  6 4  b i t ===   script 2018-11-20
; Name: "{group}\Antenna-64bit"; Filename: "{app}\Antenna.exe"
; new GUID 2018-09-28
; Change D:\www\Operations for location
; Change to Rotor.dll and C:\Program Files (x86)\SETI Net\Antenna for the location of the dll
;Fix app name
; Change OutputDir=C:\wamp\public_html\SETINet
; Added PrivilegesRequired=admin
; 
#pragma verboselevel 9
#define AppName "Antenna-64bit" 
#define AppVersion GetFileVersion("D:\SETINet\Antenna\Win64\Debug\Antenna.exe")
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppID=  {{8C35EE22-1869-478C-BED9-2460863DB115}}  
;
AppName=SETI Network{#AppName} 
AppVersion={#AppVersion}
VersionInfoVersion={#AppVersion}

;PrivilegesRequired=admin
AppPublisher=SETI Network
AppPublisherURL=http://www.SETI.Net/
AppSupportURL=http://www.SETI.Net/
AppUpdatesURL=http://www.SETI.Net/
DefaultDirName={pf}\SETI Net\Antenna
DefaultGroupName=SETI Net\Antenna
;LicenseFile=D:\Engineering\Antenna\SRT\InnoScript\SRT License File.rtf
InfoBeforeFile=D:\SETINet\Antenna\InnoScript\Antenna Information File Before Installation-64bit.rtf
InfoAfterFile=D:\SETINet\Antenna\InnoScript\Antenna Information File After Installation-64bit.rtf
OutputBaseFilename=SetUp Antenna-64bit
;OutputDir=C:\UwAmp\www\SETINet\Operation
OutputDir=D:\www\Operations
SetupIconFile=D:\SETINet\Antenna\InnoScript\ControlPanel.ico

Compression=lzma
SolidCompression=yes
TouchTime=current
ArchitecturesInstallIn64BitMode = x64 
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; 

[Files]
Source: "D:\SETINet\Antenna\Win64\Debug\Antenna.exe"; DestDir: "{app}"; Flags:replacesameversion Touch
; Next store in SysWOW64 
;Source: "D:\SETINet\Kerr\NMCLIB04\ROTOR.dll"; DestDir: "{sys}"; Flags: sharedfile  replacesameversion Touch
Source: "D:\SETINet\Antenna\Win64\Debug\ROTOR.dll"; DestDir: "{app}"; Flags: sharedfile  replacesameversion Touch

;Source: "C:\Program Files\GMS\Bin\AGaugeM.ocx"; DestDir: "{sys}"; Flags:  sharedfile regserver 

Source: "D:\SETINet\Resources\Connecting.wav"; DestDir: "{app}"; Flags: sharedfile 
Source: "D:\SETINet\Resources\Error.wav"; DestDir: "{app}"; Flags:sharedfile 
Source: "D:\SETINet\Resources\Ready.wav"; DestDir: "{app}"; Flags: sharedfile 
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
;
[Icons]
Name: "{group}\Antenna-64bit"; Filename: "{app}\Antenna.exe"
Name: "{group}\{cm:ProgramOnTheWeb,Antenna}"; Filename: "http://www.seti.net/Operations/Operations.php#Antenna"
Name: "{group}\{cm:UninstallProgram,Antenna}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\Antenna"; Filename: "{app}\Antenna.exe"; Tasks: desktopicon

[Run]
Filename: "{app}\Antenna.exe"; Description: "{cm:LaunchProgram,the Antenna controller}"; Flags: nowait postinstall skipifsilent

[Registry]
; Start "Software\My Company\My Program" keys under HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE. The flags tell it to always delete the
; "My Program" keys upon uninstall, and delete the "My Company" keys if there is nothing left in them.
Root: HKCU; Subkey: "Software\SETI Net"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\SETI Net\Antenna"; Flags: uninsdeletekey
;Root: HKCU; Subkey: "Software\SETI Net\Clock"; Flags: uninsdeletekey eName: "Path"; ValueData: "{app}"
