code review 5901044: windows: install fixes (issue 5901044)

71 views
Skip to first unread message

jdpo...@gmail.com

unread,
Mar 24, 2012, 6:23:55 PM3/24/12
to golan...@googlegroups.com, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reviewers: golang-dev_googlegroups.com,

Message:
Hello golan...@googlegroups.com (cc: golan...@googlegroups.com),

I'd like you to review this change to
https://go.googlecode.com/hg/


Description:
windows: install fixes

* set default installation drive to C:\
* remove Win64 component property

Please review this at http://codereview.appspot.com/5901044/

Affected files:
M misc/dist/windows/installer.wxs


Index: misc/dist/windows/installer.wxs
===================================================================
--- a/misc/dist/windows/installer.wxs
+++ b/misc/dist/windows/installer.wxs
@@ -51,6 +51,7 @@
<Media Id='1' Cabinet="go.cab" EmbedCab="yes" CompressionLevel="high" />
<Condition Message="Windows 2000 or greater required."> VersionNT >=
500</Condition>
<MajorUpgrade AllowDowngrades="yes" />
+<SetDirectory Id="INSTALLDIRROOT" Value="C:\"/>

<CustomAction
Id="SetApplicationRootDirectory"
@@ -72,7 +73,7 @@

<!-- Programs Menu Shortcuts -->
<DirectoryRef Id="GoProgramShortcutsDir">
- <Component Id="Component_GoProgramShortCuts"
Guid="{f5fbfb5e-6c5c-423b-9298-21b0e3c98f4b}" Win64="$(var.IsX64Target)">
+ <Component Id="Component_GoProgramShortCuts"
Guid="{f5fbfb5e-6c5c-423b-9298-21b0e3c98f4b}">
<Shortcut
Id="GoDocServerStartMenuShortcut"
Name="GoDocServer"
@@ -102,7 +103,7 @@

<!-- Registry & Environment Settings -->
<DirectoryRef Id="GoEnvironmentEntries">
- <Component Id="Component_GoEnvironment"
Guid="{3ec7a4d5-eb08-4de7-9312-2df392c45993}" Win64="$(var.IsX64Target)">
+ <Component Id="Component_GoEnvironment"
Guid="{3ec7a4d5-eb08-4de7-9312-2df392c45993}">
<RegistryKey
Root="HKCU"
Key="Software\GoProgrammingLanguage"


Brad Fitzpatrick

unread,
Mar 24, 2012, 7:25:10 PM3/24/12
to jdpo...@gmail.com, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
LGTM

What's the result of not setting the default to C:\ ? What else would it default to or do?

ar...@mgk.ro

unread,
Mar 24, 2012, 7:32:06 PM3/24/12
to jdpo...@gmail.com, golan...@googlegroups.com, brad...@golang.org, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com

http://codereview.appspot.com/5901044/diff/4001/misc/dist/windows/installer.wxs
File misc/dist/windows/installer.wxs (right):

http://codereview.appspot.com/5901044/diff/4001/misc/dist/windows/installer.wxs#newcode54
misc/dist/windows/installer.wxs:54: <SetDirectory Id="INSTALLDIRROOT"
Value="C:\"/>
Should use %SystemDrive%, it can be different from C:\ and C:\ might not
exist.

http://codereview.appspot.com/5901044/

jdpo...@gmail.com

unread,
Mar 24, 2012, 8:10:33 PM3/24/12
to golan...@googlegroups.com, brad...@golang.org, ar...@mgk.ro, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
On 2012/03/24 23:25:10, bradfitz wrote:
> LGTM

> What's the result of not setting the default to C:\ ? What else would
it
> default to or do?

It's not always the system drive, and I'm not sure how it decides.

http://codereview.appspot.com/5901044/

jdpo...@gmail.com

unread,
Mar 24, 2012, 8:10:48 PM3/24/12
to golan...@googlegroups.com, brad...@golang.org, ar...@mgk.ro, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com

