473,624 Members | 2,642 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.microso ft.com/developer/2004/01/bootstrapper"
ProductCode="Cu stom.Bootstrapp er.Package">

<PackageFiles CopyAllPackageF iles="false">
<PackageFile Name="NetFx20SP 1_x86.exe"/>
<PackageFile Name="WindowsIn staller-KB893803-v2-x86.exe"
HomeSite="Msi31 Exe"
PublicKey="3082 010A0282010100C F38F7E1A4275EF8 F0CCAACEFB3ADE3 B6231460546BBF5 B6051AD3B3ACC29 F0F4C670828C443 10F53B75797F6A9 1F4D633C861BFFA 9190007AF0791D5 D6870F690B29877 B5031D2F9B9D9B7 5892F4A01417C9E 7CCB87439BF4967 4999E98C1CF4057 5816F6C0D59216E 52485718F9949ED 557C65C91F38002 3C53EAB11D6296C C69EA0705B7DD53 7D4677720C306CE 85F84E3480A035C 41C53320157EFB1 28BD6C01E3AD40B C80A90949DB36E3 37F41D49AA2AA76 BD019D3CC8E9DD6 86467A134AD6451 9A553B3E2782F2E 35976B4CC6E81AB 0D3D1249069ABCE FC696E3E4CFB024 162DC07985D7E5C A74C27316B564CE 198D8E0D11D718D 3D2AC07F714DFFC F0203010001"/>
<PackageFile Name="dotnetchk .exe"/>
</PackageFiles>

<InstallCheck s>
<ExternalChec k Property="DotNe tInstalled" PackageFile="do tnetchk.exe" />
<RegistryChec k Property="IEVer sion"
Key="HKLM\Softw are\Microsoft\I nternet Explorer" Value="Version" />
</InstallChecks>

<Commands>

<Command PackageFile="Wi ndowsInstaller-KB893803-v2-x86.exe"
Arguments= '/norestart'>
<InstallConditi ons>
<BypassIf Property="Versi onMsi"
Compare="Versio nGreaterThanOrE qualTo" Value="3.1"/>
<FailIf Property="Versi on9x" Compare="ValueE xists"
String="Invalid Platform"/>
<FailIf Property="Versi onNT" Compare="Versio nLessThan"
Value="5.0.3" String="Invalid Platform"/>
<FailIf Property="Proce ssorArchitectur e"
Compare="ValueN otEqualTo" Value="Intel" String="Invalid PlatformArchite cture"
/>
<FailIf Property="Admin User" Compare="ValueE qualTo"
Value="false" String="AdminRe quired"/>
</InstallConditio ns>
<ExitCodes>
<ExitCode Value="0" Result="Success "/>
<ExitCode Value="1641" Result="Success Reboot"/>
<ExitCode Value="3010" Result="Success Reboot"/>
<DefaultExitCod e Result="Fail"
FormatMessageFr omSystem="true" String="General Failure" />
</ExitCodes>
</Command>

<Command PackageFile="Ne tFx20SP1_x86.ex e" Arguments="">

<InstallConditi ons>
<!-- Either of these properties indicates the .Net Framework is
already installed -->
<!--BypassIf Property="DotNe tInstalled" Compare="ValueN otEqualTo"
Value="0"/ -->
<!-- Bypass if MSI is not installed -->
<BypassIf Property="IsMsi Installed" Compare="ValueG reaterThan"
Value="0"/>

<!-- Block install if user does not have admin privileges -->
<FailIf Property="Admin User" Compare="ValueE qualTo" Value="false"
String="AdminRe quired"/>

<!-- Block install on Windows 95 -->
<FailIf Property="Versi on9X" Compare="Versio nLessThan" Value="4.10"
String="Invalid PlatformWin9x"/>

<!-- Block install on Windows 2000 SP 2 or less -->
<FailIf Property="Versi onNT" Compare="Versio nLessThan" Value="5.0.3"
String="Invalid PlatformWinNT"/>

<!-- Block install if IE 5.01 or greater is not present -->
<FailIf Property="IEVer sion" Compare="ValueN otExists"
String="Invalid PlatformIE" />
<FailIf Property="IEVer sion" Compare="Versio nLessThan" Value="5.01"
String="Invalid PlatformIE" />

<!-- Block install if the platform is not x86 -->
<FailIf Property="Proce ssorArchitectur e" Compare="ValueN otEqualTo"
Value="Intel" String="Invalid PlatformArchite cture" />
</InstallConditio ns>
<!--ExitCodes>
<ExitCode Value="0" Result="Success "/>
<ExitCode Value="1641" Result="Success Reboot"/>
<ExitCode Value="3010" Result="Success Reboot"/>
<DefaultExitCod e Result="Fail" String="General Failure"/>
</ExitCodes-->

<ExitCodes>
<ExitCode Value="0" Result="Success "/>
<ExitCode Value="3010" Result="Success Reboot"/>
<ExitCode Value="4097" Result="Fail" String="AdminRe quired"/>
<ExitCode Value="4098" Result="Fail"
String="Windows InstallerCompon entFailure"/>
<ExitCode Value="4099" Result="Fail"
String="Windows InstallerImprop erInstall"/>
<ExitCode Value="4101" Result="Fail" String="Another InstanceRunning "/>
<ExitCode Value="4102" Result="Fail" String="OpenDat abaseFailure"/>
<ExitCode Value="4113" Result="Fail" String="BetaNDP Failure"/>
<DefaultExitCod e Result="Fail" FormatMessageFr omSystem="true"
String="General Failure" />
</ExitCodes>
</Command>
Jun 27 '08 #1
0 1455

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

Similar topics

2
1316
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 have the .NET framework 1.1, but fails on machines that have .NET framework 1.1 SP1. The specific error message is: "Unable to get installer types in the <assembly path> assembly. One or more of the types in the assembly unable to load"
0
1597
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 can run the deployment on win2k, win2k server, and winxp without problems. The database related part of the custom deployment action uses integrated security to login (SSPI). When tracing the deployments using sql profiler from any of the...
0
1585
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 installation are: 1.Add an install class to the deployed project and imperment the custom action 2.Add a "Data Entry Dialog Boxes" in the User Interface Editor of the deployment project(my examply has two textbox,thier property are DBUSER and...
27
5119
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 contents ]; close $fileID
3
9280
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" Cannot initialize 'Date', invalid or missing package file Package "Date" is not valid install failed
13
9697
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 to set the Condition property of a custom action to determine if the currently running install is upgrading a previous installation and if so how? I'm also open to other methods of acheiving this functionality.
4
5017
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 Folder of the setup proejct. I then add this file to the Custom Action's Install node. I set the InstallaerClass to False and delete the "/Install" fro the Arguments field. I got an error message when I run my setup at the target win2k server. ...
0
932
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 takes weeks and weeks of work...plus it'll all be changed again for WCF when ur WSE is obsolete... Do a search for 'Web Service Security Patterns and Practices' on MS website. Thats a good document. 250 pages though.
0
2150
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 installutil.exe registers evrything just fine! Here's the installer class that I have created:
0
8685
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8631
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8341
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8490
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1489
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.