kiranchauhan91
Posts: 24
Joined: Fri Jan 29, 2016 10:21 am

Prerequisites - Post install setup files do not install

Wed Jun 13, 2018 10:50 am

Hello,

We have existing installer using Advanced installer software. We have used Prerequisites installation using setup file path pointing to the .EXE file (http://www.somedomain.com/software1.1.exe). We wanted to change the download URL to something like this (http://www.somedomain.com/software.aspx). The ASPX page simply downloads the exe file. But when we do that, Advanced Installers simply opened the executable in Notepad instead of executing them. Advanced installer does not support file extensions other than EXE for prereqs?

Regards,
Kiran Chauhan

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

Re: Prerequisites - Post install setup files do not install

Fri Jun 15, 2018 2:30 pm

Hello Kiran,

Please note that there might be a problem with how the Web Server is configured, as it may provide the Web Client with the wrong information. It may sent information to the Web Client to handle the requested file as a text MIME type, instead of an application MIME type.

In order to test this, you can manually copy the link into the Internet Explorer Web Browser and see if it is still treated like a text file, or if it is treated like an executable file.

If you have any further questions, let us know!

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

kiranchauhan91
Posts: 24
Joined: Fri Jan 29, 2016 10:21 am

Re: Prerequisites - Post install setup files do not install

Wed Jun 20, 2018 7:55 am

Hi Catalin,

Thank you for your reply. I checked download URL in the browser and it download EXE file. It returns proper MIME type. See Image below:
download-response.jpg
download-response.jpg (49.72KiB)Viewed 41938 times
It we use same URL but with EXE path, it works. But when page is other than EXE then installer tries to open the aspx file using default program.

Any Idea?

Regards,
Kiran Chauhan

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

Re: Prerequisites - Post install setup files do not install

Wed Jun 20, 2018 2:19 pm

Hello Kiran,

Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings? Also, please send us the .ASPX download URL by e-mail so we fully run a test on our side.

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

kiranchauhan91
Posts: 24
Joined: Fri Jan 29, 2016 10:21 am

Re: Prerequisites - Post install setup files do not install

Thu Jun 21, 2018 11:28 am

Hi Catalin,

I have sent you an email.

Regards,
Kiran Chauhan

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

Re: Prerequisites - Post install setup files do not install

Fri Jun 22, 2018 1:37 pm

Hello Kiran,

Thank you for your sent sample, I have tested it and I have reproduced the problem. It looks like an issue in Advanced Installer, indeed. We will further investigate and we will update this thread as soon as we have a solution.

As a workaround, please use an URL which ends with your .EXE setup file name.

Thanks for your understanding.

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

kiranchauhan91
Posts: 24
Joined: Fri Jan 29, 2016 10:21 am

Re: Prerequisites - Post install setup files do not install

Wed Jun 27, 2018 9:43 am

Hi Catalin,

Do you know the timeline on releasing the fix? We have "advanced installer 11.4.1 build 58484" installed and not sure if that patch would be compatible with this version.

Regards,
Kiran Chauhan

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

Re: Prerequisites - Post install setup files do not install

Thu Jun 28, 2018 2:10 pm

Hi Kiran,

Unfortunately, I do not know a timeline for releasing this fix. It is on our TODO list with a high priority.

We will update this thread as soon as it will be available.

Thanks for your understanding!

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

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

Re: Prerequisites - Post install setup files do not install

Thu Jun 28, 2018 4:07 pm

Hello Kiran,

Our development team further investigated and it seems that Advanced Installer gets the file name and its extension by parsing the URL string. So, that's why your .EXE file was opened with Notepad, because the file that was downloaded from that URL was actually "software.aspx", not "software.exe", that's why Windows did not know how to treat that file and opened it with a default program such as Notepad.

As a solution to this, you can go to "Prerequisites" page from the "Package Definition" group, click on your prerequisite, go to "Setup files", in "Main Setup File" and in "Folder" field type the following :

Code: Select all

?yourSetupName.exe (e.g. software.exe, as we had it as an example above)
This field is used for our "Predefined Prerequisites" to specify a local download folder and an optional custom file name like this :

Code: Select all

DIRECTORY?FILENAME
If the "?FILENAME" construction is missing, the download file name from the URL is used automatically.

If you have any further questions or doubts, don't hesitate to contact me and I'll gladly assist.

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

kiranchauhan91
Posts: 24
Joined: Fri Jan 29, 2016 10:21 am

Re: Prerequisites - Post install setup files do not install

Mon Jul 02, 2018 9:45 am

Hi Catalin,

It helped. Thank you for your help.

Regards,
Kiran Chauhan

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

Re: Prerequisites - Post install setup files do not install

Mon Jul 02, 2018 11:45 am

Hello Kiran,

I am glad I could help!

If you will ever need help, don't hesitate to contact us and we will gladly assist.

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

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

Re: Prerequisites - Post install setup files do not install

Tue Sep 01, 2020 4:56 pm

Hello Kiran,

This improvement has been added in Advanced Installer 17.3, released on July 29th, 2020.


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

Return to “Building Installers”