Jump to content

Evat

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Brazil

About Evat

Evat's Achievements

0

Reputation

  1. 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
  2. I use your module to install a secured database file. For the Shortcut I need to put the path to msaccess.exe in the src_file_path. The problem is that this path varies depending on the version of msaccess. Some possibillities are: c:\\Program files\\Microsoft Office\\Office\\msaccess.exe c:\\Program files\\Microsoft Office10\\Office\\msaccess.exe c:\\Program files\\Microsoft Office11\\Office\\msaccess.exe Is there a way to get this path from the Windows registry? How do I do this in Windows XP? Thanks in advance for any help, Efigenio
×
×
  • Create New...