Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Run Custom Action as Trusted Installer
 

Run Custom Action as Trusted Installer

Hello. I have non-MSI custom action which needs to write entry to Microsoft.Common.targets(%WinDir%\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets) file. In case when this file is owned by Trusted Installer it fails.
The question is how to evaluate custom action (*.exe) rights to Trusted Installer tobe able to write to Microsoft.Common.targets file?

Alexey B  Thursday, September 10, 2009 8:34 AM
I think this falls into the category of "When things are difficult to do, its probably because you shouldn't be doing it."

The real question is: Under what circumstances would you want to make updates to Microsoft.Common.targets file? Perhaps you should be taking a different approach and using your own custom targets file, installed to the MSBuildExtensionsPath location.
-- Mike
Mike Wade - MSFT  Thursday, September 10, 2009 7:52 PM
I think this falls into the category of "When things are difficult to do, its probably because you shouldn't be doing it."

The real question is: Under what circumstances would you want to make updates to Microsoft.Common.targets file? Perhaps you should be taking a different approach and using your own custom targets file, installed to the MSBuildExtensionsPath location.
-- Mike
Mike Wade - MSFT  Thursday, September 10, 2009 7:52 PM

You can use google to search for other answers

Custom Search

More Threads

• RE: Setup file deployment question.
• Delaying Activation of Downloaded Update?
• Running a .EXE file on Windows
• Error Publishing my project to localhost
• Certificate issues in VB 2005 Express
• Instalation problem Win98
• Who should use ClickOnce?
• ensuring only one instance of an app is running with ClickOnce apps
• OnBeforeInstall and installing EXE side by side with previous version
• Not checking for or installing SQL CE?