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"
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.
> 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/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
Sorry, I'm not setup for the amd64 builds. BTW, what's the setup
you're using to make the amd64 releases?
-joe
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.
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
Tested on windows-amd64.
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>