Example from
Inno Setup Help[
^]
[Run]
Filename: "{app}\INIT.EXE"; Parameters: "/x"
Your code with a wildcard probably won't work, try like this:
Filename: "C:\Users\Administrator\Desktop\Nov 1\myapp.exe";
Parameters: "Password=global"
If you want to use a function, you can use something like this:
[Run]
Filename: "SomeProgram.exe"; Parameters: {code:GetParams}
[Code]
var
ConfigPage: TInputQueryWizardPage;
function GetParams(Value: string): string;
begin
Result := ConfigPage.Values[0];
end;
procedure InitializeWizard;
begin
{ Create the page }
ConfigPage :=
CreateInputQueryPage(
wpWelcome, 'User input', 'User input',
'Please specify the following information, then click Next.');
{ Add items (False means it's not a password edit) }
ConfigPage.Add('Input here:', False);
{ Set initial values (optional) }
ConfigPage.Values[0] := ExpandConstant('hello');
end;
See:
inno-setup-how-to-pass-variable-from-code-to-run-or-other-section[
^]