http://codereview.appspot.com/5901044/diff/4001/misc/dist/windows/installer.wxs#newcode54
misc/dist/windows/installer.wxs:54: <SetDirectory Id="INSTALLDIRROOT"
Value="C:\"/>

On 2012/03/24 23:32:06, aram wrote:
> Should use %SystemDrive%, it can be different from C:\ and C:\ might
not exist.

Good catch! Done

http://codereview.appspot.com/5901044/

jdpo...@gmail.com

unread,
Mar 24, 2012, 8:56:26 PM3/24/12
to golan...@googlegroups.com, brad...@golang.org, ar...@mgk.ro, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
If someone could build and test the windows-amd64 version it would be
much appreciated.
-joe

http://codereview.appspot.com/5901044/

Brad Fitzpatrick

unread,
Mar 24, 2012, 8:59:40 PM3/24/12
to jdpo...@gmail.com, golan...@googlegroups.com, brad...@golang.org, ar...@mgk.ro, re...@codereview-hr.appspotmail.com
Sorry, I assumed you'd already tested this when I LGTM'd.

Joseph Poirier

unread,
Mar 24, 2012, 9:58:06 PM3/24/12
to Brad Fitzpatrick, golan...@googlegroups.com, ar...@mgk.ro, re...@codereview-hr.appspotmail.com
On Sat, Mar 24, 2012 at 7:59 PM, Brad Fitzpatrick <brad...@golang.org> wrote:
> Sorry, I assumed you'd already tested this when I LGTM'd.

Sorry, I'm not setup for the amd64 builds. BTW, what's the setup
you're using to make the amd64 releases?

-joe

Brad Fitzpatrick

unread,
Mar 24, 2012, 10:07:14 PM3/24/12
to Joseph Poirier, golan...@googlegroups.com, ar...@mgk.ro, re...@codereview-hr.appspotmail.com
A 64-bit Windows VM on Rackspace.  (We use Amazon for 32-bit, and Rackspace for 64-bit, because previously Amazon didn't have cheap 64-bit instances available, but they do in the past ~month...)

It's Windows 2003 Datacenter Edition, IIRC, whatever that means.

Joseph Poirier

unread,
Mar 24, 2012, 11:04:18 PM3/24/12
to Brad Fitzpatrick, golan...@googlegroups.com, ar...@mgk.ro, re...@codereview-hr.appspotmail.com

What MinGW/GCC are you using?

I'm running a 64-bit Windows 7 with a standard MinGW/GCC setup and I
get errors when I try and build a windows-amd64 release.

Joseph Poirier

unread,
Mar 24, 2012, 11:37:31 PM3/24/12
to Brad Fitzpatrick, golan...@googlegroups.com, ar...@mgk.ro, re...@codereview-hr.appspotmail.com

I downloaded the MinGW64 that (I think) Alex put together. I was able
to build the installer and everything seems to be working.

I did get some missing file errors during the file harvest stage of
the msi builder - do you see these erros? Post installation of the
tools using the msi installer, the files that were listed as missing
during the installer build aren't actually missing!?

I'm making modifications to installer.wxs locally then cloning tip and
setting verbose mode:
> bindist -repo="C:\Go" -tag=tip -upload=false -v=true windows-amd64

Andrew Gerrand

unread,
Mar 26, 2012, 1:47:53 AM3/26/12
to jdpo...@gmail.com, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
LGTM

Tested on windows-amd64.

a...@golang.org

unread,
Mar 26, 2012, 1:48:25 AM3/26/12
to jdpo...@gmail.com, golan...@googlegroups.com, brad...@golang.org, ar...@mgk.ro, re...@codereview-hr.appspotmail.com
*** Submitted as
http://code.google.com/p/go/source/detail?r=c5a91a745639 ***

windows: install fixes

* set default installation drive to C:\
* remove Win64 component property

R=golang-dev, bradfitz, aram
CC=golang-dev
http://codereview.appspot.com/5901044

Committer: Andrew Gerrand <a...@golang.org>


http://codereview.appspot.com/5901044/

Reply all
Reply to author
Forward
0 new messages