public inbox for [email protected]  
help / color / mirror / Atom feed
[Patch] Windows installer: allow manually setting WIXDIR as appropriate.
5+ messages / 3 participants
[nested] [flat]

* [Patch] Windows installer: allow manually setting WIXDIR as appropriate.
@ 2015-10-02 19:33  Nikolai Zhubr <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Nikolai Zhubr @ 2015-10-02 19:33 UTC (permalink / raw)
  To: pgadmin-hackers

Hi all,

How about allowing wix3 to be located in a different path, pointed to by
setting WIXDIR environment variable _manually_ before building.

The following patch allows doing so, while fully retaining previous 
behaviour in case this variable was not manually set.

(E.g. when building in a 32bit windows, the "Program Files (x86)" is not 
good enough, and I'd rather not modify the scripts for just setting a 
correct path)

--- pkg/win32/Make.bat.orig	Fri Sep 25 13:20:24 2015
+++ pkg/win32/Make.bat	Fri Oct 02 21:55:27 2015
@@ -9,7 +9,9 @@
  SET APPKEYWORDS=PostgreSQL, pgAdmin
  SET APPCOMMENTS=PostgreSQL Tools
  SET APPDESCRIPTION=Management and administration tools for the 
PostgreSQL DBMS
+IF NOT "%WIXDIR%"=="" GOTO DONE_WIXDIR
  SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
+:DONE_WIXDIR

  SET BUILDTREE="../.."


Thank you,
Nikolai


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [Patch] Windows installer: allow manually setting WIXDIR as appropriate.
@ 2015-10-02 21:10  Nikolai Zhubr <[email protected]>
  parent: Nikolai Zhubr <[email protected]>
  0 siblings, 2 replies; 5+ messages in thread

From: Nikolai Zhubr @ 2015-10-02 21:10 UTC (permalink / raw)
  To: pgadmin-hackers

Hi again,

there is some problem in my previous patch, it did not actually work, 
here goes a better one:

--- pkg/win32/Make.bat.orig	Fri Sep 25 13:20:24 2015
+++ pkg/win32/Make.bat	Fri Oct 02 21:55:27 2015
@@ -9,7 +9,9 @@
  SET APPKEYWORDS=PostgreSQL, pgAdmin
  SET APPCOMMENTS=PostgreSQL Tools
  SET APPDESCRIPTION=Management and administration tools for the 
PostgreSQL DBMS
+IF NOT (%WIXDIR%)==() GOTO DONE_WIXDIR
  SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
+:DONE_WIXDIR

  SET BUILDTREE="../.."


Thank you,
Nikolai

02.10.2015 22:33, I wrote:
> Hi all,
>
> How about allowing wix3 to be located in a different path, pointed to by
> setting WIXDIR environment variable _manually_ before building.
>
> The following patch allows doing so, while fully retaining previous
> behaviour in case this variable was not manually set.
>
> (E.g. when building in a 32bit windows, the "Program Files (x86)" is not
> good enough, and I'd rather not modify the scripts for just setting a
> correct path)
>
> --- pkg/win32/Make.bat.orig Fri Sep 25 13:20:24 2015
> +++ pkg/win32/Make.bat Fri Oct 02 21:55:27 2015
> @@ -9,7 +9,9 @@
> SET APPKEYWORDS=PostgreSQL, pgAdmin
> SET APPCOMMENTS=PostgreSQL Tools
> SET APPDESCRIPTION=Management and administration tools for the
> PostgreSQL DBMS
> +IF NOT "%WIXDIR%"=="" GOTO DONE_WIXDIR
> SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
> +:DONE_WIXDIR
>
> SET BUILDTREE="../.."
>
>
> Thank you,
> Nikolai
>
>



-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [Patch] Windows installer: allow manually setting WIXDIR as appropriate.
@ 2015-10-04 04:55  J.F. Oster <[email protected]>
  parent: Nikolai Zhubr <[email protected]>
  1 sibling, 1 reply; 5+ messages in thread

From: J.F. Oster @ 2015-10-04 04:55 UTC (permalink / raw)
  To: Nikolai Zhubr <[email protected]>; +Cc: pgadmin-hackers

Hello,

+1
I proposed the same once but had no feedback.

Nikolai, why doesn't the first version work for you? I have it done similar:

if NOT "%WIXDIR%"=="" GOTO WIXDIR_SET
SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
:WIXDIR_SET



Saturday, October 3, 2015, 12:10:30 AM, Nikolai Zhubr wrote:

NZ> Hi again,

NZ> there is some problem in my previous patch, it did not actually work, 
NZ> here goes a better one:

NZ> --- pkg/win32/Make.bat.orig     Fri Sep 25 13:20:24 2015
NZ> +++ pkg/win32/Make.bat  Fri Oct 02 21:55:27 2015
NZ> @@ -9,7 +9,9 @@
NZ>   SET APPKEYWORDS=PostgreSQL, pgAdmin
NZ>   SET APPCOMMENTS=PostgreSQL Tools
NZ>   SET APPDESCRIPTION=Management and administration tools for the 
NZ> PostgreSQL DBMS
NZ> +IF NOT (%WIXDIR%)==() GOTO DONE_WIXDIR
NZ>   SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
NZ> +:DONE_WIXDIR

NZ>   SET BUILDTREE="../.."


NZ> Thank you,
NZ> Nikolai

