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!

bhodso
Posts: 19
Joined: Sun Apr 20, 2008 1:11 am

Download Optional Install File

I have looked at the documentation but I can't find a way to download a file and run it conditionally. I know in the pre-requisites, I can do this but I have a different situation. I have a custom dialog on my installer that allows a user to choose to install an optional application that works with my application. I don't want to package this with my installer becuase it is quite large. Instead, I want to download and install it only if the user has checked the box on this custom dialog to install it. How can I accomplish this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Download Optional Install File

Hi,

I'm afraid that Advanced Installer supports this only by using prerequisites. Therefore, a solution would be to use a custom action which downloads the file, waits for the download to finish and then launches the file. For this you can use an UI Custom Action or a custom action scheduled under "InstallUISequence".

Another approach would be to distribute the optional application with your package. This way you don't need to download it and you can launch it directly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bhodso
Posts: 19
Joined: Sun Apr 20, 2008 1:11 am

Re: Download Optional Install File

Ok, that should work to download using a custom action. Is there a script somewhere that could show me a good way to download a file? Is there a common library in VbScript for windows 2000 to Windows Vista that allows easy file download?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Download Optional Install File

Hi,

You can find some sample VBScript code here:
http://blog.netnerds.net/2007/01/vbscri ... nary-file/

Please note that VBScript custom actions should work on all Windows versions beginning with Windows 2000.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”