Jump to content

Recommended Posts

Posted (edited)

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

Edited by Evat

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...