Ekspoint 2,122 #265090 Posted April 25, 2015 Это как? Список загружается постепенно Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #265091 Posted April 25, 2015 Список загружается постепенно Покажи готовый инсталл. Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265093 Posted April 25, 2015 Покажи готовый инсталл. Ой,сори,через инно долго,а так норм Сорян Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #265096 Posted April 25, 2015 Я, конечно, всё понимаю, но этого не понимаю. Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265100 Posted April 25, 2015 Я, конечно, всё понимаю, но этого не понимаю. запустил просто сетап и ок, а не через инно Quote Share this post Link to post Short link Share on other sites
TneRED 0 #265127 Posted April 25, 2015 (edited) Надо суда function NextButtonClick(CurPage: Integer): Boolean; begin Result:=True; If CurPage=6 then begin If not FileExists(ExpandConstant('{app}\WorldOfTanks.exe')) then begin MsgBox(ExpandConstant('{cm:FileNotFoundLabel}'), mbError, MB_OK); Result:=False; end; If FileExists(ExpandConstant('{app}')+'\WorldOfTanks.exe') then begin If FileVersion(ExpandConstant('{app}')+'\WorldOfTanks.exe') <> '{#PackForVersion}' then begin MsgBox(ExpandConstant('{cm:FileVersionWrongLabel}'), mbError, MB_OK); Result:=False; end; end; end; end; Внедрить это: Выручайте) function NextButtonClick(CurPage: Integer): Boolean; begin Result:=True; If CurPage=1 then begin if IsAppRunning() then begin MsgBox('Клиент игры World of Tanks в настоящее время запущен.' #13#13 'Необходимо закрыть его перед продолжением установки.', mbError, MB_OK); Result:=False; end else Result:=True; end; end; Edited April 25, 2015 by TneRED Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265139 Posted April 25, 2015 Надо суда function NextButtonClick(CurPage: Integer): Boolean; begin Result:=True; If CurPage=6 then begin If not FileExists(ExpandConstant('{app}\WorldOfTanks.exe')) then begin MsgBox(ExpandConstant('{cm:FileNotFoundLabel}'), mbError, MB_OK); Result:=False; end; If FileExists(ExpandConstant('{app}')+'\WorldOfTanks.exe') then begin If FileVersion(ExpandConstant('{app}')+'\WorldOfTanks.exe') <> '{#PackForVersion}' then begin MsgBox(ExpandConstant('{cm:FileVersionWrongLabel}'), mbError, MB_OK); Result:=False; end; end; end; end; Внедрить это: Выручайте) function NextButtonClick(CurPage: Integer): Boolean; begin Result:=True; If CurPage=1 then begin if IsAppRunning() then begin MsgBox('Клиент игры World of Tanks в настоящее время запущен.' #13#13 'Необходимо закрыть его перед продолжением установки.', mbError, MB_OK); Result:=False; end else Result:=True; end; end; #define Patch "0.9.7" [Code] function FileVersion(const FilePath: String): String; var oFS: Variant; begin oFS:= CreateOleObject('Scripting.FileSystemObject'); try Result:= oFS.GetFileVersion(FilePath); except end; end; //"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""// Function NextButtonClick(CurPageID: Integer): Boolean; begin Result := True; case CurPageID of wpSelectDir: begin if not FileExists(ExpandConstant('{app}\WorldOfTanks.exe')) then begin MsgBoxEx(0, 'Установка модов невозможна, так как по выбранному пути отсутствует клиент игры World of Tanks. Выберите правильный путь и продолжайте установку!','Внимание!!',MB_OK or MB_ICONERROR, 0, 0); Result := False; end; if FileExists(ExpandConstant('{app}')+'\WorldOfTanks.exe') then begin if FileVersion(ExpandConstant('{app}')+'\WorldOfTanks.exe') < '{#Patch}' then begin MsgBoxEx(WizardForm.Handle, 'Моды не будут работать на данной версии игры! Моды предназначены для версии патча {#Patch} ', 'Моды не подходят к данному патчу World of Tanks', MB_OK or MB_ICONWARNING, 0, 0); Result:= false; end; end; end; end; end; Quote Share this post Link to post Short link Share on other sites
TneRED 0 #265147 Posted April 25, 2015 (edited) #define Patch "0.9.7" [Code] function FileVersion(const FilePath: String): String; var oFS: Variant; begin oFS:= CreateOleObject('Scripting.FileSystemObject'); try Result:= oFS.GetFileVersion(FilePath); except end; end; //"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""// Function NextButtonClick(CurPageID: Integer): Boolean; begin Result := True; case CurPageID of wpSelectDir: begin if not FileExists(ExpandConstant('{app}\WorldOfTanks.exe')) then begin MsgBoxEx(0, 'Установка модов невозможна, так как по выбранному пути отсутствует клиент игры World of Tanks. Выберите правильный путь и продолжайте установку!','Внимание!!',MB_OK or MB_ICONERROR, 0, 0); Result := False; end; if FileExists(ExpandConstant('{app}')+'\WorldOfTanks.exe') then begin if FileVersion(ExpandConstant('{app}')+'\WorldOfTanks.exe') < '{#Patch}' then begin MsgBoxEx(WizardForm.Handle, 'Моды не будут работать на данной версии игры! Моды предназначены для версии патча {#Patch} ', 'Моды не подходят к данному патчу World of Tanks', MB_OK or MB_ICONWARNING, 0, 0); Result:= false; end; end; end; end; end; Я имел ввиду что мне надо скретить два скрипта) И уже ненадо сделал) Edited April 25, 2015 by TneRED Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265159 Posted April 25, 2015 Я имел ввиду что мне надо скретить два скрипта) И уже ненадо сделал) Не надо такие кнопки большие делать и шрифт не очень на мой взгляд Quote Share this post Link to post Short link Share on other sites
TneRED 0 #265160 Posted April 25, 2015 (edited) Не надо такие кнопки большие делать и шрифт не очень на мой взгляд Надо же как выделиться среди толпы) Шрифт взял с офф сайта танков) Edited April 25, 2015 by TneRED Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265161 Posted April 25, 2015 Уже что то :) Quote Share this post Link to post Short link Share on other sites
TneRED 0 #265162 Posted April 25, 2015 (edited) Уже что то :) Просто на первом скриншоте картинка изказилась Осталось сделать скриншоты а структуру папок уже сделал и моды залил обновленные большая сборка получиться) скоро еще выпущу 2 версию где будет все читерские моды и программы) Edited April 25, 2015 by TneRED Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265175 Posted April 25, 2015 Просто на первом скриншоте картинка изказилась Осталось сделать скриншоты а структуру папок уже сделал и моды залил обновленные большая сборка получиться) скоро еще выпущу 2 версию где будет все читерские моды и программы) ай ай ай, ща в цпп напишу, ахаха Quote Share this post Link to post Short link Share on other sites
guceds 2 #265179 Posted April 25, 2015 (edited) Все настроил и т.д.Но есть проблема, почему то при выборе например одного компонента, устанавливаются все. Как с этим бороться ? пути и т.д. все прописано. Edited April 25, 2015 by guceds Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265181 Posted April 25, 2015 Все настроил и т.д. Но есть проблема, почему то при выборе например одного компонента, устанавливаются все. Как с этим бороться ? пути и т.д. все прописано. компоненты покажи Quote Share this post Link to post Short link Share on other sites
guceds 2 #265182 Posted April 25, 2015 [Types] Name: custom; Description: Full installation; Flags: iscustom [Components] Name: KMP; Description: *** Mod Pack; Types: custom; Flags: exclusive Name: KMP\P; Description: "1. ****; Flags: disablenouninstallwarning Name: KMP\DP; Description: "2. ***"; Flags: disablenouninstallwarning Name: KMP\ZK; Description: "3. ***"; Flags: disablenouninstallwarning Name: KMP\PZ; Description: "4. **"; Flags: disablenouninstallwarning Name: KMP\PO; Description: "5. **"; Flags: disablenouninstallwarning Name: KMP\RG; Description: "6. ***"; Flags: disablenouninstallwarning [Files] Source: "MODS\****\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\P; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\DP; Source: "MODS\DESTRUCTIVE\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\ZK; Source: "MODS\****\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\PZ; Source: "MODS\POZICII\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\PO; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\RG; Вот Quote Share this post Link to post Short link Share on other sites
TneRED 0 #265190 Posted April 25, 2015 ай ай ай, ща в цпп напишу, ахаха Сам стопудова пользуешься гарантию даю! Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265191 Posted April 25, 2015 Сам стопудова пользуешься гарантию даю! нет [Types] Name: custom; Description: Full installation; Flags: iscustom [Components] Name: KMP; Description: *** Mod Pack; Types: custom; Flags: exclusive Name: KMP\P; Description: "1. ****; Flags: disablenouninstallwarning Name: KMP\DP; Description: "2. ***"; Flags: disablenouninstallwarning Name: KMP\ZK; Description: "3. ***"; Flags: disablenouninstallwarning Name: KMP\PZ; Description: "4. **"; Flags: disablenouninstallwarning Name: KMP\PO; Description: "5. **"; Flags: disablenouninstallwarning Name: KMP\RG; Description: "6. ***"; Flags: disablenouninstallwarning у меня все ок работает Quote Share this post Link to post Short link Share on other sites
guceds 2 #265202 Posted April 25, 2015 Странно, я указываю путь (свою пустую папку), выбираю допустим последний компонент. И у меня устанавливается все не то скинул, вот.. [Components] Name: KMP; Description: "{cm:CompName1}"; Name: KMP\P; Description: "{cm:CompName2}"; Name: KMP\DP; Description: "{cm:CompName3}"; Name: KMP\ZK; Description: "{cm:CompName4}"; Name: KMP\PZ; Description: "{cm:CompName5}"; Name: KMP\PO; Description: "{cm:CompName6}"; Name: KMP\RG; Description: "{cm:CompName7}"; [Files] Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\DESTRUCTIVE\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\POZICII\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #265211 Posted April 25, 2015 Странно, я указываю путь (свою пустую папку), выбираю допустим последний компонент. И у меня устанавливается все не то скинул, вот.. [Components] Name: KMP; Description: "{cm:CompName1}"; Name: KMP\P; Description: "{cm:CompName2}"; Name: KMP\DP; Description: "{cm:CompName3}"; Name: KMP\ZK; Description: "{cm:CompName4}"; Name: KMP\PZ; Description: "{cm:CompName5}"; Name: KMP\PO; Description: "{cm:CompName6}"; Name: KMP\RG; Description: "{cm:CompName7}"; [Files] Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\DESTRUCTIVE\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\POZICII\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; ааххаха Name: KMP; Description: "{cm:CompName1}"; Name: KMP\P; Description: "{cm:CompName2}"; Name: KMP\DP; Description: "{cm:CompName3}"; Name: KMP\ZK; Description: "{cm:CompName4}"; Name: KMP\PZ; Description: "{cm:CompName5}"; Name: KMP\PO; Description: "{cm:CompName6}"; Name: KMP\RG; Description: "{cm:CompName7}"; [Files] Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\P; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\DP; Source: "MODS\DESTRUCTIVE\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\ZK; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\PZ; Source: "MODS\POZICII\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\PO; Source: "MODS\***\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: KMP\RG; 1 Quote Share this post Link to post Short link Share on other sites