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
This commit is contained in:
parent
1aed6a9ee4
commit
1b4a79726a
1 changed files with 16 additions and 2 deletions
|
@ -12,7 +12,7 @@ AppPublisher=John MacFarlane
|
||||||
AppPublisherURL=http://johnmacfarlane.net/pandoc/
|
AppPublisherURL=http://johnmacfarlane.net/pandoc/
|
||||||
AppSupportURL=http://johnmacfarlane.net/pandoc/
|
AppSupportURL=http://johnmacfarlane.net/pandoc/
|
||||||
AppUpdatesURL=http://johnmacfarlane.net/pandoc/
|
AppUpdatesURL=http://johnmacfarlane.net/pandoc/
|
||||||
DefaultDirName={pf}\Pandoc
|
DefaultDirName={code:DefDirRoot}\Pandoc
|
||||||
DefaultGroupName=Pandoc
|
DefaultGroupName=Pandoc
|
||||||
AllowNoIcons=yes
|
AllowNoIcons=yes
|
||||||
LicenseFile=C:\Documents and Settings\John MacFarlane\My Documents\src\pandoc\COPYING.txt
|
LicenseFile=C:\Documents and Settings\John MacFarlane\My Documents\src\pandoc\COPYING.txt
|
||||||
|
@ -20,9 +20,10 @@ OutputBaseFilename=setup
|
||||||
Compression=lzma
|
Compression=lzma
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
ChangesEnvironment=yes
|
ChangesEnvironment=yes
|
||||||
|
PrivilegesRequired=none
|
||||||
|
|
||||||
[Tasks]
|
[Tasks]
|
||||||
Name: modifypath; Description: Add application directory to your system path
|
Name: modifypath; Description: Add application directory to your path
|
||||||
|
|
||||||
[Code]
|
[Code]
|
||||||
function ModPathDir(): TArrayOfString;
|
function ModPathDir(): TArrayOfString;
|
||||||
|
@ -35,6 +36,19 @@ begin
|
||||||
end;
|
end;
|
||||||
#include "modpath.iss"
|
#include "modpath.iss"
|
||||||
|
|
||||||
|
function IsRegularUser(): Boolean;
|
||||||
|
begin
|
||||||
|
Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn);
|
||||||
|
end;
|
||||||
|
|
||||||
|
function DefDirRoot(Param: String): String;
|
||||||
|
begin
|
||||||
|
if IsRegularUser then
|
||||||
|
Result := ExpandConstant('{localappdata}')
|
||||||
|
else
|
||||||
|
Result := ExpandConstant('{pf}')
|
||||||
|
end;
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
Name: "basque"; MessagesFile: "compiler:Languages\Basque.isl"
|
Name: "basque"; MessagesFile: "compiler:Languages\Basque.isl"
|
||||||
|
|
Loading…
Reference in a new issue