Hello,
I added in my (MSI) installer project an advertisable shortcut, that
automatically repairs the installation when something is corrupted. It would
be more fine to have a normal shortcut, but I understood that this is not
possible without using Orca.
My installation project contains a custom action to start the application
after installation. However, now when I start the application with the
advertisable shortcut (and there is something to repair), the application is
now started twice (once by the custom action and once because I clicked the
shortcut).
Is there some way to determine whether the installation is started by an
advertisable shortcut or by a normal command Msiexec....? Then I am able to
only start the application in the custom action in the last situation.
Kind regards,
Roeland 4 2283
When your repair takes place, the custom action is called again because that
installer component is being reinstalled, and running the custom action is
part of that reinstall. You could solve the problem if you condition your
custom action on Not Installed, because the Installed property is true when
your repair happens but most likely false when it's called in your initial
install, depending on where you sequenced it.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer http://apress.com/book/bookDisplay.html?bID=280
"Roeland" <Ro********@hotmail.com> wrote in message
news:cp**********@www-2.dev.ict.nl... Hello,
I added in my (MSI) installer project an advertisable shortcut, that automatically repairs the installation when something is corrupted. It would be more fine to have a normal shortcut, but I understood that this is not possible without using Orca.
My installation project contains a custom action to start the application after installation. However, now when I start the application with the advertisable shortcut (and there is something to repair), the application is now started twice (once by the custom action and once because I clicked the shortcut).
Is there some way to determine whether the installation is started by an advertisable shortcut or by a normal command Msiexec....? Then I am able to only start the application in the custom action in the last situation.
Kind regards, Roeland
Hello,
I think this is not sufficient, because I use the installer for performing
an automatic update of the application. In that case the application is
already installed.
So, is there another property to make the distinction between both
situations?
Kind regards,
Roeland
"Phil Wilson" <pd*******@nospam.cox.net> wrote in message
news:O5**************@TK2MSFTNGP15.phx.gbl... When your repair takes place, the custom action is called again because
that installer component is being reinstalled, and running the custom action is part of that reinstall. You could solve the problem if you condition your custom action on Not Installed, because the Installed property is true
when your repair happens but most likely false when it's called in your initial install, depending on where you sequenced it. -- Phil Wilson [Microsoft MVP-Windows Installer] Definitive Guide to Windows Installer http://apress.com/book/bookDisplay.html?bID=280
"Roeland" <Ro********@hotmail.com> wrote in message news:cp**********@www-2.dev.ict.nl... Hello,
I added in my (MSI) installer project an advertisable shortcut, that automatically repairs the installation when something is corrupted. It would be more fine to have a normal shortcut, but I understood that this is
not possible without using Orca.
My installation project contains a custom action to start the
application after installation. However, now when I start the application with the advertisable shortcut (and there is something to repair), the
application is now started twice (once by the custom action and once because I clicked the shortcut).
Is there some way to determine whether the installation is started by an advertisable shortcut or by a normal command Msiexec....? Then I am able to only start the application in the custom action in the last situation.
Kind regards, Roeland
I think the REINSTALL property is true during a repair, so you could try a
condition of NOT REINSTALL on your custom action.
--
Phil Wilson [MVP Windows Installer]
----
"Roeland" <Ro********@hotmail.com> wrote in message
news:cp**********@www-2.dev.ict.nl... Hello,
I think this is not sufficient, because I use the installer for performing an automatic update of the application. In that case the application is already installed.
So, is there another property to make the distinction between both situations?
Kind regards, Roeland
"Phil Wilson" <pd*******@nospam.cox.net> wrote in message news:O5**************@TK2MSFTNGP15.phx.gbl... When your repair takes place, the custom action is called again because that installer component is being reinstalled, and running the custom action
is part of that reinstall. You could solve the problem if you condition
your custom action on Not Installed, because the Installed property is true when your repair happens but most likely false when it's called in your
initial install, depending on where you sequenced it. -- Phil Wilson [Microsoft MVP-Windows Installer] Definitive Guide to Windows Installer http://apress.com/book/bookDisplay.html?bID=280
"Roeland" <Ro********@hotmail.com> wrote in message news:cp**********@www-2.dev.ict.nl... Hello,
I added in my (MSI) installer project an advertisable shortcut, that automatically repairs the installation when something is corrupted. It would be more fine to have a normal shortcut, but I understood that this is not possible without using Orca.
My installation project contains a custom action to start the application after installation. However, now when I start the application with the advertisable shortcut (and there is something to repair), the application is now started twice (once by the custom action and once because I
clicked the shortcut).
Is there some way to determine whether the installation is started by
an advertisable shortcut or by a normal command Msiexec....? Then I am
able to only start the application in the custom action in the last situation.
Kind regards, Roeland
If you want regular shortcuts instead, use the property
DISABLEADVTSHORTCUTS=1 when installing and your package will create normal
Windows type shortcuts.
D.
___________________________
Darwin J Sanoy
Principal Consultant and Trainer
DesktopEngineer.com
DesktopEngineerTraining.com
"Roeland" <Ro********@hotmail.com> wrote in message
news:cp**********@www-2.dev.ict.nl... Hello,
I added in my (MSI) installer project an advertisable shortcut, that automatically repairs the installation when something is corrupted. It
would be more fine to have a normal shortcut, but I understood that this is not possible without using Orca.
My installation project contains a custom action to start the application after installation. However, now when I start the application with the advertisable shortcut (and there is something to repair), the application
is now started twice (once by the custom action and once because I clicked
the shortcut).
Is there some way to determine whether the installation is started by an advertisable shortcut or by a normal command Msiexec....? Then I am able
to only start the application in the custom action in the last situation.
Kind regards, Roeland
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Roeland |
last post by:
Hello,
I added in my (MSI) installer project an advertisable shortcut, that
automatically repairs the installation when something is corrupted. It would
be more fine to have a normal shortcut,...
|
by: Benjamin |
last post by:
I have a very strange problem.
I have developed a .NET solution. To set up user clients I have also
included a "Deployment Project" in the solution:
Using "File System Editor | User's Program...
|
by: Dan =o\) |
last post by:
All,
Apologies if this isn't in the right newsgroup, but I was just taking my
best stab at where it may go!
I've written a C# app with VS.Net 2003, then for deployment created a setup...
|
by: I_AM_DON_AND_YOU? |
last post by:
There is one more problem I am facing but didn't get the solution. In my
Setup Program I am not been able to create 2 things (when the program is
intalled on the client machine ) : (1) create...
|
by: MJB |
last post by:
I'm using Visual Studio 2005 and I have built an msi using the built in
setup project. My application installs fine, but on install the
application itself runs a few configuration scripts which...
|
by: ritenah |
last post by:
I am running this command from a .bat file.
"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR
Database repairs as expected, then shows the messge:
"Successfully repaired the...
|
by: Simon |
last post by:
Dear reader,
How can I use a command in the current mdn to compact and repair the mdb.
In which the source file is the current database.
|
by: Ron |
last post by:
Hi All,
Using WinXP pro/Access 2000.
I have a database that's been used for about 5 months. Transferred lots of
data from a dos based program, then the users have been using it for that 5...
|
by: Roger |
last post by:
if I make a copy of northwind.mdb sample and import data till it
reaches 350Gb in size
and then I make a second copy of northwind
then I open nw1.mdb and do a compact / repair that takes 30-60...
|
by: troy_s11 |
last post by:
I have deleted a lot of imformation from a database that has gotten
large. After deleting the data, I did a compact and repair thinking
it would reduce the size of the database. It doesn't change...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |