search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
Miscellaneous GroupsView
Adsi General
Axapta
Axapta Application
Axapta Programming
Dataprotectionmanager
Hyper-V
Internetexplorer
Deployment Desktop
Design Gallery
Developer Outlook Addins
Development Device Drivers
Development Device Drivers Dtm
.NET Micro
Dynamics Gp Developer
Fortran
Greatplains
Groove
Helpauthoring
Hiserver General
Infopath
Internetexplorer Beta
Mom
Mshardware Product
Msroboticsstudio
Pos
Security Forefront
Servicesforunix General
Simulators
Smartphone
Softwareupdatesvcs
Solomon
Sv Windows
Windbg
Windows Devices Pnpx
Windows File_System
Windows Group_Policy
Windows Msi
Windows Sharedaccess
Windows Tabletpc
Windows Terminal_Services

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Application Development
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Windows Msi Posts  Ask A New Question 

How to exclude component from self-repair? - Vadim Rapp

Thursday, February 28, 2008 5:38 PM

Hello,

One of the registry values installed by the installation is supposed to be
deleted by the application on the first launch.

How to prevent Installer from trying to repair the product when it's started
next time from advertised shortcut? it sees that the registry value is not
there, and repairs.

thanks,
Vadim Rapp
reply
 

It repairs based on key files. Perhaps the registry key is also a key file. - Anthony [MVP]

Friday, February 29, 2008 3:30 AM

It repairs based on key files. Perhaps the registry key is also a key file.
You can make something else in that component a key file and it should not
repair,
Anthony,
http://www.airdesk.co.uk
reply

You can't. - mik

Sunday, March 02, 2008 10:08 AM

You can't. An advertised shortcut causes Windows Installer to check that the feature pointed to by the shortcut is suitably installed, and to do that it checks the feature's components, and the components of all parent features. If any of the key paths are missing or out of date, it will invoke the repair to fix them.

So, your options are:

* Don't do this (recommended)
* Move the registry value into a different component, not the key path
* Make the component part of a different feature
* Stop using advertised shortcuts

If you have data that needs to be modified by the application after install, I would strongly recommend making the application write it on first run. Only write registry values in the installer which are necessary for the application's first run.

--
Mike Dimmick

---Original Message---

One of the registry values installed by the installation is supposed to be
deleted by the application on the first launch.

How to prevent Installer from trying to repair the product when it's started
next time from advertised shortcut? it sees that the registry value is not
there, and repairs.
reply

If you want to exclude a specific component from repair use a null entry in - Phil Wilson

Wednesday, March 05, 2008 1:07 PM

If you want to exclude a specific component from repair use a null entry in
the ComponentId as described here:

http://msdn2.microsoft.com/en-us/library/aa368007.aspx
--
Phil Wilson
[MVP Windows Installer]
reply
 
 

Previous Microsoft Windows Msi conversation.