diff options
author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-07-18 15:04:10 +0100 |
---|---|---|
committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-07-18 15:04:10 +0100 |
commit | af1c598bb76bced8af10157c34cb914864716129 (patch) | |
tree | ff6d60e1eab76346a4bef08c87dd9b5a0cdfb120 | |
parent | b2b656f419b024f7bdda3528c303c8f9bf69a220 (diff) | |
download | rabbitmq-server-bug25035.tar.gz |
use %HOMEDIR%%HOMEPATH% instead of $PROFILEbug25035
-rw-r--r-- | packaging/windows-exe/rabbitmq_nsi.in | 6 |
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 |