I am trying to install a secured mdb file. This code, running from command line, shows the path to msaccess.exe: @echo off setlocal for /F "tokens=* skip=4" %%G in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App paths\MSACCESS.EXE" /v Path') do set ACPATH=%%G set ACPATH=%ACPATH:~12% echo %ACPATH% pause I inserted the code above into the following configuration file, but it doesnot work: ;!@Install@!UTF-8! InstallPath="C:\\Ms" GUIMode="1" For /F "tokens=* skip=4" %%G in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App paths\MSACCESS.EXE" /v Path') do set ACPATH=%%G set ACPATH=%ACPATH:~12% Shortcut="Du,{%ACPATH%msaccess.exe}, {%%T\\Pr\\Ms.mdb /WrkGrp %%T\\Ms.mdw},{},{},{Atalho_MS}, {%ACPATH%}" ;!@InstallEnd@! What am I doing wrong? My operating system is Windows xp home edition. Have a Happy New Year! Thanks in advance for any help