473,614 Members | 2,487 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 2304
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********@hot mail.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*******@nosp am.cox.net> wrote in message
news:O5******** ******@TK2MSFTN GP15.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********@hot mail.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********@hot mail.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*******@nosp am.cox.net> wrote in message
news:O5******** ******@TK2MSFTN GP15.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********@hot mail.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
DISABLEADVTSHOR TCUTS=1 when installing and your package will create normal
Windows type shortcuts.

D.

_______________ ____________
Darwin J Sanoy
Principal Consultant and Trainer
DesktopEngineer .com
DesktopEngineer Training.com

"Roeland" <Ro********@hot mail.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, 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...
2
2517
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 Menu" configuration a "Shortcut" is created and pointing to the client EXE-file. The created msi-file, NETProgram.msi, works perfectly on the clients. A Start Menu shortcut is correctly created in "C:\Documents and Settings\All
4
2805
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 application. Everything works fine except that every now and again clicking on the short-cut suddenly asks for the MSI package. Because it can't find it, the load up cancels...
4
4407
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 shortcut to my program/utility (2) Entry in Windows' Start --> Program Menu. Actually in my VB.Net solution I have two projects (1) MYPROGRAM (2) MYPROGRAM_INSTALLER. MYPROGRAM is a "Windows Application". MYPROGRAM_INSTALLER is a "SetUp Wizard"...
2
6770
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 alter the original contents of the directory. The next time you start the application by clicking the shortcut the MSI automatically tries to repair/restore the install back to the out of the box configuration. Any idea how to turn this feature...
11
4952
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 ..." and you have to click "Ok" to get rid of the message so that the database can close. How does one suppress this message, so that the database shuts down
2
21278
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
2779
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 months. About 180000 records in one of the main files (maybe 25000 new since the dos conversion). Been having some speed issues crop up along the way (much faster to do same reports when I first transferred the data than now, with the new 25000...
6
2803
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 seconds opening the nw2.mdb won't happen until compact repair is done ditto if importing lots of data in nw1 ditto if inserting sql server data in a table within nw1
3
2555
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 the size at all. Any help would be appreciated.
0
8142
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8642
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8591
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8444
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6093
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5549
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2575
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
1758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1438
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.