Installing Access application with several versions of Acces - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Reidar
Posts: 2
Joined: Tue Dec 09, 2008 6:32 pm

Installing Access application with several versions of Acces

I have an Access application which starts like this:
c:\program files\microsoft office\office12\msaccess.exe h:\appdir\application.mdb /wrkgrp H:\appdir\wrkgrpfile.mdw.
The problem is that I don't know what kind of version of MSOffice the users have.
It could be Access2000, Access2003 or Access2007.
Microsoft uses different paths for each version of office like
Program Files\MsOffice for the 2000 version
Program Files\MsOffice11 for the 2003 version
Program Files\MsOffice12 for the 2007 version
And in addition you have country specific Program Dir's, but I suppose you could use [ProgramDir]
for this.
Question is how do I get the right path shown in Bold above?

regards
ReidarT
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Installing Access application with several versions of Acces

Presumably your database is not version specific so;

You already know that msaccess.exe will be in a subset of C:/Program Files/MS Office/Office* so why not creat three searces to determine which is present and then dependent upon the result use a custon action to set your path.

Dom

Return to “Common Problems”