PDA

View Full Version : Why does not work the variable %PROGRAMFILESDIR% in Windows Vista?



NewsArchive
04-01-2009, 03:32 AM
Hello:

In my EXE file of setup to builder, is due to install my application and the
Firebird data base (with the paramater /SILENT).

My computer has an operating system Windows Vista in spanish, but that the
variable %PROGRAMFILESDIR% is equal to "C:\Program Files". I do not know so
that? It would have to be "C:\Archivos de programa".

This does not allow me to correctly install the FireBird data base of way
"Silent". This problem only happens for the Windows Vista. For Windows XP
there is no problem, the variable %PROGRAMFILESDIR% obtains the path
correctly (in spanish or english).

I have Setup Builder v. 6.9.2516
Web update: 6.9.2516.0 (March 3, 2009).

Thank you for your help.

Jorge Botello Juárez.
Ciudad de México.

NewsArchive
04-01-2009, 03:35 AM
Jorge,

The value for %PROGRAMFILESDIR% is *not* hard coded. That means, it always
holds the default Program Files folder for that specific machine. If
%PROGRAMFILESDIR% is "C:\Program Files" then this is the correct Program
Files folder for that specific machine.

Just check the value data for ProgramFilesDir in the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion registry key.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
04-01-2009, 03:37 AM
Hi Jorge,

The folder names you see in Vista Explorer are NOT the real folder
names! They are just "display names"! Regardless of which language your
Vista is, the REAL Foldername is always in english. Make a try: Start a
command line shell (cmd.exe) go to your root directory (for example c:\)
and type "dir". You will see: All folder names are english!

So SB shows the correct name.

Markus

NewsArchive
04-01-2009, 11:51 PM
Hello Markus:

Wow, i don't know that.
Thank you.

Atte: Jorge Botello.

NewsArchive
04-01-2009, 11:51 PM
Friedrich:

Thank you for your answer.
I think , to Firebird not going it to install of "silence" form. Or, to
install Firebird in another folder (not in program files).

Regards.

Atte: Jorge Botello.