Advertisement
TLama

Untitled

Sep 10th, 2014
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.57 KB | None | 0 0
  1. [Setup]
  2. AppName=My Program
  3. AppVersion=1.5
  4. DefaultDirName={pf}\My Program
  5.  
  6. [Run]
  7. Filename: "{app}\MyProg.exe"; Parameters: "{code:GetVariableByIndex|1}"
  8. Filename: "{app}\MyProg.exe"; Parameters: "{code:GetVariableByIndex|2}"
  9.  
  10. [Code]
  11. var
  12.   FirstVariable: string;
  13.   SecondVariable: string;
  14.  
  15. function GetVariableByIndex(Param: string): string;
  16. begin
  17.   case Param[1] of
  18.     '1': Result := FirstVariable;
  19.     '2': Result := SecondVariable;
  20.   end;
  21. end;
  22.  
  23. procedure InitializeWizard;
  24. begin
  25.   FirstVariable := 'FirstVariable';
  26.   SecondVariable := 'SecondVariable';
  27. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement