inno setup вызывает функцию из процедуры [duplicate]

import psutil

process = filter(lambda p: p.name() == "YourProcess.exe", psutil.process_iter())
for i in process:
  print i.name,i.pid

Дайте все pids «YourProcess.exe»

1
задан Martin Prikryl 12 April 2016 в 13:55
поделиться

1 ответ

Вы должны определить SaveValueToXML перед UpdateImageLoaderConfigValues:

[Files]
Source: ...; AfterInstall: UpdateImageLoaderConfigValues()

[Code]

function SaveValueToXML(const AFileName, APath, AValue: string);
begin
  // ...
end;

procedure UpdateImageLoaderConfigValues();
begin
  SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastConfigurationPath}, ExpandConstant('{app}/Configurations'))
  SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastImagePath}, ExpandConstant('{app}/Images'))
end;
1
ответ дан Martin Prikryl 19 August 2018 в 15:20
поделиться
Другие вопросы по тегам:

Похожие вопросы: