76 lines
3.3 KiB
Plaintext
76 lines
3.3 KiB
Plaintext
#define version_major = 0
|
|
#define version_minor = 13
|
|
|
|
[Setup]
|
|
AllowCancelDuringInstall=no
|
|
AllowNoIcons=yes
|
|
AllowUNCPath=no
|
|
AppId=lavcuvid
|
|
AppName=LAV CUVID Decoder
|
|
AppVerName=LAV CUVID Decoder {#=version_major}.{#=version_minor}
|
|
AppVersion={#=version_major}.{#=version_minor}
|
|
Compression=lzma/ultra
|
|
CreateAppDir=yes
|
|
DefaultDirName={pf}\LAV CUVID
|
|
DefaultGroupName=LAV CUVID
|
|
DisableStartupPrompt=yes
|
|
MinVersion=0,5.01SP2
|
|
OutputBaseFilename=LAVCUVID-{#=version_major}.{#=version_minor}
|
|
OutputDir=.
|
|
PrivilegesRequired=admin
|
|
SolidCompression=yes
|
|
Uninstallable=yes
|
|
VersionInfoVersion={#=version_major}.{#=version_minor}.0.0
|
|
|
|
[Messages]
|
|
WelcomeLabel1=[name/ver]
|
|
WelcomeLabel2=This will install [name] on your computer.%n%nIt is recommended that you close all other applications before continuing.
|
|
WinVersionTooLowError=This software only works on Windows XP SP2 and newer.
|
|
|
|
[Types]
|
|
Name: Normal; Description: Normal; Flags: iscustom
|
|
|
|
[Components]
|
|
Name: lavcuvid32; Description: LAV CUVID (x86); Types: Normal;
|
|
Name: lavcuvid64; Description: LAV CUVID (x64); Types: Normal; Check: IsWin64;
|
|
|
|
[Tasks]
|
|
Name: lavcuvid_h264; Description: H264/AVC1; GroupDescription: "Use LAV CUVID for these codecs:"; Components: lavcuvid32 lavcuvid64
|
|
Name: lavcuvid_vc1; Description: VC-1; GroupDescription: "Use LAV CUVID for these codecs:"; Components: lavcuvid32 lavcuvid64
|
|
Name: lavcuvid_mpeg2; Description: MPEG-2; GroupDescription: "Use LAV CUVID for these codecs:"; Components: lavcuvid32 lavcuvid64
|
|
Name: lavcuvid_mpeg4; Description: MPEG-4 ASP (Xvid/DivX); GroupDescription: "Use LAV CUVID for these codecs:"; Components: lavcuvid32 lavcuvid64
|
|
|
|
[Files]
|
|
Source: bin_Win32\LAVCUVID.ax; DestName: LAVCUVID.ax; DestDir: {app}; Flags: regserver ignoreversion restartreplace uninsrestartdelete; Components: lavcuvid32
|
|
Source: bin_x64\LAVCUVID.ax; DestName: LAVCUVID64.ax; DestDir: {app}; Flags: regserver ignoreversion restartreplace uninsrestartdelete; Components: lavcuvid64
|
|
|
|
Source: COPYING; DestDir: {app}; Flags: ignoreversion restartreplace uninsrestartdelete; Components: lavcuvid32 lavcuvid64
|
|
Source: README.txt; DestDir: {app}; Flags: ignoreversion restartreplace uninsrestartdelete; Components: lavcuvid32 lavcuvid64
|
|
Source: CHANGELOG.txt; DestDir: {app}; Flags: ignoreversion restartreplace uninsrestartdelete; Components: lavcuvid32 lavcuvid64
|
|
|
|
[Icons]
|
|
Name: {group}\Uninstall LAV CUVID; Filename: {uninstallexe};
|
|
|
|
[Registry]
|
|
Root: HKCU; Subkey: Software\LAV; Flags: uninsdeletekeyifempty; Components: lavcuvid32 lavcuvid64
|
|
Root: HKCU; Subkey: Software\LAV\CUVID; Flags: uninsdeletekey; Components: lavcuvid32 lavcuvid64
|
|
|
|
[Code]
|
|
procedure CurStepChanged(CurStep: TSetupStep);
|
|
var
|
|
format : String;
|
|
begin
|
|
if (CurStep = ssPostInstall) then begin
|
|
format := chr(1) + chr(ord(IsTaskSelected('lavcuvid_mpeg2'))) + chr(ord(IsTaskSelected('lavcuvid_mpeg4'))) + chr(ord(IsTaskSelected('lavcuvid_vc1'))) + chr(ord(IsTaskSelected('lavcuvid_h264')));
|
|
RegWriteBinaryValue(HKCU, 'Software\LAV\CUVID', 'Formats', format);
|
|
end;
|
|
end;
|
|
|
|
procedure InitializeWizard();
|
|
begin
|
|
// Adjust tasks page
|
|
WizardForm.SelectTasksLabel.Hide;
|
|
WizardForm.TasksList.Top := 0;
|
|
WizardForm.TasksList.Height := PageFromID(wpSelectTasks).SurfaceHeight;
|
|
end;
|