summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-07-18 15:04:10 +0100
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-07-18 15:04:10 +0100
commitaf1c598bb76bced8af10157c34cb914864716129 (patch)
treeff6d60e1eab76346a4bef08c87dd9b5a0cdfb120
parentb2b656f419b024f7bdda3528c303c8f9bf69a220 (diff)
downloadrabbitmq-server-bug25035.tar.gz
use %HOMEDIR%%HOMEPATH% instead of $PROFILEbug25035
-rw-r--r--packaging/windows-exe/rabbitmq_nsi.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in
index 91510991..f5257040 100644
--- a/packaging/windows-exe/rabbitmq_nsi.in
+++ b/packaging/windows-exe/rabbitmq_nsi.in
@@ -101,7 +101,9 @@ Section "RabbitMQ Service" RabbitService
ExpandEnvStrings $0 %COMSPEC%
ExecWait '"$0" /C "$INSTDIR\rabbitmq_server-%%VERSION%%\sbin\rabbitmq-service.bat" install'
ExecWait '"$0" /C "$INSTDIR\rabbitmq_server-%%VERSION%%\sbin\rabbitmq-service.bat" start'
- CopyFiles "$WINDIR\.erlang.cookie" "$PROFILE\.erlang.cookie"
+ ReadEnvStr $1 "HOMEDRIVE"
+ ReadEnvStr $2 "HOMEPATH"
+ CopyFiles "$WINDIR\.erlang.cookie" "$1$2\.erlang.cookie"
SectionEnd
;--------------------------------
@@ -234,4 +236,4 @@ Function findErlang
System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("ERLANG_HOME", "$0").r0'
${EndIf}
-FunctionEnd \ No newline at end of file
+FunctionEnd