R
robertns5411
I'm using the Package Wizard from Access 2003 Developer Extensions to
create an install program. I have a question though that I have not
been able to figure out.
If a user decides to install to a folder other than the default one, I
need a way to set that path to the registry. This is because another
program launches the Access program and needs a way to find it. I've
written install packages before and have always used the [TARGETDIR]
variable to set a registry variable to the application folder. But
the values I'm getting when I do this are incorrect. [TARGETDIR]
always seems to be being set to a value of "D:\". This is strange
because my drive D is not even mentioned anywhere in the install (and
certainly not the root folder!)
I've looked at the MSI file with ORCA and the Registry table looks
correct. Also the Directory table has an entry with the following
field/values: Directory=TARGETDIR, Directory Parent="" (blank), and
DefaultDir=SourceDir. This looks correct.
But I always get the value of "D:\" regardless of the user's choice.
Any suggestions?
create an install program. I have a question though that I have not
been able to figure out.
If a user decides to install to a folder other than the default one, I
need a way to set that path to the registry. This is because another
program launches the Access program and needs a way to find it. I've
written install packages before and have always used the [TARGETDIR]
variable to set a registry variable to the application folder. But
the values I'm getting when I do this are incorrect. [TARGETDIR]
always seems to be being set to a value of "D:\". This is strange
because my drive D is not even mentioned anywhere in the install (and
certainly not the root folder!)
I've looked at the MSI file with ORCA and the Registry table looks
correct. Also the Directory table has an entry with the following
field/values: Directory=TARGETDIR, Directory Parent="" (blank), and
DefaultDir=SourceDir. This looks correct.
But I always get the value of "D:\" regardless of the user's choice.
Any suggestions?