PC Review


Reply
Thread Tools Rate Thread

msi keeps reinstalling

 
 
Alex
Guest
Posts: n/a
 
      6th May 2004
Hi,

I would like to know how do I disable, in msi project prepared by
vs.net 2003,
the following "feature":

When the client deletes a file on the machine, with the application
installed, on next run, the msi pops up, and reinstalls this file.

I can edit the msi file with orca, but I don't know the correct
property name to disable. I also have the vs.net 2003 setup project,
and the closest property I see there is "vitality" property for file,
but it doesn't have any effect.

Thank you in advance,
Alex
 
Reply With Quote
 
 
 
 
Carolyn Napier [MSFT]
Guest
Posts: n/a
 
      7th May 2004
You have two options in this case if you want to disable application self-repair
(although I wouldn't normally recommend it). This is basically being caused by
the shortcut which is a special MSI shortcut that can handle the self-repair.
The way it works is that it checks for the presence of the keypaths of the
components to which the shortcut's feature includes.

In any case, here's how to disable the capability:

Option 1:
Add the DISABLEADVTSHORTCUTS property to the Property table in your package and
give it a value of 1.

Option 2:
Alter the Target column of the Shortcut table for the shortcut in question.
Change it from referencing a feature to instead using the [#filetablekey]
syntax. This will make it a 'normal' shortcut. Normal

You should be able to accomplish both using Orca. Both methods result in the
creation of normal shortcuts which do not have the self-repair capabilities. It
should also be noted that COM activation (CoCreateInstance calls) can result in
the same behavior. If you don't want that, then you should author what you would
normally put in the Class table in the Registry table instead.

You can find more information on this in the Windows Installer documentation:
http://msdn.microsoft.com/library/de...s_property.asp
http://msdn.microsoft.com/library/de...tcut_table.asp

Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team


--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>


"Alex" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I would like to know how do I disable, in msi project prepared by
> vs.net 2003,
> the following "feature":
>
> When the client deletes a file on the machine, with the application
> installed, on next run, the msi pops up, and reinstalls this file.
>
> I can edit the msi file with orca, but I don't know the correct
> property name to disable. I also have the vs.net 2003 setup project,
> and the closest property I see there is "vitality" property for file,
> but it doesn't have any effect.
>
> Thank you in advance,
> Alex



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reinstalling Office after Reinstalling Vista PepsiChap Windows Vista General Discussion 2 2nd Aug 2009 11:09 PM
reinstalling xp rtdavide@yahoo.com Windows Vista General Discussion 3 12th Dec 2007 11:18 PM
Reinstalling microsoft programs after reinstalling vista =?Utf-8?B?c2VlbmVy?= Windows Vista General Discussion 5 15th May 2007 05:27 PM
Driver reinstalling and reinstalling and reinstalling... JanDG Windows XP Print / Fax 3 28th Feb 2006 07:05 PM
XP reinstalling lori Windows XP Setup 1 1st Sep 2004 06:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:57 AM.