licimer 1 #283588 Posted July 20, 2015 (edited) Да было такое. И при чем работало. Но в какой то момент перестало. После того как обновил сборку. Но самое интересное просто добавил модов, картинок и описание. В самом коде не ковырялся даже. В чем может быть причина? Жесть... перестало сохранять после замены Название инстоллятора #define MyAppName Есть варианты? Из-за чего? Kotyarko_O у меня эта строчка выглядит так WizardForm.DirBrowseButton.Left:=WizardForm.DirBrowseButton.Left + HeightOffset; Ни каких числовых значений для корректирования длины строки Edited July 20, 2015 by licimer Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #283597 Posted July 20, 2015 (edited) Жесть... перестало сохранять после замены этих данных #define MyAppName #define MyInfoVer #define MyAppVer #define Patch ну хз. После изменения имени\версии ничего в этом направлении не должно ломаться. Может, ещё что-то делал. у меня эта строчка выглядит так WizardForm.DirBrowseButton.Left:=WizardForm.DirBrowseButton.Left + HeightOffset; Ни каких числовых значений для корректирования длины строки Тебе бы английский подучить и основы Делфи. Числовое значение присваивается переменным WidthOffset и HeightOffset выше по коду. Вообще тебе надо так: WizardForm.DirBrowseButton.Left := WizardForm.DirBrowseButton.Left + WidthOffset; WizardForm.DirEdit.Width := WizardForm.DirEdit.Width + WidthOffset; Если переменная WidthOffset объявлена. Ну тут у многих скрипты по какому-то одному шаблону склёпаны, так что должна быть. Edited July 20, 2015 by Kotyarko_O Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #283690 Posted July 21, 2015 (edited) del Edited July 21, 2015 by Dark_Knight_MiX 1 Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284011 Posted July 22, 2015 как использовать 7za для распаковки из src что то не понял почему не хочет распаковывать Exec(ExpandConstant('{src}\7za.exe'), 'x -y ' + expandconstant('{src}\Mods\00_tank_tutorial.pkg') + '-o ' + expandconstant('{app}\res_mods1'), '', SW_Show, ewWaitUntilTerminated, ResultCode); 1 Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284012 Posted July 22, 2015 , а оттуда ли ты распаковываешь? Знаешь, куда ведёт {src}? 1 Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284013 Posted July 22, 2015 (edited) , а оттуда ли ты распаковываешь? Знаешь, куда ведёт {src}? да, ведется от exe файла установщика или нет Edited July 22, 2015 by Dark_Knight_MiX Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284015 Posted July 22, 2015 (edited) , а так? Exec(ExpandConstant('{src}\7za.exe'), 'x -y Mods\00_tank_tutorial.pkg -o' + expandconstant('{app}\res_mods1'), '', SW_Show, ewWaitUntilTerminated, ResultCode); Edited July 22, 2015 by Kotyarko_O 1 Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284018 Posted July 22, 2015 , а так? Exec(ExpandConstant('{src}\7za.exe'), 'x -y Mods\00_tank_tutorial.pkg -o' + expandconstant('{app}\res_mods1'), '', SW_Show, ewWaitUntilTerminated, ResultCode); большое спасибо Kotyarko_O, а из tmp так же можно сделать? Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284026 Posted July 22, 2015 а из tmp так же можно сделать? Да, конечно. Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284027 Posted July 22, 2015 Да, конечно. как,а то не врубаюсь Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284028 Posted July 22, 2015 (edited) как,а то не врубаюсь Ну да, я должен был догадаться) [Files] Source: "7za.exe"; Flags: dontcopy Source: "Mods\00_tank_tutorial.pkg"; Flags: dontcopy .... ExtractTemporaryFile('7za.exe'); ExtractTemporaryFile('00_tank_tutorial.pkg'); Exec(ExpandConstant('{tmp}\7za.exe'), 'x -y 00_tank_tutorial.pkg -o' + expandconstant('{app}\res_mods1'), '', SW_Show, ewWaitUntilTerminated, ResultCode); Edited July 22, 2015 by Kotyarko_O 1 Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284029 Posted July 22, 2015 Ну да, я должен был догадаться) [Files] Source: "7za.exe"; Flags: dontcopy Source: "Mods\00_tank_tutorial.pkg"; Flags: dontcopy .... ExtractTemporaryFile('7za.exe'); ExtractTemporaryFile('00_tank_tutorial.pkg'); Exec(ExpandConstant('{tmp}\7za.exe'), 'x -y 00_tank_tutorial.pkg -o' + expandconstant('{app}\res_mods1'), '', SW_Show, ewWaitUntilTerminated, ResultCode); ага, понял а если архив лежит рядом с exe то как сделать, что бы без секции Files Quote Share this post Link to post Short link Share on other sites
AtotIK 580 #284035 Posted July 22, 2015 Если распаковка идёт в папку с игрой, то лишний гемор распаковывать всё в Temp, а потом в папку с игрой. Проще уже оперировать непосредственно в {app}. Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284036 Posted July 22, 2015 Если распаковка идёт в папку с игрой, то лишний гемор распаковывать всё в Temp, а потом в папку с игрой. Проще уже оперировать непосредственно в {app}. мне нужно что бы сам 7za был в tmp, а извлекалось из src Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284039 Posted July 22, 2015 мне нужно что бы сам 7za был в tmp Почему? Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284040 Posted July 22, 2015 Почему? не хочу что бы лежал с exe :) спасибо, вопрос решил, туплю бывает Quote Share this post Link to post Short link Share on other sites
licimer 1 #284684 Posted July 25, 2015 Господа знающие.. ну может кто подскажет почему когда меняю #define MyAppName то перестает запоминать предыдущий выбор модов? Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284696 Posted July 25, 2015 (edited) Господа знающие.. ну может кто подскажет почему когда меняю #define MyAppName то перестает запоминать предыдущий выбор модов? Параметр UninstallLogMode указан? А вообще нужно смотреть код. Edited July 25, 2015 by Kotyarko_O Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #284719 Posted July 25, 2015 Господа знающие.. ну может кто подскажет почему когда меняю #define MyAppName то перестает запоминать предыдущий выбор модов? у тебя кастомные стр компонентов? AppId прописан? Quote Share this post Link to post Short link Share on other sites
licimer 1 #284723 Posted July 25, 2015 Параметр UninstallLogMode указан? А вообще нужно смотреть код. нет не указан. подскажи где глянуть инфу по данному параметру у тебя кастомные стр компонентов? AppId прописан? нет не прописан Quote Share this post Link to post Short link Share on other sites