Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > A different MSI/Vista/UAC/2869 problem
 

A different MSI/Vista/UAC/2869 problem

There appears to be lots of information on the web about working around the "Error 2869" problemby setting the NoImpersonate bit in the MSI file. We tried this solution for our application, and while it did get rid of the 2869 problem, it created a new problem for us.

We're using a custom action on Commit to launch our application at the end of the install, using System.Diganotics.Process.Start(). Because our application uses user-specific registry entries and folders, using NoImpersonate causes the installer-launched application to run as the wrong user and use the default user profile.

Is there some way around this?

Eugene Gershtein  Thursday, August 02, 2007 8:39 PM
Do you want to run your app as admin or a specific user?

If admin: you could try adding a manifest to your app.exe that has the requestedExecutionLevel set to requireAdministrator. Users will get the elevation prompt before the app starts.

If specific user: have you tried passing username/password using the StartInfo class? I know there are properties for Username, Password and LoadUserProfile. This would require you to read some values from user input/config file or hardwire your app to a specific user.
Matt Smith MSFT  Friday, August 03, 2007 4:08 PM
Do you want to run your app as admin or a specific user?

If admin: you could try adding a manifest to your app.exe that has the requestedExecutionLevel set to requireAdministrator. Users will get the elevation prompt before the app starts.

If specific user: have you tried passing username/password using the StartInfo class? I know there are properties for Username, Password and LoadUserProfile. This would require you to read some values from user input/config file or hardwire your app to a specific user.
Matt Smith MSFT  Friday, August 03, 2007 4:08 PM

You can use google to search for other answers

Custom Search

More Threads

• Securing ClickOnce over the Internet?
• Dialogue boxes in MSI
• Several puzzles about ClickOnce Deployment
• References to files outside the current solution
• Installation Package using Install Shield
• Linq to Entities : Error while installing a windows application installing by clickOnce of vs 2008
• build server: Could not find required file 'setup.bin'
• 100% Managed Controls
• ClickOnce - .chm file is not available
• How to deploy WSE 2.0 Service Pack 3 enabled application without separate install of WSE?