Skip to content
⌘ NSIS Forum Archive

% .... % variables in registry

3 posts

Sam_Engenuity#

% .... % variables in registry

With the installer, I was looking up in the registry to find the path for internet explorer... however in the path, there was %programfile% which is obviously a variable containing the path for program files...
the problem with this is that the installer cannot determine what %programfile% is. Thus when i set the path to the SetOutPath and try to extract my file.... i get an error saying that %programfile% is not a real location.
Is there anyway to fix this?

Thank you very much
Samuel Godbout
RobGrant#
To expand the variable %PROGRAMFILE% into variable $0, use this syntax:


ExpandEnvStrings $0 "%PROGRAMFILE%"
-rob-