Solved

deployment c# application windows 7

Posted on 2010-11-16
3
786 Views
Last Modified: 2012-05-10
I have a setup file created from my vsto application and put it on a network share. I know it install when I use my domain admin user. But when I use a normal domain user account it gets stuck immediately when trying to install.
Main error message is : "Access to the path 'c:\users\USERNAME\Appdate\local\deployment' is denied.
Is there something I can do with my setupfile to install it anyway ??

Detail of error :
Installing Office customization
There was an error during installation.
Name:
From: file:///U:/Templates2010/Memo2010b.vsto

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Users\standaard1\AppData\Local\Deployment' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
   at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
   at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)
   at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
   at System.Deployment.Application.DeploymentManager..ctor(Uri deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp)
   at System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest, Boolean launchInHostProcess)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.IPHMProxy..ctor(Uri uri)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.get_Proxy()
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
0
Comment
Question by:dekempeneer
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
alaran earned 500 total points
Comment Utility
Try right-clicking the file and select "Run as administrator".

This should execute the installer with elevated rights. (Your regular domain account may have to be a member of the local Administrators group)
0
 

Author Comment

by:dekempeneer
Comment Utility
Yes but I don't want to run it as admin :)
0
 
LVL 4

Expert Comment

by:alaran
Comment Utility
then you will probably have to give your domain user write access to the "c:\users\USERNAME\Appdate\local\deployment" folder. Either way, you'll have to run the installer in a context where you have these permissions.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now