[Setup]
AppName={cm:mAppName}
AppVerName={cm:mAppVerName}
DefaultDirName={pf}{cm:mAppName}
DefaultGroupName={cm:mAppName}
OutputBaseFilename=Backuper
UsePreviousLanguage=no
Compression=lzma2
LicenseFile=embeddedLicense.rtf
WizardImageFile=embeddedWizardImage.bmp
WizardSmallImageFile=embeddedWizardSmallImage.bmp
[Files]
Source: "{app}MakeDisc.exe"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Backuper.exe"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Backup.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}BrFat.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}BrNtfs.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}BrVol.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Clone.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Comn.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Compress.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Device.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}DiskMgr.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Encrypt.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}FuncLogic.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}ImgFile.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Ldm.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}UiLogic.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}amldr"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}amldr.mbr"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}mfc80.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}mfc80u.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}mfcm80.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}mfcm80u.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Microsoft.VC80.CRT.manifest"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Microsoft.VC80.MFC.manifest"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Microsoft.VC80.OpenMP.manifest"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}msvcm80.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}msvcp80.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}msvcr80.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}QtCore4.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}QtGui4.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}vcomp.dll"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{win}system32ambakdrv,1.sys"; DestDir: "{win}system32"; DestName: "ambakdrv.sys"; Check: "IsWin32"; MinVersion: 0.0,5.0; Flags: uninsneveruninstall sharedfile ignoreversion 32bit
Source: "{win}system32ammntdrv,1.sys"; DestDir: "{win}system32"; DestName: "ammntdrv.sys"; Check: "IsWin32"; MinVersion: 0.0,5.0; Flags: uninsneveruninstall sharedfile ignoreversion 32bit
Source: "{win}system32amwrtdrv,1.sys"; DestDir: "{win}system32"; DestName: "amwrtdrv.sys"; Check: "IsWin32"; MinVersion: 0.0,5.0; Flags: uninsneveruninstall sharedfile ignoreversion 32bit
Source: "{app}LoadDrv,1.exe"; DestDir: "{app}"; DestName: "LoadDrv.exe"; Check: "IsWin32"; MinVersion: 0.0,5.0; Flags: ignoreversion 32bit
Source: "{app}Winpe64Backuper.exe"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Backup.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64BrFat.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64BrNtfs.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64BrVol.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Clone.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Comn.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Compress.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Device.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64DiskMgr.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Encrypt.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64FuncLogic.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64ImgFile.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Ldm.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64UiLogic.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64mfc80.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64mfc80u.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64mfcm80.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64mfcm80u.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Microsoft.VC80.CRT.manifest"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Microsoft.VC80.MFC.manifest"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Microsoft.VC80.OpenMP.manifest"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64Microsoft.VC90.CRT.manifest"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64msvcm80.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64msvcm90.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64msvcp80.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64msvcp90.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64msvcr80.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64msvcr90.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64QtCore4.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64QtGui4.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64vcomp.dll"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}Winpe64winpeshl.ini"; DestDir: "{app}Winpe64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{win}system32ambakdrv,2.sys"; DestDir: "{win}system32"; DestName: "ambakdrv.sys"; Check: "IsWin64"; MinVersion: 0.0,5.0; Flags: uninsneveruninstall sharedfile ignoreversion 64bit
Source: "{win}system32ammntdrv,2.sys"; DestDir: "{win}system32"; DestName: "ammntdrv.sys"; Check: "IsWin64"; MinVersion: 0.0,5.0; Flags: uninsneveruninstall sharedfile ignoreversion 64bit
Source: "{win}system32amwrtdrv,2.sys"; DestDir: "{win}system32"; DestName: "amwrtdrv.sys"; Check: "IsWin64"; MinVersion: 0.0,5.0; Flags: uninsneveruninstall sharedfile ignoreversion 64bit
Source: "{app}LoadDrv,2.exe"; DestDir: "{app}"; DestName: "LoadDrv.exe"; Check: "IsWin64"; MinVersion: 0.0,5.0; Flags: ignoreversion 64bit
;Source: "{app}winpeshl.ini"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
;Source: "{app}driveramd64ambakdrv.sys"; DestDir: "{app}driveramd64"; MinVersion: 0.0,5.0; Flags: ignoreversion
;Source: "{app}driveramd64ammntdrv.sys"; DestDir: "{app}driveramd64"; MinVersion: 0.0,5.0; Flags: ignoreversion
;Source: "{app}driveramd64amwrtdrv.sys"; DestDir: "{app}driveramd64"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}driveramd64msahci.sys"; DestDir: "{app}driveramd64"; MinVersion: 0.0,5.0; Flags: ignoreversion
;Source: "{app}driveri386ambakdrv.sys"; DestDir: "{app}driveri386"; MinVersion: 0.0,5.0; Flags: ignoreversion
;Source: "{app}driveri386ammntdrv.sys"; DestDir: "{app}driveri386"; MinVersion: 0.0,5.0; Flags: ignoreversion
;Source: "{app}driveri386amwrtdrv.sys"; DestDir: "{app}driveri386"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}driveri386msahci.sys"; DestDir: "{app}driveri386"; MinVersion: 0.0,5.0; Flags: ignoreversion
Source: "{app}vss,1.dll"; DestDir: "{app}"; DestName: "vss.dll"; Check: "Is2003"; MinVersion: 0.0,5.0; Flags: ignoreversion 32bit
Source: "{app}vss,2.dll"; DestDir: "{app}"; DestName: "vss.dll"; Check: "IsXP"; MinVersion: 0.0,5.0; Flags: ignoreversion 32bit
Source: "{app}vss,3.dll"; DestDir: "{app}"; DestName: "vss.dll"; Check: "IsVista"; MinVersion: 0.0,5.0; Flags: ignoreversion 32bit
Source: "{app}vsscom,1.exe"; DestDir: "{app}"; DestName: "vsscom.exe"; Check: "IsXP64"; MinVersion: 0.0,5.0; Flags: ignoreversion 64bit
Source: "{app}vsscom,2.exe"; DestDir: "{app}"; DestName: "vsscom.exe"; Check: "IsVista64"; MinVersion: 0.0,5.0; Flags: ignoreversion 64bit
Source: "{app}adi.ico"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion
[Registry]
Root: HKCR; Subkey: "AOMEI Data Backuper Backup File"; ValueType: String; ValueData: "AOMEI Data Backuper Backup File"; MinVersion: 0.0,5.0; Flags: uninsdeletekey
Root: HKCR; Subkey: "AOMEI Data Backuper Backup FileDefaultIcon"; ValueType: String; ValueData: "{app}adi.ico"; MinVersion: 0.0,5.0; Flags: uninsdeletekey
Root: HKCR; Subkey: ".adi"; ValueType: String; ValueData: "AOMEI Data Backuper Backup File"; MinVersion: 0.0,5.0; Flags: uninsdeletekey
Root: HKCU; Subkey: "SoftwareAOMEI{cm:mAppName}"; MinVersion: 0.0,5.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "{cm:uninstallkey}"; ValueName: "AOMEI Data Backuper"; ValueType: String; ValueData: "1.0"; MinVersion: 0.0,5.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "{cm:uninstallkey}"; ValueName: "UninstallString"; ValueType: String; ValueData: "{uninstallexe}"; MinVersion: 0.0,5.0; Flags: uninsdeletekey
[Run]
Filename: "{syswow64}cmd.exe"; Parameters: "vsscom.exe /regserver"; Check: "IsWin64"; MinVersion: 0.0,5.0;
Filename: "{app}LoadDrv.exe"; Description: "{cm:LaunchProgram,LoadDrv.exe}"; MinVersion: 0.0,5.0;
[UninstallRun]
Filename: "{app}LoadDrv.exe"; Parameters: "-u"; MinVersion: 0.0,5.0;
[Icons]
Name: "{group}{cm:mAppVerName}"; Filename: "{app}Backuper.exe"; MinVersion: 0.0,5.0;
Name: "{group}{cm:Website}"; Filename: "{cm:Weburl}"; MinVersion: 0.0,5.0;
Name: "{group}{cm:Uninstall}"; Filename: "{uninstallexe}"; MinVersion: 0.0,5.0;
Name: "{commondesktop}{cm:mAppVerName}"; Filename: "{app}Backuper.exe"; Tasks: "desktopicon"; MinVersion: 0.0,5.0;
Name: "{userappdata}MicrosoftInternet ExplorerQuick Launch{cm:mAppVerName}"; Filename: "{app}Backuper.exe"; Tasks: "quicklaunchicon"; MinVersion: 0.0,5.0;
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; MinVersion: 0.0,5.0;
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; MinVersion: 0.0,5.0;
[CustomMessages]
NameAndVersion=%1 version %2
AdditionalIcons=Additional icons:
CreateDesktopIcon=Create a &desktop icon
CreateQuickLaunchIcon=Create a &Quick Launch icon
ProgramOnTheWeb=%1 on the Web
UninstallProgram=Uninstall %1
LaunchProgram=Launch %1
AssocFileExtension=&Associate %1 with the %2 file extension
AssocingFileExtension=Associating %1 with the %2 file extension...
uninstallkey=SOFTWAREMicrosoftWindowsCurrentVersionUninstall
AOMEI Data Backuper
mAppName=AOMEI Data Backuper
mAppVerName=AOMEI Data Backuper
mAppPublisher=AOMEI Technology Co., Ltd.
mVersionInfoCopyright=Copyright (C) 2009-2012 AOMEI Technology Co., Ltd. All Rights Reserved.
Website=Visit our website
Weburl=http://www.aomeitech.com
Uninstall=Uninstall AOMEI Data Backuper
langpath=langen.txt;9
setwarning=AOMEI Data Backuper уже установлена.%nВы хотите удалить программу AOMEI Data Backuper?
[code]
var
Version: TWindowsVersion;
function IsWV(mm: Byte):Cardinal;
begin
case mm of
0: Result := Version.Major;
1 :Result:= Version.Minor;
2 :Result:= Version.Build;
3 :Result:= Version.ServicePackMajor;
4 :Result:= Version.ServicePackMinor;
end;
end;
function InitializeSetup():Boolean;
var
r: Integer;
unins :String;
begin
GetWindowsVersionEx (Version);
case RegValueExists(HKLM, ExpandConstant('{cm:uninstallkey}'), 'UninstallString') of
True:
begin
Result:= False;
RegQueryStringValue(HKLM, ExpandConstant('{cm:uninstallkey}'), 'UninstallString', unins);
if MsgBox(ExpandConstant('{cm:setwarning}'), mbInformation, MB_YESNO) = IDYES
then Exec(unins, '/SILENT', ExtractFilePath(unins), SW_HIDE, ewWaitUntilTerminated, r);
end;
False :Result:= True;
end;
end;
function IsWin32():Boolean;
begin
Result:= not IsWin64;
end;
function IsXP():Boolean;
begin
Result:= (IsWV(0)=5) and (IsWV(1)=1) and IsWin32;
end;
function Is2003():Boolean;
begin
Result:= (IsWV(0) = 5) and (IsWV(1) = 2);
end;
function IsXP64():Boolean;
begin
Result:= (IsWV(0)=5) and (IsWV(1)=2) and IsWin64;
end;
function IsVista():Boolean;
begin
Result:= (IsWV(0)>5) and IsWin32;
end;
function IsVista64():Boolean;
begin
Result := (IsWV(0)>5) and IsWin64;
end;
Вот как-то так. В секции
комментированные строчки - то, что не распаковалось.