There was an error while loading. Please reload this page.
1 parent 7ae7c50 commit e0154c2Copy full SHA for e0154c2
RosBE-Windows/RosBE.nsi
@@ -52,7 +52,12 @@ Function .onInit
52
StrCmp $R0 0 +3
53
MessageBox MB_OK|MB_ICONEXCLAMATION "The ${PRODUCT_NAME} v${PRODUCT_VERSION} installer is already running."
54
Abort
55
- StrCpy $INSTDIR "C:\RosBE"
+
56
+ ${If} $INSTDIR == "" ; InstallDirRegKey not valid?
57
+ StrCpy $0 $ProgramFiles 1
58
+ StrCpy $INSTDIR "$0:\RosBE"
59
+ ${EndIf}
60
61
Call UninstallPrevious
62
!insertmacro INSTALLOPTIONS_EXTRACT "RosSourceDir.ini"
63
FunctionEnd
0 commit comments