473,573 Members | 2,829 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5848

"KennethLun din" <ke************ @dacom.sewrote in message
news:32******** *************** ***********@x16 g2000prn.google groups.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.c omwrote:
"KennethLun din" <kenneth.lun... @dacom.sewrote in message

news:32******** *************** ***********@x16 g2000prn.google groups.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


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

news:32******** *************** ***********@x16 g2000prn.google groups.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
16233
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 Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet...
2
1350
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
4899
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 1.1 -> MsiNetAssembly Support.) I have a few issues and questions regarding the MSI and its properties. * This may be my biggest annoyance at the...
4
1745
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 use Checkboxes(A)). Seemingly you can just place the Checkbox1Property Name into the User's Desktop Condition but that does not work. I actually...
6
2018
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 / clients, and the application has an Access DB out on their network. How can I create a deployment routine where I can have a dialog box prompt...
3
293
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 made during the installation from one of the TextBoxes dialogs. Is this possible? If so, can someone point me in the direction of some doc or...
1
1504
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 launches a new process and starts the installation while shutting down the original process. I'm running into some issues, however 1) A duplicate...
7
2827
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 EXE in the Custom Actions area of the Setup and Deployment project. Unfortunately when the EXE is launched it causes the setup program to stay open...
13
9691
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? ...
0
8027
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. ...
1
7788
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...
0
6421
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...
1
5594
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5292
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...
0
3733
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...
0
3733
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2216
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
1304
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.