[Gpg4win-devel] [PATCH 2/4] Support $TEMP on nsi

Ángel González angel at pgp.16bits.net
Tue Jun 21 00:01:01 CEST 2016


inst-gnupg-w32.nsi:35: unsupported out path: "$TEMP"
---
 src/make-msi.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/make-msi.pl b/src/make-msi.pl
index df5bbe0..ef584cd 100644
--- a/src/make-msi.pl
+++ b/src/make-msi.pl
@@ -777,6 +777,10 @@ sub gpg4win_nsis_stubs
 	    {
 	        $parser->{outpath} = "%CommonAppDataFolder%\\" . $1;
 	    }
+	    elsif ($outpath =~ m/^"\$TEMP\\?(.*)"$/)
+	    {
+	        $parser->{outpath} = "%TEMP%\\" . $1;
+	    }
 	    else
 	    {
 		fail "$file:$.: unsupported out path: $args[0]";
-- 
2.8.3



More information about the Gpg4win-devel mailing list