Bug 1424670 - Don't hard code a Program Files path. r?agashlin
MozReview-Commit-ID: 6mTwiyvvrVk
--- a/browser/installer/windows/nsis/stub.nsi
+++ b/browser/installer/windows/nsis/stub.nsi
@@ -1883,21 +1883,21 @@ Function ShouldInstall64Bit
System::Call "*$1(i, i, l.r2, l, l, l, l, l, l)"
System::Free $1
${If} $2 L<= ${RAM_NEEDED_FOR_64BIT}
Return
${EndIf}
; Lenovo OneKey Theater can theoretically be in a directory other than this
; one, because some installer versions let you change it, but it's unlikely.
- ${If} ${FileExists} "C:\Program Files (x86)\Lenovo\Onekey Theater\windowsapihookdll64.dll"
+ ${If} ${FileExists} "$PROGRAMFILES32\Lenovo\Onekey Theater\windowsapihookdll64.dll"
Return
${EndIf}
- ${If} ${FileExists} "C:\Program Files (x86)\Lenovo\Energy Management\Energy Management.exe"
+ ${If} ${FileExists} "$PROGRAMFILES32\Lenovo\Energy Management\Energy Management.exe"
Return
${EndIf}
StrCpy $0 1
FunctionEnd
Section
SectionEnd