Deploying Visual Studio Tools for Office 3.0 Runtime (EXE) in an MSI Package Without Using Bootstrapper

I created the Word Addin and created the MSI package to distribute it.

Using the information found at http://msdn.microsoft.com/en-us/library/cc563937.aspx ...

I tested Setup.exe and Addin installed correctly.

The problem is deploying Addin over our network. The system administrator needs the file in MSI, not exe. However, when starting MSI, you must first install a preliminary request (VSTOR.EXE). This, by default, asks us to run setup.exe (boostrapper), which installs the files.

If I can find MSI VSTOR.EXE (unfortunately I can’t), then we could push this to all the machines first before the premise is satisfied and the bootloader is not called.

Any suggestions would be good ???

Chris

+3
source share
2 answers

If you are using Visual Studio 2008 Service Pack 1 (SP1), here is the VSTO runtime installation information:

Microsoft: VSTO Runtime 3.0 , VSTO Runtime 3.0 SP1 (both required)

Install VSTO 3.0, then SP1. Here is the silent installation used by the bootloader:
[vstor.exe] / q: a / c: "install / q / l"

( , ), (3.0, SP1):
HKLM\Software\Microsoft\VSTO Runtime Setup\v9.0.21022\Install
HKLM\Software\Microsoft\VSTO Runtime Setup\v9.0.30729\Install

+1

vstor.exe(Visual Studio 2005 Tools for Office Second Edition Runtime) .

  • vstor.exe . " "
  • Computers ( OU ).
  • OU script ( → Windows → → ).
  • script . .vbs script ( vbscript). .vbe, script .

script :

Option explicit
Dim oShell
Dim objFSO, strSourceFile, strTargetFile

strSourceFile = "\\servername\share_folder\vstor.exe"
strTargetFile = "c:\"

set oShell= Wscript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")

On Error Resume Next
If objFSO.FileExists( strTargetFile) Then
 Endend
Else 
 objFSO.CopyFile strSourceFile, strTargetFile
End If

oShell.Run "RunAs /noprofile /user:your_domain\administrative_account ""C:\vstor.exe /q"""
WScript.Sleep 100
oShell.Sendkeys "password_of_the_administrative_account~"

Endend:
Wscript.Quit
+1

Source: https://habr.com/ru/post/1731539/


All Articles