Skip to content

Commit

Permalink
Windows installers use the value of REGVER decide if Go is being upgr…
Browse files Browse the repository at this point in the history
…aded/downgraded/no-change

For windows installations, a comparison of 'Ver' registry entry (from current installation) with the REGVER variable(from the version being installed) is done to determine if Go is being upgraded/downgraded/no-change. Hence, the value for this variable must he higher than the previous versions
  • Loading branch information
jyotisingh committed Jan 16, 2017
1 parent 6bcbf4f commit ed63a02
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -131,7 +131,7 @@ class WindowsPackagingTask extends DefaultTask {
'MODULE' : packageName.replaceAll(/^go-/, ''),
'GO_ICON' : project.file('windows-shared/gocd.ico').absolutePath,
'VERSION' : "${version}-${distVersion}",
'REGVER' : "${version}${distVersion.padRight(5, '0')}".replaceAll(/\./, ''),
'REGVER' : "${version.split(/\./).collect{it.padLeft(2, '0')}.join()}${distVersion.padRight(5, '0')}",
'JAVA' : 'jre',
'JAVASRC' : jreDir,
'DISABLE_LOGGING' : System.getenv('DISABLE_WIN_INSTALLER_LOGGING') ?: false,
Expand Down

0 comments on commit ed63a02

Please sign in to comment.