Skip to content

Commit ef89a62

Browse files
committedAug 22, 2017
creatensis.pl: don't require admin rights to create the uninstaller
1 parent f38c032 commit ef89a62

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed
 

‎ms-windows/osgeo4w/creatensis.pl

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
# Download OSGeo4W packages
1414
#
1515

16+
BEGIN {
17+
# ignore requireAdministrator execution level while producing the
18+
# uninstaller
19+
$ENV{"__COMPAT_LAYER"} = 'RUNASINVOKER';
20+
}
21+
1622
use strict;
1723
use warnings;
1824
use Getopt::Long;
@@ -448,16 +454,18 @@ sub getDeps {
448454

449455
my $run;
450456
my $instdest;
451-
unless($^O =~ /win/i) {
457+
458+
if($^O eq "cygwin") {
459+
$run = "cygstart ";
460+
$instdest = `cygpath -w \$PWD`;
461+
} else {
452462
$run = "wine ";
453463
$instdest = `winepath -w \$PWD`;
454-
$instdest =~ s/\s+$//;
455-
$instdest =~ s/\\/\\\\/g;
456-
} else {
457-
$run = "";
458-
$instdest = ".";
459464
}
460465

466+
$instdest =~ s/\s+$//;
467+
$instdest =~ s/\\/\\\\/g;
468+
461469

462470
my $args = "";
463471
$args .= " -V$verbose";
@@ -498,7 +506,9 @@ sub sign {
498506
die "makeuinst.exe not created" unless -f "makeuinst.exe";
499507

500508
unlink "uninstall.exe";
509+
chmod 0755, "makeuinst.exe";
501510
system "${run}makeuinst.exe";
511+
sleep 5;
502512
die "uninstall.exe not created" unless -f "uninstall.exe";
503513
unlink "makeuinst.exe";
504514

‎scripts/spell_check/spelling.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7101,6 +7101,7 @@ tyrranies:tyrannies
71017101
tyrrany:tyranny
71027102
ubiquitious:ubiquitous
71037103
ublisher:publisher
7104+
updat:update
71047105
udpate:update
71057106
udpated:updated
71067107
udpates:updates

0 commit comments

Comments
 (0)
Please sign in to comment.