Skip to content

Commit 7e119ee

Browse files
committed
[FIX] packaging: empty windows install path
Introduced in odoo#57155 (commit da29586). Steps to reproduce: - Install Odoo on a Windows machine - The install path defaults to Program Files as expected - Uninstall Odoo - Try to install Odoo again - The install path defaults to the empty string, forcing the user to manually set one Expected behaviour: - The install path defaults to the previous install path task-4104451 closes odoo#188866 X-original-commit: bb45f26 Signed-off-by: Christophe Monniez (moc) <[email protected]> Signed-off-by: Max Whale (mawh) <[email protected]>
1 parent 0174e04 commit 7e119ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup/win32/setup.nsi

+2
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ Function .onInit
418418
${If} $previous_install_dir == ""
419419
StrCpy $INSTDIR "$PROGRAMFILES64\Odoo ${VERSION}"
420420
WriteRegStr HKLM "${REGISTRY_KEY}" "Install_dir" "$INSTDIR"
421+
${Else}
422+
StrCpy $INSTDIR $previous_install_dir
421423
${EndIf}
422424

423425
Push $R0

0 commit comments

Comments
 (0)