473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Need help with custom install package

This is my first custom installer and essentially I needed to create one that
installed windows installer 3.1 then installed .Net 2.0 Service Pack 1. I
could not find a pre-packaged .Net 2.o SP 1 installer package anywhere so
this is my attempt.

The problem seems to be that when I first created it if .NET 2.0 was
installed it would not install .NET 2.0 SP1 so I commented out the line where
it checks but that leads the installer to try and reinstall it on reboot.
Can anyone tell me how to differentiate between .NET 2.0 and .NET 2.0 SP 1?

my package.xml file:


<?xml version="1.0" encoding="utf-8" ?>
<Product
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
ProductCode="Custom.Bootstrapper.Package">

<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="NetFx20SP1_x86.exe"/>
<PackageFile Name="WindowsInstaller-KB893803-v2-x86.exe"
HomeSite="Msi31Exe"
PublicKey="3082010A0282010100CF38F7E1A4275EF8F0CCA ACEFB3ADE3B6231460546BBF5B6051AD3B3ACC29F0F4C67082 8C44310F53B75797F6A91F4D633C861BFFA9190007AF0791D5 D6870F690B29877B5031D2F9B9D9B75892F4A01417C9E7CCB8 7439BF49674999E98C1CF40575816F6C0D59216E52485718F9 949ED557C65C91F380023C53EAB11D6296CC69EA0705B7DD53 7D4677720C306CE85F84E3480A035C41C53320157EFB128BD6 C01E3AD40BC80A90949DB36E337F41D49AA2AA76BD019D3CC8 E9DD686467A134AD64519A553B3E2782F2E35976B4CC6E81AB 0D3D1249069ABCEFC696E3E4CFB024162DC07985D7E5CA74C2 7316B564CE198D8E0D11D718D3D2AC07F714DFFCF020301000 1"/>
<PackageFile Name="dotnetchk.exe"/>
</PackageFiles>

<InstallChecks>
<ExternalCheck Property="DotNetInstalled" PackageFile="dotnetchk.exe" />
<RegistryCheck Property="IEVersion"
Key="HKLM\Software\Microsoft\Internet Explorer" Value="Version" />
</InstallChecks>

<Commands>

<Command PackageFile="WindowsInstaller-KB893803-v2-x86.exe"
Arguments= '/norestart'>
<InstallConditions>
<BypassIf Property="VersionMsi"
Compare="VersionGreaterThanOrEqualTo" Value="3.1"/>
<FailIf Property="Version9x" Compare="ValueExists"
String="InvalidPlatform"/>
<FailIf Property="VersionNT" Compare="VersionLessThan"
Value="5.0.3" String="InvalidPlatform"/>
<FailIf Property="ProcessorArchitecture"
Compare="ValueNotEqualTo" Value="Intel" String="InvalidPlatformArchitecture"
/>
<FailIf Property="AdminUser" Compare="ValueEqualTo"
Value="false" String="AdminRequired"/>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="1641" Result="SuccessReboot"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<DefaultExitCode Result="Fail"
FormatMessageFromSystem="true" String="GeneralFailure" />
</ExitCodes>
</Command>

<Command PackageFile="NetFx20SP1_x86.exe" Arguments="">

<InstallConditions>
<!-- Either of these properties indicates the .Net Framework is
already installed -->
<!--BypassIf Property="DotNetInstalled" Compare="ValueNotEqualTo"
Value="0"/ -->
<!-- Bypass if MSI is not installed -->
<BypassIf Property="IsMsiInstalled" Compare="ValueGreaterThan"
Value="0"/>

<!-- Block install if user does not have admin privileges -->
<FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false"
String="AdminRequired"/>

<!-- Block install on Windows 95 -->
<FailIf Property="Version9X" Compare="VersionLessThan" Value="4.10"
String="InvalidPlatformWin9x"/>

<!-- Block install on Windows 2000 SP 2 or less -->
<FailIf Property="VersionNT" Compare="VersionLessThan" Value="5.0.3"
String="InvalidPlatformWinNT"/>

<!-- Block install if IE 5.01 or greater is not present -->
<FailIf Property="IEVersion" Compare="ValueNotExists"
String="InvalidPlatformIE" />
<FailIf Property="IEVersion" Compare="VersionLessThan" Value="5.01"
String="InvalidPlatformIE" />

<!-- Block install if the platform is not x86 -->
<FailIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo"
Value="Intel" String="InvalidPlatformArchitecture" />
</InstallConditions>
<!--ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="1641" Result="SuccessReboot"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<DefaultExitCode Result="Fail" String="GeneralFailure"/>
</ExitCodes-->

<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<ExitCode Value="4097" Result="Fail" String="AdminRequired"/>
<ExitCode Value="4098" Result="Fail"
String="WindowsInstallerComponentFailure"/>
<ExitCode Value="4099" Result="Fail"
String="WindowsInstallerImproperInstall"/>
<ExitCode Value="4101" Result="Fail" String="AnotherInstanceRunning"/>
<ExitCode Value="4102" Result="Fail" String="OpenDatabaseFailure"/>
<ExitCode Value="4113" Result="Fail" String="BetaNDPFailure"/>
<DefaultExitCode Result="Fail" FormatMessageFromSystem="true"
String="GeneralFailure" />
</ExitCodes>
</Command>
Jun 27 '08 #1
0 1440

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pmcguire | last post by:
I am reposting in this group after getting no response for a week in the deployment group. I have a setup project that uses custom actions. The project installs and runs fine on machines that...
0
by: Scanner2001 | last post by:
I have a web service and a deployment project. Inside the deployment project, is a custom action to create some database related items such as stored procedures. I have this packaged as an msi, and...
0
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an...
27
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set...
3
by: Anthony Smith | last post by:
I always get this message. No matter what package $ pear install Date PHP Warning: Module 'oci8' already loaded in Unknown on line 0 No releases available for package "pear.php.net/Date"...
13
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible...
4
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2 for a C# windows application. I'm preparing a installation package and I want to add the vcredist_86.exe to my installation. I add this exe file to my Application...
0
by: John Sheppard | last post by:
"Jeff Johnson" <i.get@enough.spamwrote in message news:JtydnTFI1LlG2GfanZ2dnUVZ_qKgnZ2d@datapex... Purchase an ssl cert...its cheaper than your labour...doing all that message layer security...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, Can somebody give me a hint why my custom install action does not register event log sources, when I run the MSI package generated by VS2005. The same install action DLL executed via...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.