TLama

Untitled

Aug 1st, 2013
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.67 KB | None | 0 0
  1. [Setup]
  2. AppName=My Program
  3. AppVersion=1.5
  4. DefaultDirName={pf}\My Program
  5. OutputDir=userdocs:Inno Setup Examples Output
  6.  
  7. [Files]
  8. Source: "MyProg.exe"; DestDir: "{app}"; BeforeInstall: OnBeforeInstall
  9. Source: "MyProg.chm"; DestDir: "{app}"; BeforeInstall: OnBeforeInstall
  10. Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme; BeforeInstall: OnBeforeInstall
  11.  
  12. [Code]
  13. procedure OnBeforeInstall;
  14. var
  15.   CurrentFile: string;
  16.   CurrentFolder: string;
  17. begin
  18.   CurrentFile := ExpandConstant(CurrentFileName);
  19.   CurrentFolder := ExtractFilePath(ExpandConstant(CurrentFileName));
  20.   MsgBox('Folder: ' + CurrentFolder + #13#10 + 'File: ' + CurrentFile, mbInformation, MB_OK);
  21. end;
Advertisement
Add Comment
Please, Sign In to add comment