I'm trying to install a Microsoft Outlook Add-In silently.
I already did the installer (.msi, has to be msi) with InstallShield, and at the end of the installation it does put the files in the correct folder and everything.
BUT I need to be able to execute this installer silently without the UserAccount Pop-Up shows up. (I have 'Publisher: Unknown').
AND be able to execute the '.vsto' file silently too since that's the one that adds it to Outlook.
Related
I need to prompt users to restart their PC after installing a program. I have created a MSI installer using the Microsoft Visual Studio 2017 Installer Project template.
There is no option in the project properties to prompt for restart once the installation is complete, and I have searched high and low on the web but am unable to find a way to configure the installer project to do this.
Is there no option I can configure for this in the installer project?
Do I have to write some code for a Custom Action to do it?
I have to do a reboot after install, as the software will be running in a corporate environment, and will run on machines that do not have admin rights. The software adds a reg entry that enables it to automatically start with windows. I have found that when I start the software from installer upon successful completion, it does not have access to certain paths in the user dir, that it does have access to when it starts with windows.
Thanks for your time.
Windows will reboot the PC if it's actually required for the installation to complete, so it may be worth explaining why you need the reboot. For example if it's needed to start a service just start it yourself in an installer class override.
The simplest way to do this is to open the MSI file with an MSI editor such as Orca, go to the InstallExecuteSequence table and add a new row, with the Action ScheduleReboot (case-sensitive) just after CostFinalize (although the location isn't too important) with a condition of Not Installed.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa371527(v=vs.85).aspx
That'll give you the standard message asking for the reboot. If you must be more aggressive, use the ForceReboot action instead after InstallFinalize.
The condions need to be chosen wisely otherwise you'll get a reboot on every action, such as repair and uninstall.
Visual Studio setup projects have limited functionality when compared with other tools such as InstallShield, WiX, Advanced Installer and so on. That's why this isn't an option in the IDE.
I've been developing an Outlook Add-in, been working and installing fine.
Then I tried to installed a really old version of the same add-in (trying to verify some old behaviour, the old plugin was for Outlook 2010), and it somehow messed up the install/uninstall process. Ever since then Office Outlook 2016/365 is not able to register/view the Add-in anymore.
I've tried the following:
Uninstall and Reinstall Outlook
Removes all the registry entries related to the Add-in (I literally search with the Add-in's keyword and removed hundreds of left over entries which I wasn't even aware of)
Deleted c:\Users\user\AppData\Local\Microsoft\Office
Deleted c:\Users\user\AppData\Roaming\Microsoft\Office
Deleted c:\Users\user\AppData\Roaming\MyAddIn
Ran CCleaner
Ran RegDllView to scan all the registered DLLs, and it says C:\WINDOWS\system32\mscoree.dll is "missing"? But is there...
Tried to uninstall and reinstall Add-in Express before recompile the whole project.
If i try to manually add the Add-in in Microsoft Outlook, Options > Add-ins > Manage > Add, if i point it to MyAddIn.dll it would say that it is not a valid COM Add-in (but nothing was changed in the project on how the dll was built). If i point it to adxloader.dll and hit OK, it won't complaint but nothing shows under Add-in either.
My next option is to completely reinstall Windows, this is driving me insane. Can anyone who have experienced this insanity give me some pointers?
Operating System: Windows 10
Office: Office 365 Outlook
I am currently using ClickOnce to deploy the simple Outlook 2013 Add-in I developed.
It seems like it will generate a folder with 3 files inside. Users have to open the folder and run the setup.exe file, the popup windows will require users to click "install" to finish the installation steps.
Since I am fairly new to .Net framework, and my team asks me to find out a better solution when installing the add-in that users only need to click one file and get everything set up. Because we hope the users can only go through very simple process to set up the add-in.
Do you think is there any way that I can deploy my add-in to have only one file generated and users can click that to install without any windows pop up?
Many thanks.
All possible options for deploying Office add-ins are described in the Deploying an Office Solution section in MSDN.
Note, you can call VSTOInstaller directly with the /i /s flags for a silent installation. See ClickOnce and Silent mode installation and How to install ClickOnce app without prompting the user? for more information.
In case MSI installer you are able to use the /quiet or /qn options with msiexec to perform a silent install. Read more about that in Silent installation of a MSI package.
So here is my dilemma. I need to create an install for an office addin that can be pushed out to the company through AD/Group Policy. I have to work with the following limitations:
All prerequisites have to be installed, silently
Everything needs to be done via one executable (so we're
bootstrapping the prerequisites)
All of this is going to have to be wrapped in an MSI so our sys
admins can push it out through GPO.
I've managed to get the exe set up, and it works except that the prerequisites are not being installed silently (I'm calling "setup.exe /qn"). I'm still having to accept the EULA for the "Visual Studio 2010 Tools for Office Runtime" install. I've done quite a bit of searching and managed to find this article http://blogs.msdn.com/b/mwade/archive/2007/11/29/how-to-update-the-bootstrapper-to-accept-command-line-arguments.aspx which says I can't avoid the EULA but it was written in '07 and so I wanted to see if anything had changed or anyone knew of a way to do this.
Essentially what I'm asking at this point is how can I get the bootstrapper to do a silent install of the 2010 VSTOR so that users will not be prompted with the EULA.
Thanks for the help.
You can sometimes use Orca to manually modify installers and remove these types of dialogs.
I have an application and Visual Studio 2010 Setup Project and Windows XP. During installation, my setup project is making some registry entries in HKLM registry. During startup, my application is making some entries in HKCU registry. Installer action is added to Install, Commit, Uninstall and Rollback folders.
Now to the point. I have two users: admin and restricted user (let's say Johnny).
From admin account, I run installer, I choose "For all users" option and installation is completed successfully. Double click on desktop shortcut to my app and it starts normally.
Then, I open regedit and grant access in full read/write/modify mode to HKLM registry to Johnny. The same thing with installation folder. After all that, I simply delete the installer msi file.
I log into the Johnny account and double click desktop shortcut and installer runs! And it ends with error ofcourse, because it cannot find installer file which I previously deleted. Strange thing to me is, that if I double click on an application's exe file in Program Files, my app starts normally (without that installer thing).
I've also noticed, that InstallState file is being left after installation process, but deleting it has no effect.
What I'm trying to achieve is to have a situation, that after successful installation from admin account Johnny may run the app without any installer actions made by system before first run.
Can You please point me into the right direction?
Thanks in advance,
Piotrek