MSI - 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!

dwhaley66
Posts: 10
Joined: Sat Dec 08, 2007 3:32 pm

MSI

The included Windows Installer Prerequisite for Xp does not work on xp.
Get error, incorrect OS Version

Why do you not auto include the URL for these if selected?

Thanks,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please make sure that in the "Software" tab of the "Prerequisites" page you have added the "Windows Installer for Windows NT" predefined prerequisite. Also, you should set "Windows NT from: Windows XP" in the "Install Conditions" tab of the "New Prerequisite" dialog.

If the problem persists please send us the AIP (if it doesn't contain confidential information) or a small test case that reproduces this behavior to support at advancedinstaller dot com.
Why do you not auto include the URL for these if selected?
We do not include a default URL because this predefined prerequisite can use multiple versions of Windows Installer which have different URL's for their installation package (for example, for Windows XP you can add as a prerequisite the 2.0, 3.0 or 3.1 version of Windows Installer).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dwhaley66
Posts: 10
Joined: Sat Dec 08, 2007 3:32 pm

Simply add the prerequisite for XP/NT and try to run it.
No test case needed.

In the case of the url, the program is downloading the Windows Installer when you do a first build. So the correct url must be available, no?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I cannot reproduce this behavior on my test machine. Can you please send us a test case that reproduces this behavior to support at advancedinstaller dot com so we can investigate the problem?
In the case of the url, the program is downloading the Windows Installer when you do a first build. So the correct url must be available, no?
Note that when you add the prerequisite to your project, you have three options for it's location:

1) File in package - this will allow you to specify the prerequisite's installer which is located on your disk (that installer will be added automatically to your installation package)

2) URL - this allows you to specify the URL from which the prerequisite's installer will be downloaded; please note that the prerequisite will be downloaded at installation time only if it not found on the target computer (it will not be downloaded when you build your project)

3) Open Site - this allows you to specify a website that will opened in the default browser (this option allows the user to choose what to download)

Note that none of these three settings is predefined, therefore you need to specify the necessary settings for the one you use (for example, if you use the "URL" then you must specify a valid URL from which the prerequisite will be downloaded).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dwhaley66
Posts: 10
Joined: Sat Dec 08, 2007 3:32 pm

In the prerequisties, there is a predefined option to add Windows Installer for Xp.

If you use this option it uses (automatically) a file called InstMSIW.exe

This file fails on XPSP2.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

After further testing I was able to reproduce this behavior.
Please note that if you simply add the prerequisite (without using your own custom settings) it will download the installation package for Windows Installer 2.0 (the required version to run a MSI package created with Advanced Installer).

Since Windows XP comes with Windows Installer 2.0 and the prerequisite is met, you probably modified the Minimum Version of Windows Installer for the prerequisite (lets say you have set it to 3.1).

In this case, the EXE bootstrapper sees that the 3.1 version is not installed and launches the prerequisite. Since the 2.0 version cannot be installed (the same or a higher version is already installed), you get the error message.

The solution is to configure the prerequisite to use the correct installation package for the Windows Installer version you need.

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

Return to “Common Problems”