473,320 Members | 2,071 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,320 software developers and data experts.

Deployment/Custom Action/Shortcut triggers install

Hi,

i'm developing a solution in VS9/CSharp. Now I'm constructing a
deployment project for my appliation (thick, database driven,
winforms, standard, good old type of application).

During installation I also install the PostgreSQL database and along
with that I need to execute some Custom Actions. I've created a Custom
Installer component in CSharp and calls it on Install/Rollback/
uninstall and everything works great (Custom Actions are called upon
and do what they should do and installation ends ok).

I also install a shortcut to the main application in the start menu.
This I do by creating a shortcut in the install/deployment project
that points to the magic "Primary output from StoreManager". But here
is the problem.

When the application is installed from the MSI-package and after
completion, the user clicks the shortcut, Windows installer pops up
and the whole installation begins all over and it tries to install the
whole application again, which fails since it is already installed and
my custom action think that is "strange" and bails out...

If i start the application not from the shortcut but by directly
clicking on the EXE-file in the isntallation target dir it starts fine
and works great... it's just the shortcut that does not work...

And I've also noticed that if I remove the Custom Actions, this
strange behavious goes away and the application is installed and is
possible to start normally from the shortcut...

Any ideas? It feels as if I've tried everything. I've done similar
deployment projects before and used the Custom Action mechanism and
have not had problems before...

BR,
Kenneth
Nov 18 '08 #1
3 5824

"KennethLundin" <ke************@dacom.sewrote in message
news:32**********************************@x16g2000 prn.googlegroups.com...
Hi,

i'm developing a solution in VS9/CSharp. Now I'm constructing a
deployment project for my appliation (thick, database driven,
winforms, standard, good old type of application).

During installation I also install the PostgreSQL database and along
with that I need to execute some Custom Actions. I've created a Custom
Installer component in CSharp and calls it on Install/Rollback/
uninstall and everything works great (Custom Actions are called upon
and do what they should do and installation ends ok).

I also install a shortcut to the main application in the start menu.
This I do by creating a shortcut in the install/deployment project
that points to the magic "Primary output from StoreManager". But here
is the problem.

When the application is installed from the MSI-package and after
completion, the user clicks the shortcut, Windows installer pops up
and the whole installation begins all over and it tries to install the
whole application again, which fails since it is already installed and
my custom action think that is "strange" and bails out...

If i start the application not from the shortcut but by directly
clicking on the EXE-file in the isntallation target dir it starts fine
and works great... it's just the shortcut that does not work...

And I've also noticed that if I remove the Custom Actions, this
strange behavious goes away and the application is installed and is
possible to start normally from the shortcut...

Any ideas? It feels as if I've tried everything. I've done similar
deployment projects before and used the Custom Action mechanism and
have not had problems before...

BR,
Kenneth
Is the second setup doing a "repair"? I don't know why only the desktop
icon would do that, but I have seen something like that if a critical file
from the install is edited by a custom action.
Nov 18 '08 #2
On Nov 18, 11:24*pm, "Family Tree Mike"
<FamilyTreeM...@ThisOldHouse.comwrote:
"KennethLundin" <kenneth.lun...@dacom.sewrote in message

news:32**********************************@x16g2000 prn.googlegroups.com...
Hi,
i'm developing a solution in VS9/CSharp. Now I'm constructing a
deployment project for my appliation (thick, database driven,
winforms, standard, good old type of application).
During installation I also install the PostgreSQL database and along
with that I need to execute some Custom Actions. I've created a Custom
Installer component in CSharp and calls it on Install/Rollback/
uninstall and everything works great (Custom Actions are called upon
and do what they should do and installation ends ok).
I also install a shortcut to the main application in the start menu.
This I do by creating a shortcut in the install/deployment project
that points to the magic "Primary output from StoreManager". But here
is the problem.
When the application is installed from the MSI-package and after
completion, the user clicks the shortcut, Windows installer pops up
and the whole installation begins all over and it tries to install the
whole application again, which fails since it is already installed and
my custom action think that is "strange" and bails out...
If i start the application not from the shortcut but by directly
clicking on the EXE-file in the isntallation target dir it starts fine
and works great... it's just the shortcut that does not work...
And I've also noticed that if I remove the Custom Actions, this
strange behavious goes away and the application is installed and is
possible to start normally from the shortcut...
Any ideas? *It feels as if I've tried everything. *I've done similar
deployment projects before and used the Custom Action mechanism and
have not had problems before...
BR,
Kenneth

