ZombieCat
Posts: 6
Joined: Sat Jan 05, 2019 1:11 am

Access 2016 Runtime silent install

I originally had no issues with silent installs of the Access 2007 Runtime but after a lot of research MS has changed how the newer (2010 and higher) Access Runtimes work. Searching on the forum only brings me info about 2007 which is no longer valid.

I found you have to now pass a config file (xml) to the setup.exe that is extracted the Access Run Time download.

Here is a sample config file xml

<Configuration Product="AccessRT">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Setting Id="SETUP_REBOOT" Value="NEVER" />
</Configuration>

After reading this https://www.advancedinstaller.com/user- ... isite.html I thought it was a matter of creating a config along the prerequistie. This does not work.

I have verified from a cmd prompt the sample config file works when passed to the extracted exe but not to the prerequisite exe.

Jenelle
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Access 2016 Runtime silent install

Hello Jenelle,

You are right. I have done some research in what regards this and I could indeed notice that now you are required to have a configuration file in order to install Access Runtime 2010.

As you could have seen, the "Access Runtime 2010" is a self-extracting executable, which means it mostly works like this:
  • you run the self-extracting executable --> it extracts its content into a selected folder --> it launches the setup.exe file inside
Here, the following command line parameter:

Code: Select all

/config config.xml
must be passed to the setup.exe file, not to the "AccessRuntime.exe".

As you may know, the command line fields from the "Prerequisites" page are meant for the package that you add as a prerequisite.

After further investigations, I think I have found an elegant solution in which we can achieve what you want. Please follow these steps:
  • on your machine, locate the "AccessRuntime.exe"
  • open an elevated command prompt and travel to the location of "AccessRuntime.exe". Here, please run the following command:

Code: Select all

AccessRuntime.exe /extract:<your_location>
You can ignore the <your_location> thing and simply follow the spawned UI, if you wish so.
  • now please open Advanced Installer and go to "Prerequisites" page
  • here, add the setup.exe found in the extraction folder as a feature-based prerequisite
  • from the extract location, add all the files and the folders (plus the configuration file) as "Additional Files" in the "Prerequisites" page
  • in the "Install Command Lines" fields, please configure the setup.exe to be run with the command you specified, i.e.: /config config.xml
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ZombieCat
Posts: 6
Joined: Sat Jan 05, 2019 1:11 am

Re: Access 2016 Runtime silent install

Catalin,

I was just coming to post I had figured this out when I saw your reply. I am doing almost the same as you. The only difference is I added all the additional files and folders generated from running the /extract command. I am not sure if they truly are needed but felt it was better safe than sorry.

Thanks,

Jenelle
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Access 2016 Runtime silent install

You are always welcome, Jenelle.

I am glad you got this working.

To be fully honest with you, I am not sure either if those files are needed, but I was thinking the same: better to be safe than sorry. :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”