How to uninstall Outlook 2013 then reinstall using MSI script? - batch-file

Good morning,
Have rapidly reached the limits of my knowledge re: using MSIEXEC after having been asked to create a script that will uninstall Outlook 2013 and then reinstall it, using a batch file.
I created two .msp files using the MS Office customization tool, and on the test pc, placed them in C:\Program Files (x86)\Office2013_Admin\updates.
Next, have run through a number of attempts, some successful, most not, wrote
c:\windows\system32\msiexec /p "C:\Program Files (x86)\Office2013_Admin\updates\NYSP_Disable_Outlook.MSP" /norestart /qb
and in trying to reinstall Outlook, wrote
c:\windows\system32\msiexec /p "C:\Program Files (x86)\Office2013_Admin\updates\NYSP_Enable_Outlook.MSP" /n {90150000-002A-0409-1000-0000000FF1CE} /qb
Sure could use some help, please. Not sure what I'm doing wrong, and am open to advice.
Thank you

Really? This is the level of engagement and support at stackoverflow? The response has truly been ... impressive.

Related

Issue installing MSI silently using msiexec, possible syntax issue?

Essentially I would like to install an msi file silently, and I've got it to work using the following line:
msiexec /i C:\Users\%username%\Downloads\mysqlODBC.msi /passive
One addition I would like to make is to add double quotes to the user name portion of the line to ensure any usernames that may contain spaces are read correctly. ----> "%username%"
The issue is the msi file fails to install when I add this. I have always used this when writing batch scripts with directories. Any idea how this can be addressed to work with msiexec?
Link to MSI file I am trying to quietly install:
https://dev.mysql.com/downloads/file/?id=484649
Network Installation Point?: It is not quite clear to me what you are trying to achieve. Do you want to automate the installation of this MSI on many machines? If so you should create a network installation point accessible via a UNC path and run an administrative image to extract all files and create a network installation point that can be used for all computers:
msiexec.exe /i "\\Server\Share\Setup.msi" /QN /L*V "C:\Temp\msilog.log"
If you have that instillation point there really is no reason to make a folder for each user. Why duplicate installation files? Surely you don't want each user to download the installer? You would want to download once, malware check and then rely on what you downloaded once and for all?
Anyway, if you insist:
msiexec.exe /i "\\Server\Share\%username%\Setup.msi" /QN /L*V "C:\Temp\msilog.log"
Quick Parameter Explanation:
/i = run install sequence
/QN = run completely silently
/L*V "C:\Temp\msilog.log"= verbose logging at specified path
msiexec.exe: See this answer for some further details on the msiexec.exe command line: MSIEXEC what is the difference between qn and quiet. There are two different flavors of it - two different sets of switches: old style and some newer, "friendlier" versions. I only use the old style switches. There is a tool you can use to generate the command lines.
Some Links:
Customize msiexec progress bar?
How to install an MSI silently
TL; DR :
pushd "C:\Users\%username%\Downloads\"
msiexec.exe /a "mysqlODBC.msi" /quiet /norestart /log "%cd%\msiexec_install.log"
popd
Details :
While the fully qualified path should be able to placed in-between double-quotes, an alternative option would be to use pushd and popd to move to an from the directory containing the MSI.
In the example above, I replaced the progress bar (aka /passive) with /quiet. I also used /a rather than /i out of habit - either can be used to install. And I included a log-to-file option which can be useful in troubleshooting.

In batch script silent installation using Reboot=reallysuppress is not updating the files

I am using batch Script for silent Installation to update the locked and in use files.Using silent installation reboots my system automatically after the update.But I wanna setup a custom reboot message box , So I used the REBOOT=ReallySuppress attribute. And I used a message box to popup the custom reboot message. This helps me avoid the auto-reboot of the system but it is not updating the files even after performing a manual reboot.
Here is the script that I am using.
#echo off
title Installing Updates
msiexec /i "C:\Users\tparvathaneni\Documents\Visual Studio 2015\Projects\SetupProject1\SetupProject1\bin\Debug\SetupProject1.msi" /qn /REBOOT=ReallySuppress
echo updates installed
echo msgbox "Restart your system to complete the installation." > "%temp%\popup.vbs"
wscript.exe "%temp%\popup.vbs"
pause >NUL
shutdown.exe /r /t 000
Can someone give me a solution to get the files updated with manual reboot.
did you try instead of /REBOOT=ReallySuppress the /norestart option?
Please also make a log file in the install cammand via /l option. Then read the log if really the installer reboots the computer.

