Evat Posted January 1, 2009 Posted January 1, 2009 (edited) I am trying to install a secured mdb file.This code, running from command line, shows the path to msaccess.exe:@echo offsetlocalfor /F "tokens=* skip=4" %%G in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App paths\MSACCESS.EXE" /v Path') do set ACPATH=%%Gset ACPATH=%ACPATH:~12%echo %ACPATH%pauseI 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 Edited January 1, 2009 by Evat
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now