TLama

Untitled

Nov 21st, 2013
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.75 KB | None | 0 0
  1. #define MyAppName "My Program"
  2. #define MyAppExeName "MyProg.exe"
  3.  
  4. [Setup]
  5. AppName={#MyAppName}
  6. AppVersion=1.5
  7. DefaultDirName={pf}\{#MyAppName}
  8. ChangesAssociations=yes
  9. OutputDir=userdocs:Inno Setup Examples Output
  10.  
  11. [Files]
  12. Source: "MyProg.exe"; DestDir: "{app}"
  13.  
  14. [Registry]
  15. Root: HKCR; Subkey: ".wcalc"; ValueType: string; ValueName: ""; ValueData: "{#MyAppName}"; Flags: uninsdeletevalue
  16. Root: HKCR; Subkey: "{#MyAppName}"; ValueType: string; ValueName: ""; ValueData: "BHKW-Calc Datei"; Flags: uninsdeletekey
  17. Root: HKCR; Subkey: "{#MyAppName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\icon.ico,0"
  18. Root: HKCR; Subkey: "{#MyAppName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
Advertisement
Add Comment
Please, Sign In to add comment