How to config a Windows Service not start service In InstallShield 2015? - windows

enter image description hereI want to make a msi package by InstallShield 2015. I configed a service, choose Start Type "On Demand". When I run the msi package, the InstallShield always to start the service. What should I do? I do want't start the service. How to config it?

Related

Separating the clickOnce setup.exe

I am trying to deploy the setup.exe that click once creates to users through sccm due to business practices. The issue I am running into is that when I move the setup.exe out of the folder that contains the .VSTO, then the computer the setup.exe is being run on cannot find the VSTO. Is there anyway when publishing to have that setup.exe file look back at the file server that contains the VSTO?
A bootstrapper (setup.exe) just check for prerequisites before running a real installer app for installing the software. Running setup.exe separately doesn't make any sense.
There are two main ways of deploying Office applications:
Deploy an Office solution by using Windows Installer. It is used for centralized deployments like SCCM.
Deploy an Office solution by using ClickOnce.
You may find various custom installers that may embed everything into a single setup.exe file. For example, you may take a look at InstallShield or Advanced Installer .

Visual Studio 2010 - create silent MSI for project?

We have an Outlook addin that we created in Visual Studio 2010 in C#. When publishing, we're given an exe that does not allow for any quiet installation processes - none of the typical command switches work.
How do I generate a silent MSI instead of the default setup exe?
Found the solution I was looking for in an MSDN help article.
Deploying an Office Solution by Using Windows Installer
This is all I wanted to do - create an MSI instead of using the provided exe (which does NOT include an integrated MSI or other packages). This allows for flexible, scalable deployments without user interaction, regardless of user that is logged in to the machine.
The short answer is that it just works if you use only the MSI file. The setup.exe installs the prerequisites and then launches the MSI file. There is no good answer I can give about the prerequisites because they may all be different, but in general you just use whatever the details of the redist tell you in docs or a web search, installing prereqs by administrators etc.
It's an MSI, you publish it to the machine (I think that's the group policy description) and in fact the install is required to be silent and will give you an error if you attempt to show UI, the message being "This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic."
In other words when the administrator has defined the install parameters etc the user cannot change them.

Creating custom registry settings during installation of Office addins

Is there a way to inject a custom registry setting during installation of Office plugins? Using Visual Studio 2013 and regular "publish" method that generates an .MSI file
You have 2 options for installing: Click Once and Windows Installer (.msi)
Are you sure Publish is creating an .MSI, because in a previous version of Visual Studio it makes a ClickOnce installer which is totally different from an .MSI.
Start here: http://msdn.microsoft.com/en-us/library/bb386179.aspx
I don't think the ClickOnce option gives you the ability to add your own registry settings. If you go the ClickOnce route then it would probably be easiest to add the registry setting in your addin code, assuming the registry location is something like HKCU that the user would have access to. If you need to write to HKLM hive then that requires admin privileges and you shouldn't try doing that from your addin, it will need to be added in a .MSI that runs with admin rights. You can use the InstallShield LE as mentioned in the article, or you could obtain the just released addin for Visual Studio that brings back the old Setup Project (http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx)

Stop a service before installation

I wrote an application that installs using the Visual Studio 2010 Setup Project. As part of its installation, my application installs and starts a Windows Service. No problems there.
When I release a new version of the application, the installer overwrites the contents of the application folder. Unfortunately, it cannot overwrite the service as it is already running.
How can I stop the service before the MSI starts copying files? I'm considering a custom bootstrapper (installer prerequisit) that doesn't install, but removes the service. Or can I use Orca to add an action before installation? Or do you know another way?
Usually this is done through service control operations. Basically, you need the Stop and Delete flags set for uninstall.
Another approach would be to use ServiceInstaller.Uninstall in a custom action to stop and remove the service.
If you want to avoid the files in use dialog, you can try this approach:
Problem stopping Windows Service from Installer Class. Events fire too late

Create exe to monitor service in Visual Studio 2010

I've created a windows service project, but I need to create another project to monitor this service.
I was told to create an exe application, but I don't know which type of project to create in VS 2010 that will generate a exe file that can monitor the windows service I've created.
Thanks!
Depends on what is meant by "monitor". WinForms application will work.

Resources