]> git.lyx.org Git - lyx.git/blobdiff - development/Win32/packaging/installer/LyXWinInstaller/ConfigLyX.nsh
Changed comment character from ';' to '#*
[lyx.git] / development / Win32 / packaging / installer / LyXWinInstaller / ConfigLyX.nsh
index 3355ff3f3e7cb42e4248b051e7d88debef01369c..9c6d515ed1875fadf0ff3365057308d7101479ef 100644 (file)
@@ -1,7 +1,7 @@
 Function ConfigureLyX
; configures LyX
# configures LyX
 
-  ; create the PathPrefix
+  # create the PathPrefix
   StrCpy $PathPrefix "$INSTDIR\bin"
   ${if} $PythonPath != ""
     StrCpy $PathPrefix "$PathPrefix;$PythonPath"
@@ -25,7 +25,7 @@ Function ConfigureLyX
     StrCpy $PathPrefix "$PathPrefix;$ImageEditorPath"
   ${endif}
   
-  ; Set a path prefix in lyxrc.dist
+  # Set a path prefix in lyxrc.dist
   ClearErrors
   ${if} "$PathPrefix" != ""
    Delete "$INSTDIR\Resources\lyxrc.dist"
@@ -36,7 +36,7 @@ Function ConfigureLyX
     MessageBox MB_OK|MB_ICONEXCLAMATION "$(ModifyingConfigureFailed)"
   ${endif}
 
-  ; Create a batch file to start LyX with the environment variables set
+  # Create a batch file to start LyX with the environment variables set
   ClearErrors
   Delete "${PRODUCT_BAT}"
   FileOpen $R1 "${PRODUCT_BAT}" w
@@ -48,17 +48,17 @@ Function ConfigureLyX
   IfErrors 0 +2
    MessageBox MB_OK|MB_ICONEXCLAMATION "$(CreateCmdFilesFailed)"
 
-  ; set the preferences file
-  ; (having one preferences file that is modified to fit the needs is possible but not easy to maintain
-  ; therefore simply delete the files that shouldn't be used)
-  ; if not Acrobat or Adobe Reader is used
-  ${if} $Acrobat == "None" ; clear the entries in the preferences file that define PDFViewWin7 or 8 as viewer
+  # set the preferences file
+  # (having one preferences file that is modified to fit the needs is possible but not easy to maintain
+  # therefore simply delete the files that shouldn't be used)
+  # if not Acrobat or Adobe Reader is used
+  ${if} $Acrobat == "None" # clear the entries in the preferences file that define PDFViewWin7 or 8 as viewer
    Rename "$INSTDIR\Resources\preferencesGSview" "$INSTDIR\Resources\preferences"
    Delete "$INSTDIR\Resources\preferences7"
    Delete "$INSTDIR\Resources\preferences8"
   ${endif}
-  ; if Acrobat or Adobe Reader is used
-  ${if} $Acrobat == "7" ; used for all Acrobat (Adobe Reader) versions <= 7
+  # if Acrobat or Adobe Reader is used
+  ${if} $Acrobat == "7" # used for all Acrobat (Adobe Reader) versions <= 7
    Rename "$INSTDIR\Resources\preferences7" "$INSTDIR\Resources\preferences"
    Delete "$INSTDIR\Resources\preferences8"
    Delete "$INSTDIR\Resources\preferencesGSview"
@@ -69,7 +69,7 @@ Function ConfigureLyX
    Delete "$INSTDIR\Resources\preferencesGSview"
   ${endif}
 
-  ; register LyX
+  # register LyX
   ${if} $CreateFileAssociations == "true"
    WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "${PRODUCT_EXE}"
   ${endif}
@@ -86,36 +86,36 @@ Function ConfigureLyX
   WriteRegDWORD SHCTX "${PRODUCT_UNINST_KEY}" "NoModify" 0x00000001
   WriteRegDWORD SHCTX "${PRODUCT_UNINST_KEY}" "NoRepair" 0x00000001
 
-  ; create start menu entry
+  # create start menu entry
   SetOutPath "$INSTDIR\bin"
   CreateDirectory "$SMPROGRAMS\$StartmenuFolder"
   CreateShortCut "$SMPROGRAMS\$StartmenuFolder\${PRODUCT_NAME}.lnk" "${PRODUCT_BAT}" "" "${PRODUCT_EXE}"
   SetOutPath "$INSTDIR"
   CreateShortCut "$SMPROGRAMS\$StartmenuFolder\Uninstall.lnk" "${PRODUCT_UNINSTALL_EXE}"
 
-  ; create desktop icon
+  # create desktop icon
   ${if} $CreateDesktopIcon == "true"
    SetOutPath "$INSTDIR\bin"
    CreateShortCut "$DESKTOP\LyX ${PRODUCT_VERSION}.lnk" "${PRODUCT_BAT}" "" "${PRODUCT_EXE}"
   ${endif}
 
-  ; register the extension .lyx
+  # register the extension .lyx
   ${if} $CreateFileAssociations == "true"
-   ; write informations about file type
+   # write informations about file type
    WriteRegStr SHCTX "Software\Classes\${PRODUCT_REGNAME}" "" "${PRODUCT_NAME} Document"
    WriteRegStr SHCTX "Software\Classes\${PRODUCT_REGNAME}\DefaultIcon" "" "${PRODUCT_EXE}"
    WriteRegStr SHCTX "Software\Classes\${PRODUCT_REGNAME}\Shell\open\command" "" '"${LAUNCHER_EXE}" "%1"'
-   ; write informations about file extensions
+   # write informations about file extensions
    WriteRegStr SHCTX "Software\Classes\${PRODUCT_EXT}" "" "${PRODUCT_REGNAME}"
    WriteRegStr SHCTX "Software\Classes\${PRODUCT_EXT}" "Content Type" "${PRODUCT_MIME_TYPE}"  
-   ; refresh shell
+   # refresh shell
    System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
   ${endif}
 
-  ; create the LyX Application Data folder for all users
-  ; this folder is automatically created by LyX when it is first started but we want to start LyX with a specific session file,
-  ; so we create this folder before LyX starts and copy there the session file
-  Call CreateAppPathSub ; function from LyXUtils.nsh
+  # create the LyX Application Data folder for all users
+  # this folder is automatically created by LyX when it is first started but we want to start LyX with a specific session file,
+  # so we create this folder before LyX starts and copy there the session file
+  Call CreateAppPathSub # function from LyXUtils.nsh
 
 FunctionEnd