diff --git a/emstudio32.cross.nsi b/emstudio32.cross.nsi index f4654db..044c887 100644 --- a/emstudio32.cross.nsi +++ b/emstudio32.cross.nsi @@ -57,8 +57,11 @@ Section "EMStudio (Required)" ;No components page, name is not important SetOutPath "$INSTDIR\dashboards" File "core/src/gauges.qml" SetOutPath "$INSTDIR\plugins" +!ifndef PLUGIN File "core/plugins/libfreeemsplugin.a" - +!else + File "core/plugins/${PLUGIN}" +!endif ; Write the installation path into the registry WriteRegStr HKLM SOFTWARE\EMStudio "Install_Dir" "$INSTDIR" diff --git a/emstudio64.cross.nsi b/emstudio64.cross.nsi index a7a738a..6f26180 100644 --- a/emstudio64.cross.nsi +++ b/emstudio64.cross.nsi @@ -57,7 +57,11 @@ Section "EMStudio (Required)" ;No components page, name is not important SetOutPath "$INSTDIR\dashboards" File "core/src/gauges.qml" SetOutPath "$INSTDIR\plugins" +!ifndef PLUGIN File "core/plugins/libfreeemsplugin.a" +!else + File "core/plugins/${PLUGIN}" +!endif ; Write the installation path into the registry WriteRegStr HKLM SOFTWARE\EMStudio "Install_Dir" "$INSTDIR"