Bug 804067 - Add better value quoting in windows installer. r=Neil a=Callek
authorFrank Wein <bugzilla@mcsmurf.de>
Wed, 24 Oct 2012 00:52:38 -0400
changeset 13498 33330479abf8ab35ddb0f096f88aab28f932f95c
parent 13497 be7a76ff160895a83c5d8062e6306df3fd11ca42
child 13499 e12ebfb4eabe7c2ffca8ff2a480b8dd9e3a59dee
child 13501 8cb5a40800734e0c7750eb2e4e2921d60ebf554f
push idunknown
push userunknown
push dateunknown
reviewersNeil, Callek
bugs804067
Bug 804067 - Add better value quoting in windows installer. r=Neil a=Callek
suite/installer/windows/nsis/installer.nsi
--- a/suite/installer/windows/nsis/installer.nsi
+++ b/suite/installer/windows/nsis/installer.nsi
@@ -657,17 +657,17 @@ Function LaunchAppFromElevatedProcess
   ; from an elevated installer since $INSTDIR will not be set in this installer
   ${StrFilter} "${FileMainEXE}" "+" "" "" $R9
   ReadRegStr $0 HKLM "Software\Clients\StartMenuInternet\$R9\DefaultIcon" ""
   ${GetPathFromString} "$0" $0
   ${GetParent} "$0" $1
   ; Set our current working directory to the application's install directory
   ; otherwise the 7-Zip temp directory will be in use and won't be deleted.
   SetOutPath "$1"
-  Exec "$0"
+  Exec "$\"$0$\""
 FunctionEnd
 
 ################################################################################
 # Language
 
 !insertmacro MOZ_MUI_LANGUAGE 'baseLocale'
 !verbose push
 !verbose 3