K
KennethLundin
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
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