dep-ui.nsis: Quote the argument filename.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 17 Nov 2011 18:09:00 +0000 (18:09 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 24 Dec 2011 11:49:08 +0000 (11:49 +0000)
Otherwise spaces cause trouble.  I'm not convinced that this is correct,
but it's what Microsoft's examples do, and I don't have a better plan.

dep-ui.nsis

index b111898..32c7bec 100644 (file)
@@ -52,7 +52,7 @@ SectionEnd
 Section "Register file type"
   WriteRegStr HKCR .dui "" dep-ui-file
   WriteRegStr HKCR .dui "Content Type" application/x-dep-ui
-  WriteRegStr HKCR dep-ui-file\shell\open\command "" "$SYSDIR\javaw.exe -cp $\"$INSTDIR\dep-ui.jar$\" Startup %1"
+  WriteRegStr HKCR dep-ui-file\shell\open\command "" "$SYSDIR\javaw.exe -cp $\"$INSTDIR\dep-ui.jar$\" Startup $\"%1$\""
 SectionEnd
 
 Section "Uninstall"