NZ> 02.10.2015 22:33, I wrote:
>> Hi all,
>>
>> How about allowing wix3 to be located in a different path, pointed to by
>> setting WIXDIR environment variable _manually_ before building.
>>
>> The following patch allows doing so, while fully retaining previous
>> behaviour in case this variable was not manually set.
>>
>> (E.g. when building in a 32bit windows, the "Program Files (x86)" is not
>> good enough, and I'd rather not modify the scripts for just setting a
>> correct path)
>>
>> --- pkg/win32/Make.bat.orig Fri Sep 25 13:20:24 2015
>> +++ pkg/win32/Make.bat Fri Oct 02 21:55:27 2015
>> @@ -9,7 +9,9 @@
>> SET APPKEYWORDS=PostgreSQL, pgAdmin
>> SET APPCOMMENTS=PostgreSQL Tools
>> SET APPDESCRIPTION=Management and administration tools for the
>> PostgreSQL DBMS
>> +IF NOT "%WIXDIR%"=="" GOTO DONE_WIXDIR
>> SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
>> +:DONE_WIXDIR
>>
>> SET BUILDTREE="../.."
>>
>>
>> Thank you,
>> Nikolai
>>
>>






-- 
Best regards,
 J.F.



-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [Patch] Windows installer: allow manually setting WIXDIR as appropriate.
@ 2015-10-04 13:31  Nikolai Zhubr <[email protected]>
  parent: J.F. Oster <[email protected]>
  0 siblings, 0 replies; 5+ messages in thread

From: Nikolai Zhubr @ 2015-10-04 13:31 UTC (permalink / raw)
  To: pgadmin-hackers

Hi all,
04.10.2015 7:55, J.F. Oster wrote:
> Hello,
>
> +1
> I proposed the same once but had no feedback.

I'm actually surprised by the very low feedback on the list altogether.

> Nikolai, why doesn't the first version work for you? I have it done similar:

Because if the variable itself contains quotes (and typically it does, 
to deal with spaces in paths) then AFAICS command interpreter gets 
confused when it sees yet more surrounding quotes in a comparison 
operator in a line like you listed below. I'm no expert in cmd.exe 
behaviour, but at least on windows xp it caused interpreter errors, so I 
just used a simple workaround and it then ran fine.

> if NOT "%WIXDIR%"=="" GOTO WIXDIR_SET
> SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
> :WIXDIR_SET
>
>


Thank you,
Nikolai


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [Patch] Windows installer: allow manually setting WIXDIR as appropriate.
@ 2015-10-05 15:16  Dave Page <[email protected]>
  parent: Nikolai Zhubr <[email protected]>
  1 sibling, 0 replies; 5+ messages in thread

From: Dave Page @ 2015-10-05 15:16 UTC (permalink / raw)
  To: Nikolai Zhubr <[email protected]>; +Cc: pgadmin-hackers

Thanks - patch applied.

On Fri, Oct 2, 2015 at 10:10 PM, Nikolai Zhubr <[email protected]> wrote:
> Hi again,
>
> there is some problem in my previous patch, it did not actually work, here
> goes a better one:
>
> --- pkg/win32/Make.bat.orig     Fri Sep 25 13:20:24 2015
> +++ pkg/win32/Make.bat  Fri Oct 02 21:55:27 2015
> @@ -9,7 +9,9 @@
>  SET APPKEYWORDS=PostgreSQL, pgAdmin
>  SET APPCOMMENTS=PostgreSQL Tools
>  SET APPDESCRIPTION=Management and administration tools for the PostgreSQL
> DBMS
> +IF NOT (%WIXDIR%)==() GOTO DONE_WIXDIR
>  SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
> +:DONE_WIXDIR
>
>  SET BUILDTREE="../.."
>
>
> Thank you,
> Nikolai
>
> 02.10.2015 22:33, I wrote:
>>
>> Hi all,
>>
>> How about allowing wix3 to be located in a different path, pointed to by
>> setting WIXDIR environment variable _manually_ before building.
>>
>> The following patch allows doing so, while fully retaining previous
>> behaviour in case this variable was not manually set.
>>
>> (E.g. when building in a 32bit windows, the "Program Files (x86)" is not
>> good enough, and I'd rather not modify the scripts for just setting a
>> correct path)
>>
>> --- pkg/win32/Make.bat.orig Fri Sep 25 13:20:24 2015
>> +++ pkg/win32/Make.bat Fri Oct 02 21:55:27 2015
>> @@ -9,7 +9,9 @@
>> SET APPKEYWORDS=PostgreSQL, pgAdmin
>> SET APPCOMMENTS=PostgreSQL Tools
>> SET APPDESCRIPTION=Management and administration tools for the
>> PostgreSQL DBMS
>> +IF NOT "%WIXDIR%"=="" GOTO DONE_WIXDIR
>> SET WIXDIR="C:\Program Files (x86)\Windows Installer XML v3\bin"
>> +:DONE_WIXDIR
>>
>> SET BUILDTREE="../.."
>>
>>
>> Thank you,
>> Nikolai
>>
>>
>
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers



-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2015-10-05 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-10-02 19:33 [Patch] Windows installer: allow manually setting WIXDIR as appropriate. Nikolai Zhubr <[email protected]>
2015-10-02 21:10 ` Nikolai Zhubr <[email protected]>
2015-10-04 04:55   ` J.F. Oster <[email protected]>
2015-10-04 13:31     ` Nikolai Zhubr <[email protected]>
2015-10-05 15:16   ` Dave Page <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox