473,897 Members | 2,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Actions not working

Hi,

I added dotnetfx.exe to a setup project as a custom action to be installed
before the main app is installed.

I set the Arguments property to /q:a /c:"install /l /q" for a silent
install but it complains that its already installed, then I set the
Condition to check as Installed == false and that doesnt work.

How can one do this on a setup project?

Thanks.
Nov 15 '05 #1
6 4363
"as Installed == false " is definitely the wrong syntax for a custom action
condition. Not Installed would be the right syntax, but I don't think it's the
right choice - it means run this custom action if my product is not installed,
but it should be running the custom action if the runtime isn't installed.

I don't think you can install the runtime out of a custom action. .NET installs
require Windows Installer (MSI) 2.0, and MSI 2.0 is installed by the dotnet
redist, so if MSI 1.1 is on the system your setup won't start. The redist is an
MSI-based setup, and two MSI setups can't run at the same time, so that's
another reason why you can't embed the redist in your MSI setup. Setups that
appear to this kind of thing usually have a wrapper program that launches the
required setups after checking what's on the system.
--
Phil Wilson [MVP Windows Installer]
----
<di********@dis cussion.microso ft.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi,

I added dotnetfx.exe to a setup project as a custom action to be installed
before the main app is installed.

I set the Arguments property to /q:a /c:"install /l /q" for a silent
install but it complains that its already installed, then I set the
Condition to check as Installed == false and that doesnt work.

How can one do this on a setup project?

Thanks.

Nov 15 '05 #2
There is a new download available on MSDN that solves the problem of trying to install the .NET FX before installing your application. I've included the blurb describing the download and
the url below.

Visual Studio .NET Bootstrapper:
Setup projects in Visual Studio .NET 2003 can be used to install the .NET Framework with your application, but only if you have installed the optional Visual Studio .NET Framework
Bootstrapper Plug-in on your development computer. The Visual Studio .NET Framework Bootstrapper Plug-in modifies the behavior of the Setup project's Bootstrapper property to include
the .NET Framework bootstrapper. The .NET Framework redistributable is then packaged with your application; when the user runs the bootstrapper setup.exe, it checks for the correct
version of the .NET Framework at install time and if necessary, installs it before installing your application.

http://msdn.microsoft.com/vstudio/do...r/default.aspx

Hope this helps,
Elizabeth

--------------------
From: <di********@dis cussion.microso ft.com>
Subject: Custom Actions not working
Date: Fri, 6 Feb 2004 14:26:42 +0100
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#x************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork,microsoft.p ublic.dotnet.fr amework.setup,m icrosoft.public .dotnet.languag es.csharp
NNTP-Posting-Host: h108n7c1o1031.b redband.skanova .com 62.20.240.108
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!TK2MSFTNGP10 .phx.gbl
Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.setup:7060 microsoft.publi c.dotnet.langua ges.csharp:2187 31 microsoft.publi c.dotnet.framew ork:64541
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

Hi,

I added dotnetfx.exe to a setup project as a custom action to be installed
before the main app is installed.

I set the Arguments property to /q:a /c:"install /l /q" for a silent
install but it complains that its already installed, then I set the
Condition to check as Installed == false and that doesnt work.

How can one do this on a setup project?

Thanks.


----
Elizabeth Newman – Visual Basic Deployment Test Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 15 '05 #3
Ok, I have 4 packages I must install before my application is installed but
I want them as one MSI file.

Some use InstallShield 1.5 I think.

So, I have to resort to shipping a .bat file to preinstall these? What a
bummer.
"Phil Wilson" <ph*********@un isys.spamcom> wrote in message
news:#q******** ******@TK2MSFTN GP10.phx.gbl...
"as Installed == false " is definitely the wrong syntax for a custom action condition. Not Installed would be the right syntax, but I don't think it's the right choice - it means run this custom action if my product is not installed, but it should be running the custom action if the runtime isn't installed.

I don't think you can install the runtime out of a custom action. .NET installs require Windows Installer (MSI) 2.0, and MSI 2.0 is installed by the dotnet redist, so if MSI 1.1 is on the system your setup won't start. The redist is an MSI-based setup, and two MSI setups can't run at the same time, so that's
another reason why you can't embed the redist in your MSI setup. Setups that appear to this kind of thing usually have a wrapper program that launches the required setups after checking what's on the system.
--
Phil Wilson [MVP Windows Installer]
----
<di********@dis cussion.microso ft.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi,

I added dotnetfx.exe to a setup project as a custom action to be installed before the main app is installed.

I set the Arguments property to /q:a /c:"install /l /q" for a silent
install but it complains that its already installed, then I set the
Condition to check as Installed == false and that doesnt work.

How can one do this on a setup project?

Thanks.


Nov 15 '05 #4
See if this helps. The site appears to be down right now, and you may have
to register, but there's some good stuff there.

http://www.codeproject.com/managedcpp/dotnetsetup.asp

--
Phil Wilson
[MVP Windows Installer]
<.> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, I have 4 packages I must install before my application is installed but I want them as one MSI file.

Some use InstallShield 1.5 I think.

So, I have to resort to shipping a .bat file to preinstall these? What a
bummer.
"Phil Wilson" <ph*********@un isys.spamcom> wrote in message
news:#q******** ******@TK2MSFTN GP10.phx.gbl...
"as Installed == false " is definitely the wrong syntax for a custom action
condition. Not Installed would be the right syntax, but I don't think it's the
right choice - it means run this custom action if my product is not installed,
but it should be running the custom action if the runtime isn't installed.
I don't think you can install the runtime out of a custom action. .NET

installs
require Windows Installer (MSI) 2.0, and MSI 2.0 is installed by the

dotnet
redist, so if MSI 1.1 is on the system your setup won't start. The redist is an
MSI-based setup, and two MSI setups can't run at the same time, so
that's another reason why you can't embed the redist in your MSI setup. Setups

that
appear to this kind of thing usually have a wrapper program that

launches the
required setups after checking what's on the system.
--
Phil Wilson [MVP Windows Installer]
----
<di********@dis cussion.microso ft.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi,

I added dotnetfx.exe to a setup project as a custom action to be

installed before the main app is installed.

I set the Arguments property to /q:a /c:"install /l /q" for a silent
install but it complains that its already installed, then I set the
Condition to check as Installed == false and that doesnt work.

How can one do this on a setup project?

Thanks.



Nov 15 '05 #5
Unfortunately its not a publically accessable file.

Do I just code up a customActions assembly that inherits from the Install
class and override .Install and then launch the installers there? That would
still have the same problem as its within the new setup environment. Why MS
make this difficult is beyond me. Looks like im doing a s.hity .bat file.
I guess they want to encourage us to make shit products for Windows. Oh
well.

"Phil Wilson" <pd*******@nosp am.cox.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
See if this helps. The site appears to be down right now, and you may have
to register, but there's some good stuff there.

http://www.codeproject.com/managedcpp/dotnetsetup.asp

--
Phil Wilson
[MVP Windows Installer]
<.> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, I have 4 packages I must install before my application is installed

but
I want them as one MSI file.

Some use InstallShield 1.5 I think.

So, I have to resort to shipping a .bat file to preinstall these? What a
bummer.
"Phil Wilson" <ph*********@un isys.spamcom> wrote in message
news:#q******** ******@TK2MSFTN GP10.phx.gbl...
"as Installed == false " is definitely the wrong syntax for a custom

action
condition. Not Installed would be the right syntax, but I don't think it's
the
right choice - it means run this custom action if my product is not

installed,
but it should be running the custom action if the runtime isn't

installed.
I don't think you can install the runtime out of a custom action. .NET

installs
require Windows Installer (MSI) 2.0, and MSI 2.0 is installed by the

dotnet
redist, so if MSI 1.1 is on the system your setup won't start. The redist
is an
MSI-based setup, and two MSI setups can't run at the same time, so

that's another reason why you can't embed the redist in your MSI setup. Setups that
appear to this kind of thing usually have a wrapper program that

launches
the
required setups after checking what's on the system.
--
Phil Wilson [MVP Windows Installer]
----
<di********@dis cussion.microso ft.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> Hi,
>
> I added dotnetfx.exe to a setup project as a custom action to be

installed
> before the main app is installed.
>
> I set the Arguments property to /q:a /c:"install /l /q" for a

silent > install but it complains that its already installed, then I set the
> Condition to check as Installed == false and that doesnt work.
>
> How can one do this on a setup project?
>
> Thanks.
>
>



Nov 15 '05 #6
Simple solution I used a setup.bat file and called the proper command line
instead of bulding my own Setup.exe project (waste of freakin time for what
its giving when a simple .bat file can do) and then launch the setup.msi
file.

Microsoft you suck s.shit for installer support. I am now shopping elsewhere
for a working product.
<di********@dis cussion.microso ft.com> wrote in message
news:uM******** ******@TK2MSFTN GP12.phx.gbl...
Unfortunately its not a publically accessable file.

Do I just code up a customActions assembly that inherits from the Install
class and override .Install and then launch the installers there? That would still have the same problem as its within the new setup environment. Why MS make this difficult is beyond me. Looks like im doing a s.hity .bat file. I guess they want to encourage us to make shit products for Windows. Oh
well.

"Phil Wilson" <pd*******@nosp am.cox.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
See if this helps. The site appears to be down right now, and you may have
to register, but there's some good stuff there.

http://www.codeproject.com/managedcpp/dotnetsetup.asp

--
Phil Wilson
[MVP Windows Installer]
<.> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, I have 4 packages I must install before my application is installed
but
I want them as one MSI file.

Some use InstallShield 1.5 I think.

So, I have to resort to shipping a .bat file to preinstall these? What a bummer.
"Phil Wilson" <ph*********@un isys.spamcom> wrote in message
news:#q******** ******@TK2MSFTN GP10.phx.gbl...
> "as Installed == false " is definitely the wrong syntax for a custom
action
> condition. Not Installed would be the right syntax, but I don't
think it's
the
> right choice - it means run this custom action if my product is not
installed,
> but it should be running the custom action if the runtime isn't

installed.
>
> I don't think you can install the runtime out of a custom action.

..NET installs
> require Windows Installer (MSI) 2.0, and MSI 2.0 is installed by the
dotnet
> redist, so if MSI 1.1 is on the system your setup won't start. The

redist
is an
> MSI-based setup, and two MSI setups can't run at the same time, so

that's
> another reason why you can't embed the redist in your MSI setup.

Setups that
> appear to this kind of thing usually have a wrapper program that

launches
the
> required setups after checking what's on the system.
> --
> Phil Wilson [MVP Windows Installer]
> ----
> <di********@dis cussion.microso ft.com> wrote in message
> news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> > Hi,
> >
> > I added dotnetfx.exe to a setup project as a custom action to be
installed
> > before the main app is installed.
> >
> > I set the Arguments property to /q:a /c:"install /l /q" for a silent > > install but it complains that its already installed, then I set the > > Condition to check as Installed == false and that doesnt work.
> >
> > How can one do this on a setup project?
> >
> > Thanks.
> >
> >
>
>



Nov 15 '05 #7

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

Similar topics

0
2020
by: Martin | last post by:
I am trying to create a setup project for my C# winforms application. The setup project works perfectly, for the most part. The difficulty I am having is this: I want to run two custom actions after the install is complete. First, I want to run the MSDE installation, and second, I want to run a small C# console app that configures the newly-installed MSDE. The problem is that I can't run the installation for the MSDE, because the Windows...
1
1625
by: Angela | last post by:
I wrote a class that I intended to be a custom action. I added the DLL for the class to the setup project using the CustomActions editor. When I run the installer it completely ignores the custom action I set up. First I put everything in the class constructor in the order I wanted it performed, I thought maybe the constructor would be called by the installer. Well, that didn't work so I created a Main method just to see if that
3
2948
by: Vai2000 | last post by:
Hi All, I need to execute custom action during installation of my program (through MSI). Creating the MSI was pretty straight fwd. After that I went into the Custom Action Editor and added the custom action (EXE) at the install condition. Unfortunately when I roll out my MSI I don't see the custom action being executed. For now I just wrote few lines on my customAction.exe (like hello world etc) its a console application. Can someone...
0
3656
by: Ron Andersen | last post by:
I have C# custom actions and merge modules created in Visual Studio to install some components of the application I am working on. The merge modules are used with an Install Shield 9 project. When my C# custom actions run, the progress dialog doesn't display any text as to what is happening. I have explored several options as follows. Normally, you can enter the action text in the ActionText table by giving the name of the custom...
0
1511
by: Gabriel Lozano-Morán | last post by:
We have developed an application that will replace the older version. The older versions comes in two flavors, a Lite and a Pro version. I can successfully remove the previous version of either the Lite or the Pro version by sync'ing the "Product Code" and increasing the version number of the new setup, but I really need to remove both versions upon a successful installation. So I have added two custom actions under "Commit" and I have...
1
2874
by: lyl209 | last post by:
Hi, I am trying to create a web setup project for my asp.net 2.0 website and I had some problems. It worked fine until I want to add some custom actions into it. As some of you already knew, custom actions get fired AFTER the real installation is done. I want to do some things like 1) check if some required software is in position if not execute an installer 2) backup some important files before installation
10
2746
by: =?Utf-8?B?SmFjayBTbWl0aA==?= | last post by:
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. The service application references the DLLs. The service app also has an installer class that is set up to run as a custom action in the Setup Project. I am having a problem with signing an assembly. If I add a strong name key to one of the...
13
9734
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.
0
2134
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Actually, my installer package is not for a Windows Service, but for a WinForms application. Well, it is kind of both: this is a multi-project solution with its main target being a WinForms application, but it also includes a Windows Service. My custom install actions configuration includes output from a Class Library project that contains the custom actions followed by the output of the Windows Service project to register the service....
0
9837
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11250
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...
1
10941
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
10478
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
9656
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7185
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
6074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4293
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3300
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.