Questions tagged [managedinstallerclass]
10 questions
4
votes
1 answer
C# Installing a service and set to automatic start on boot
I currently have a program to install correctly as a service but the Startup Type is set to "Manual". How do I make this application set Startup Type = Automatic?
static void Main(string[] args) {
if (System.Environment.UserInteractive)…

Sari Rahal
- 1,897
- 2
- 32
- 53
3
votes
4 answers
How to delete application folder on uninstall
I have created a setup using Setup project in VS 2010. It install my application into program files folder lets say XXX. My application further creates some files and folder into XXX folder. At the time of uninstall it delete every thing whatever…

Vipul
- 1,563
- 4
- 22
- 46
3
votes
2 answers
How to get the msi path within installerclass in C#
I would like to know the path where the msi is located whithin the InstallerClass that I use as a custom action in the setup.
I tried using properties like path, SrcDir etc. in Context.Parameters, but those values do not exsist (Throws…

Dulini Atapattu
- 2,735
- 8
- 33
- 47
2
votes
1 answer
Windows Service Fails To Start Through ManagedInstallerClass But Succeeds Through InstallUtil
I have created a windows service in Visual studio 2012 (c#) that needs to be started after install. I have read so many articles and StackOverflow questions but none got it working.
In the main function, I have:
static void Main(string []args)
{
…

Ali Baig
- 3,819
- 4
- 34
- 47
1
vote
2 answers
Installing a windows service programmatically
I'm attempting to install a service programmatically via C# but I have run into an issue that I can't get around.
After reading loads of documentation I'm at that point where I believe Microsoft have a bug, (But we all know that's not the case).
So…

RobertPitt
- 56,863
- 21
- 114
- 161
0
votes
1 answer
Problems using an installclass in a web setup for a web site
I am trying to create a web setup for my web site, and I want to use an installer class to do some custom stuff. I am using VS 2010, and the web site and installer is .NET 3.5.
I have added reference to the installer class project output in the…

awe
- 21,938
- 6
- 78
- 91
0
votes
2 answers
C# InstallUtil/ManagedInstallerClass: Why are key value pairs not pass into the installers context parameters collection?
I pass the service name into the argument list, but when I look in the installers context it is not there:
args = new[] { Assembly.GetExecutingAssembly().Location, "/ServiceName=WinService1" };
ManagedInstallerClass.InstallHelper(args);
Why are key…

Rookian
- 19,841
- 28
- 110
- 180
0
votes
1 answer
Module failed to register HRESULT / Error 1001
My first question is about the error below :
Module [Path/Name of dll].dll failed to register. HRESULT -2147024769. Contact your support personnel.
I can continue the installation but i want to get rid of this error if possible.
The second question…

Erebos
- 93
- 2
- 10
0
votes
1 answer
Connect to LocalDB from installer class
I'm trying to install database to LocalDB from installer class. When trying to open SQLConnection, I get an error:
Login failed for user 'NT AUTHORITY\SYSTEM'
It seems that the installer class runs from the system account, and LocalDB cannot be…

Aleksey Shubin
- 1,960
- 2
- 20
- 39
0
votes
1 answer
Installing Windows Service via ManagedInstaller - how to install 64-bit service?
I was going to post this, but managed to dig up the answer, so here it is in case anyone else is looking...
My app installs a windows service via:
string[] installargs = new string[] { binaryname…

steve cook
- 3,116
- 3
- 30
- 51