windows update uninstall batch file

KB3114409 KB2825678 windows update patch files you may know that has caused many user to only be able to launch outlook in safe mode. that means i can not find anybody in outlook, anyway it is no good patch to me.
so i made batch file for our staff that is for uninstalling windows patch about KB3114409 KB2825678. it seems to be looking those file and uninstall. but if i have a look in installed update console, there is still remain those two.
i execute this batch file in administrator mode as well, but still same in.
#echo off
Wusa /KB:3114409 /Uninstall
Wusa /KB:2825678 /Uninstall
exit
i made it like that, but i still have those patches...
i use win7 64bit and using user mode, not administrator mode.
please any idea..?
Not sure if you really have everything on one line or if your post just turned out that way. This is what I use:
#echo off
start "" /b /wait wusa.exe /uninstall /kb:3114409 /quiet /norestart
start "" /b /wait wusa.exe /uninstall /kb:2825678 /quiet /norestart
To put all commands on one line you would need to separate them with &
but that makes it a bit harder to read. Also see WUSA /?
Its better to use MSIEXEC to remove this patch since its an "Office patch" and not for Windows.
Tutorial and script approach described at: http://blog.jocha.se/tech/uninstall-outlook-kb3114409

Convert batch script to sh

I am new with ubuntu, please help me convert these batch codes to sh, I am trying to run the files mentioned below and run as a service after installing. I already searched for answers but failed to find one.
#echo off
echo Installing services
.\Central\GunBoundBroker3 -install
.\Server8360\GunBoundServ3 -install
.\Server8361\GunBoundServ3 -install
.\BuddyCenter\BuddyCenter2 -install
.\BuddyServ\BuddyServ2 -install
#echo off
echo Initiating Services
net start "GunBoundXPBroker[8372]"
net start "GunBoundXPServ[8360]"
net start "GunBoundXPServ[8361]"
net start "Buddy Central Service 2"
net start "Buddy Service 2"
pause
Firstly you do not need #echo off; this is dos specific.
Secondly, create your script with the first line saying:
#!/bin/bash
Thirdly, you will need to use forward slashes (/) rather than backslashes (\) in your filenames
Fourthly there isn't really an analogue to net start in Linux - This question on Ask Ubuntu for details of how to add custom init scripts if this is what you're after
I hope this helps - unfortunately without you ellaborating on what these files you're running do and where they're from, how you've ported them from Windows to Linux, etc I cannot be more specific

How to let msi package install process take place in cmd instead of windows installer gui

How can I make a batch file that automatically installs java,office and adobe stuff without gui, instead of that I want to let whole proces take place inside the command prompt. For example I want to have a bar inside the command prompt telling me how far the install process is. How do I make that, I can't find it on the internet. Here is a example of what I already have:
#echo off
echo Installing application...
msiexec.exe /passive /i "%~dp0skypesetup.msi"
echo Install failed.
pause
Here I have the msi file if you wanna help me: http://www.skype.com/go/getskype-msi
Does anyone knows how to make a program with percent bar inside the command promt?
For the external GUI you can check MsiSetExternalUI function (follow the links). For installing silently the basic msiexec.exe command line is:
msiexec.exe /I "C:\MsiFile.msi" /QN /L*V "C:\msilog.log"
Quick explanation:
/I is for install
/QN is silent mode
/L*V is verbose logging
Some links:
Silent Install of MSI
What is different about a silent installation session
Common msiexec.exe command lines
Here is an answer that discusses alternative ways to install a package without using msiexec.exe
How to disable an extra window to restart system even after selecting not to do so in files in use dialog in installshield
Stupid me :( , I'v searched a lot and finally found it. I thought I had to use msi but I can also do it with .exe files. Stupid me.
Here's the code if someone wants it or needs it:
#ECHO OFF
echo Do you want to install ccleaner
pause
ccleaner.exe /S /L=1043
echo You've succesfully installed ccleaner
pause

Resources