Problem with Package Wizard

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?
 
A

Albert D. Kallal

You're gonna have to give further information and explain where using the
targetDIr variable.

Are you able to access this variable using the package wizard? I was not
aware that the package wizard has any provisions for using variables when
making the package.

Where in the package wizard are you using this variable?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top