git.iko.soy/typeable/pandoc
on master help sign in
pandoc-setup.iss: Don't require admin privileges to run installer.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1465 788f1e2b-df1e-0410-8736-df70ead52e1b

commit1b4a79726a5a6e9bf1c7fc5ba210cd0417e80514 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 18 Oct 2008, 18:48 (18 years ago) parent1aed6a9
1 file changed+16−2
windows/pandoc-setup.iss+16−2
windows/pandoc-setup.iss+16−2
@@ -12,7 +12,7 @@ AppPublisher=John MacFarlane
1212AppPublisherURL=http://johnmacfarlane.net/pandoc/
1313AppSupportURL=http://johnmacfarlane.net/pandoc/
1414AppUpdatesURL=http://johnmacfarlane.net/pandoc/
15−DefaultDirName={pf}\Pandoc
15+DefaultDirName={code:DefDirRoot}\Pandoc
1616DefaultGroupName=Pandoc
1717AllowNoIcons=yes
1818LicenseFile=C:\Documents and Settings\John MacFarlane\My Documents\src\pandoc\COPYING.txt
@@ -20,9 +20,10 @@ OutputBaseFilename=setup
2020Compression=lzma
2121SolidCompression=yes
2222ChangesEnvironment=yes
23+PrivilegesRequired=none
2324
2425[Tasks]
25−Name: modifypath; Description: Add application directory to your system path
26+Name: modifypath; Description: Add application directory to your path
2627
2728[Code]
2829function ModPathDir(): TArrayOfString;
@@ -35,6 +36,19 @@ begin
3536end;
3637#include "modpath.iss"
3738
39+function IsRegularUser(): Boolean;
40+begin
41+ Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn);
42+end;
43+
44+function DefDirRoot(Param: String): String;
45+begin
46+if IsRegularUser then
47+ Result := ExpandConstant('{localappdata}')
48+else
49+ Result := ExpandConstant('{pf}')
50+end;
51+
3852[Languages]
3953Name: "english"; MessagesFile: "compiler:Default.isl"
4054Name: "basque"; MessagesFile: "compiler:Languages\Basque.isl"