473,498 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Advertisable shortcut - repair

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
Nov 22 '05 #1
4 2286
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

Nov 22 '05 #2
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


Nov 22 '05 #3
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



Nov 22 '05 #4
Djs
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

Nov 22 '05 #5

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

Similar topics

4
365
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,...
2
2497
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...
4
2800
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...
4
4381
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...
2
6761
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...
11
4922
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...
2
21263
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.
2
2768
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...
6
2786
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...
3
2543
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...
0
7125
marktang
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,...
0
7165
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,...
0
7203
jinu1996
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...
1
6885
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...
0
7379
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...
0
4588
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...
0
3093
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...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
290
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...

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.