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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now