Hi,
I've made an installer following the .Net Template. I need the installer to check if the .Net Framework 4 (and Client) are installed, inform the user and install it. But none of these screens are showing and the .Net Framework is not being installed. This is the main part of the MSIcode:
[DEFINE REGION: Check Application Pre-Requisites]
Comment: Check setup pre-requisites
Set Variable PREREQ to FALSE
Set Variable PRELIST to
[compiler if Variable BUILDMODE not Equals PATCH]
if Variable NEEDSUPGRADE Equals TRUE
Set Variable PREREQ to TRUE
Set Variable PRELIST to $PRELIST$$NEWLINE$Previous Version Uninstallation
end
Include Script: checkmsi31
Include Script: checknet4aip_client_x86
Include Script: checknet4aip_x86
[compiler end]
<<Code Folding Region>>
[DEFINE REGION: Install Application Pre-Requisites]
Comment: Install setup pre-requisites
if Variable PREREQ not Equals FALSE
Comment: Display Dialog: prereq, wait for dialog to return (modal)
if Variable WIZARD Equals CANCEL
Terminate Installation
end
Comment: Display Dialog: progressprereq, use as progress dialog (non-modal)
[compiler if Variable BUILDMODE not Equals PATCH]
if Variable NEEDSUPGRADE Equals TRUE
Set Variable REMOVEOLD to
Set Variable ERROROLD to
Install/Remove MSI Package $PRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD)
if Variable REMOVEOLD Equals ERROR
MessageBox: $TITLE$ Setup, Unable to uninstall old version of $TITLE$. Please uninstall it yourself using Control Panel Add-Remove Programs before attempting to install this product.$NEWLINE$$NEWLINE$$ERROROLD$
Terminate Installation
end
if Variable REMOVEOLD Equals REBOOT
MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
if Variable REBOOTNOW Equals OK
Reboot Computer and Resume Setup
else
Terminate Installation
end
end
Set Variable MAINTENANCE to FALSE
end
[DEFINE WEB MEDIA Microsoft Windows Installer 3.1]
Include Script: setupmsi31
[DEFINE WEB MEDIA Microsoft .NET Framework Client 4]
Include Script: setupnet4aip_client_x86
[DEFINE WEB MEDIA Microsoft .NET Framework 4]
Include Script: setupnet4aip_x86
[compiler end]
Hide Dialog
end
<<Code Folding Region>>
<<Code Folding Region>>
Check Pre-requisites
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Check Pre-requisites
Dear Wictor81,
which OS did you use to test the package?
For what I see you are including .Net 4 (x86) RTMs, are you testing the package on a 32 bit target OS?
In addition on recent systems .Net 4.0 is not necessary, due the fact that an higher version of Net RTM is already included with the system.
Regards
which OS did you use to test the package?
For what I see you are including .Net 4 (x86) RTMs, are you testing the package on a 32 bit target OS?
In addition on recent systems .Net 4.0 is not necessary, due the fact that an higher version of Net RTM is already included with the system.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 144 guests