git.iko.soy/typeable/pandoc
on 1.8.1 help sign in
typeable/pandoc/windows/pandoc-setup.iss
75 lines 2.8 kB history raw
1; Script generated by the Inno Setup Script Wizard.
2; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
4[Setup]
5; NOTE: The value of AppId uniquely identifies this application.
6; Do not use the same AppId value in installers for other applications.
7; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
8AppId={{3CEE7B38-B19D-4980-9CAD-DF53600BD4CA}
9AppName=Pandoc
10AppVerName=Pandoc 1.8
11AppPublisher=John MacFarlane
12AppPublisherURL=http://johnmacfarlane.net/pandoc/
13AppSupportURL=http://johnmacfarlane.net/pandoc/
14AppUpdatesURL=http://johnmacfarlane.net/pandoc/
15DefaultDirName={code:DefDirRoot}\Pandoc
16DefaultGroupName=Pandoc
17AllowNoIcons=yes
18LicenseFile="..\COPYING.txt"
19OutputBaseFilename=pandoc-setup
20Compression=lzma
21SolidCompression=yes
22ChangesEnvironment=yes
23PrivilegesRequired=none
25[Tasks]
26Name: modifypath; Description: Add application directory to your path
28[Code]
29function ModPathDir(): TArrayOfString;
30var
31 Dir: TArrayOfString;
32begin
33 setArrayLength(Dir, 1)
34 Dir[0] := ExpandConstant('{app}\bin');
35 Result := Dir;
36end;
37#include "modpath.iss"
39function IsRegularUser(): Boolean;
40begin
41 Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn);
42end;
44function DefDirRoot(Param: String): String;
45begin
46if IsRegularUser then
47 Result := ExpandConstant('{localappdata}')
48else
49 Result := ExpandConstant('{pf}')
50end;
52[Languages]
53Name: "english"; MessagesFile: "compiler:Default.isl"
55[Files]
56Source: "..\dist\build\pandoc\pandoc.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
57Source: "..\dist\build\markdown2pdf\markdown2pdf.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
58Source: "..\README.html"; DestDir: "{app}"; Flags: ignoreversion
59Source: "..\COPYRIGHT.txt"; DestDir: "{app}"; Flags: ignoreversion
60Source: "..\COPYING.txt"; DestDir: "{app}"; Flags: ignoreversion
61Source: "..\reference.odt"; DestDir: "{app}"; Flags: ignoreversion
62Source: "..\epub.css"; DestDir: "{app}"; Flags: ignoreversion
63Source: "..\default.csl"; DestDir: "{app}"; Flags: ignoreversion
64Source: "..\templates\*"; DestDir: "{app}\templates"; Flags: ignoreversion
65Source: "..\data\*"; DestDir: "{app}\data"; Flags: ignoreversion
66Source: "..\s5\default\*"; DestDir: "{app}\s5\default"; Flags: ignoreversion
67Source: "..\slidy\*"; DestDir: "{app}\slidy"; Flags: ignoreversion
68Source: "pcre-license.txt"; DestDir: "{app}"; Flags: ignoreversion
69Source: "pcre3.dll"; DestDir: "{sys}"; Flags: onlyifdoesntexist sharedfile
70; NOTE: Don't use "Flags: ignoreversion" on any shared system files
72[Icons]
73Name: "{group}\{cm:UninstallProgram,Pandoc}"; Filename: "{uninstallexe}"
74Name: "{group}\Pandoc User's Guide"; Filename: "{app}\README.html"