Skip to content

Commit

Permalink
Merge pull request iterative#572 from efiop/master
Browse files Browse the repository at this point in the history
win: innosetup: don't add symlink perms
  • Loading branch information
efiop authored Mar 18, 2018
2 parents 9d402a7 + e94b78d commit 39d42a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 103 deletions.
76 changes: 0 additions & 76 deletions scripts/innosetup/addSymLinkPermissions.ps1

This file was deleted.

14 changes: 0 additions & 14 deletions scripts/innosetup/addsymlink.iss

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/innosetup/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,14 @@ Source: "{#MyAppDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs c
[Tasks]
Name: modifypath; Description: Adds dvc's application directory to environmental path; Flags: checkablealone;
Name: modifypath\system; Description: Adds dvc's application directory to enviromental path for all users;
Name: addsymlinkpermissions; Description: Add permission for creating symbolic links; Flags: checkablealone;
Name: addsymlinkpermissions\system; Description: Add permissions for creating symbolic links for all users;

[Code]
const
ModPathName = 'modifypath';
ModPathPath = '{app}';
SymLinkName = 'addsymlinkpermissions';
var
ModPathType: String;
SymLinkType: String;
function GetDefaultDirName(Dummy: string): string;
begin
Expand All @@ -58,7 +54,6 @@ begin
end;
#include "modpath.iss"
#include "addsymlink.iss"
procedure CurStepChanged(CurStep: TSetupStep);
begin
Expand All @@ -69,15 +64,7 @@ begin
ModPathType := 'user';
end;
if IsTaskSelected(SymLinkName + '\system') then begin
SymLinkType := 'system';
end else begin
SymLinkType := 'user';
end;
if IsTaskSelected(ModPathName) then
ModPath();
if IsTaskSelected(SymLinkName) then
AddSymLink();
end;
end;

0 comments on commit 39d42a7

Please sign in to comment.