All pastes #2064 Raw Edit

A test

public text v1 · immutable
#2064 ·published 2004-11-12 19:35 UTC
rendered paste body
*** svk.org.nsi	Sun Oct 24 23:34:34 2004
--- svk.nsi	Wed Nov  3 23:49:01 2004
***************
*** 35,48 ****
  		"SOFTWARE\${MUI_COMPANY}\${MUI_PRODUCT}" "" "$INSTDIR"
      SetOverwrite on
      SetOutPath $INSTDIR
-     File /r ..\svk.bat
      File /r ..\bin
      File /r ..\lib
      File /r ..\site
      File /r ..\win32
      WriteUninstaller "$INSTDIR\Uninstall.exe"
  
!     Push $INSTDIR
      Call AddToPath
  SectionEnd
  
--- 35,54 ----
  		"SOFTWARE\${MUI_COMPANY}\${MUI_PRODUCT}" "" "$INSTDIR"
      SetOverwrite on
      SetOutPath $INSTDIR
      File /r ..\bin
      File /r ..\lib
      File /r ..\site
      File /r ..\win32
+     
+     ; Generate bootstrap batch file on the fly using $INSTDIR
+     FileOpen $1 "$INSTDIR\bin\svk.bat" w
+     FileWrite $1 "@$\"$INSTDIR\bin\perl$\" $\"$INSTDIR\site\bin\svk$\" %1 %2 %3 %4 %5 %6 %7 %8 %9"
+     FileClose $1
+     
      WriteUninstaller "$INSTDIR\Uninstall.exe"
  
!     ; Add \bin directory to the PATH for svk.bat and DLLs
!     Push $INSTDIR\bin
      Call AddToPath
  SectionEnd