]> git.lyx.org Git - features.git/blobdiff - development/Win32/packaging/installer/setup/configure.nsh
installer: output messages
[features.git] / development / Win32 / packaging / installer / setup / configure.nsh
index 74c404a42befbe0902cce740dd76f765fd88b67c..2a8093b6165870f09163f8cf34a98e2f8e388403 100644 (file)
@@ -168,15 +168,15 @@ SectionEnd
 
 Section -PSPrinter
 
-  ${If} $MultiUser.Privileges == "Admin"
-    ${OrIf} $MultiUser.Privileges == "Power"
-
-    # Delete printer
-    ExecWait '$PrinterConf /q /dl /n "Metafile to EPS Converter"'
-    # Install printer and driver
-    ExecWait '$PrinterConf /if /f "$WINDIR\inf\ntprint.inf" /b "Metafile to EPS Converter" /r "FILE:" /m "MS Publisher Imagesetter"'
-
-  ${EndIf}
+  ${if} $MultiUser.Privileges == "Admin"
+  ${orif} $MultiUser.Privileges == "Power"
+   # Delete printer
+   ExecWait '$PrinterConf /q /dl /n "Metafile to EPS Converter"'
+   # Install printer and driver
+   ExecWait '$PrinterConf /if /f "$WINDIR\inf\ntprint.inf" /b "Metafile to EPS Converter" /r "FILE:" /m "MS Publisher Imagesetter"'
+  ${else}
+   MessageBox MB_OK|MB_ICONINFORMATION "$(MetafileNotAvailable)"
+  ${endif}
 
 SectionEnd