PedroNL
Posts: 9
Joined: Mon Oct 10, 2016 5:57 pm

MSI to download external required files and then install them

How can I make a msi that says if the machine is 32 or 64 bit then go download a certain file and install it?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: MSI to download external required files and then install them

Hello and welcome to Advanced Installer forums,

To complete your task, you can use Advanced Installer' s "Download file" functionality. For this, you can follow these steps:
  • In "Files and Folders" page, select "File operations" on the toolbar and "File Download" afterward.
  • In the "New File Download" dialog box you can set the name of the file, the URL from which the file is downloaded and a condition to the operation.
  • In case the file is 64-bit the condition is "VersionNT64" and for the 32-bit file the condition will be "NOT VersionNT64".
The Windows Installer sets the "VersionNT64" property with the OS version. This property is set to the version number of the operating system only if the system is running on a 64-bit computer and left empty otherwise (32-bit).

If you have more files to download, then you can add them to a ZIP file and use a "File Operation""Extract Archive" operation. The "Extract Archive" operation can also be used conditionally. For details, please check our "How to download and extract archive at install time" video.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PedroNL
Posts: 9
Joined: Mon Oct 10, 2016 5:57 pm

Re: MSI to download external required files and then install them

The files that I download are exe how can I initialize them after they are downloaded?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI to download external required files and then install them

Hello,

The files that you download and install can be launched using a "Launch file" custom action with the following settings :

File to launch : [APPDIR]<name-of-file.ext>
Execution time : When the system is modified (deferred)

If the file needs to run as Administrator you can select this option and also, in the Execution Options you can specify the desired behavior of the installer when launches the file. The custom action must be placed with sequence after "Add resources" action group because only after this stage the files will be available.

You can also take in consideration adding your files as URL-based prerequisites if they are setup files.

If you have any other questions we will be glad to answer them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PedroNL
Posts: 9
Joined: Mon Oct 10, 2016 5:57 pm

Re: MSI to download external required files and then install them

Before the install I want to remove two registry paths where do you suggest I do that in Advanced Installer?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI to download external required files and then install them

Hello,

If you need to remove two registry paths before your EXE file are launched or installed as prerequisites, then you will have to create your own custom action to do so.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”