Announcement

Collapse
No announcement yet.

InstallODBC.ini problem...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • InstallODBC.ini problem...

    Hi folks,

    Can anyone tell me the approriate scripting to modify my InstallODBC.ini file so as to ensure that my "DSAttrib=" command line "tracks" my connecting database file (using a relative pathway) in the installation directory.

    I have tried:

    0DBQ=%AppDir%\<database filename>.mdb but this simply appears unchanged (i.e. as %AppDir%\<database filename>.mdb) when I install the ini file.

    I'm new to Setup factory. Am I missing something basic in the syntax. I presume the InstallODBC.exe application does not require an absolute pathway ?

    Thanks, in advance,

    Glen.

  • #2
    Re: InstallODBC.ini problem...

    %AppDir% is a runtime variable that will only be expanded if used during the install. Since that variable exists as the contents of one of the files you are installing, it will never be expanded. What you need to do is first install the INI file, then use a Modify INI file action to set the entry for "DSAttrib" so it expands %AppDir%.

    Comment


    • #3
      Re: InstallODBC.ini problem...

      Thanks, Darryl. I followed your advice and everything is working fine :-)

      Comment


      • #4
        Re: InstallODBC.ini problem...

        Happy to hear it worked out for you.

        Comment

        Working...
        X