Is the second setup doing a "repair"? *I don't know why only the desktop
icon would do that, but I have seen something like that if a critical file
from the install is edited by a custom action.
Hi,
yeah, the second setup is probably doing a repair...

I've investigated a little since you mentioned that changed files
might trigger this, and that is what happens. When I start the
database, it starts to change it's datafiles as it should, but it
seems that it is this that triggers the repair... how do I specify
that certain files should NOT be monitored by this installer feature
so that they can be modified without it triggers a repair?

BR,
Kenneth
Nov 19 '08 #3


"KennethLundin" wrote:
On Nov 18, 11:24 pm, "Family Tree Mike"
<FamilyTreeM...@ThisOldHouse.comwrote:
"KennethLundin" <kenneth.lun...@dacom.sewrote in message

news:32**********************************@x16g2000 prn.googlegroups.com...
Hi,
i'm developing a solution in VS9/CSharp. Now I'm constructing a
deployment project for my appliation (thick, database driven,
winforms, standard, good old type of application).
During installation I also install the PostgreSQL database and along
with that I need to execute some Custom Actions. I've created a Custom
Installer component in CSharp and calls it on Install/Rollback/
uninstall and everything works great (Custom Actions are called upon
and do what they should do and installation ends ok).
I also install a shortcut to the main application in the start menu.
This I do by creating a shortcut in the install/deployment project
that points to the magic "Primary output from StoreManager". But here
is the problem.
When the application is installed from the MSI-package and after
completion, the user clicks the shortcut, Windows installer pops up
and the whole installation begins all over and it tries to install the
whole application again, which fails since it is already installed and
my custom action think that is "strange" and bails out...
If i start the application not from the shortcut but by directly
clicking on the EXE-file in the isntallation target dir it starts fine
and works great... it's just the shortcut that does not work...
And I've also noticed that if I remove the Custom Actions, this
strange behavious goes away and the application is installed and is
possible to start normally from the shortcut...
Any ideas? It feels as if I've tried everything. I've done similar
deployment projects before and used the Custom Action mechanism and
have not had problems before...
BR,
Kenneth
Is the second setup doing a "repair"? I don't know why only the desktop
icon would do that, but I have seen something like that if a critical file
from the install is edited by a custom action.

Hi,
yeah, the second setup is probably doing a repair...

I've investigated a little since you mentioned that changed files
might trigger this, and that is what happens. When I start the
database, it starts to change it's datafiles as it should, but it
seems that it is this that triggers the repair... how do I specify
that certain files should NOT be monitored by this installer feature
so that they can be modified without it triggers a repair?

BR,
Kenneth
In the setup project, look at the properties for the file in question. I
believe that the property "Vital" should be set to false. I'm not at a site
where I have access to one of my setup projects that I had this issue, so I
cannot be positive this is the property.
Nov 19 '08 #4

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

Similar topics

5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
2
by: Marc Champagne | last post by:
Hi folks! I have built a VB project in VS.NET 7 which also includes a deployment project. Everything builds ok. When I install the setup package, it installs without a glitch.
5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
4
by: NaterPotater | last post by:
I can't seem to get my head around the Visual Studio's Deployment Projects: I want the user, at install-time, to be able to specify if they want a icon placed on the desktop or not (I'm trying to...
6
by: Paul | last post by:
Hello everyone: I am developing a VB.Net Windows Application and I am now ready to create the deployment project for it. This application needs to be installable on a different number of users...
3
by: Jim Owen | last post by:
Hi All, I'm putting together my first web deployment project using VS2003 and have a few questions someone might be able to help on. First, I need to modify the web.config file based on entries...
1
by: Marty Cruise | last post by:
My application is run within an intranet environment and is installed on client machines. Each time the application is executed, it checks to see if a newer version is availble. If there is, it...
7
by: dhussong | last post by:
I have created a Setup and Deployment project in Visual Studio.NET 2003. After my installation has completed running I'd like to launch the EXE that I just installed. I've found how to launch the...
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.