Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to run an EXE from installation program?
 

How to run an EXE from installation program?

Hello everyone.

I created a new setup project in VS2008.

I needduring the installation program, EXE will run. so I do "custom action" called VSTOR.EXE with "/q" parameter.
But there is an error during the run of the vstor.exe

I do not know why this happens.
There are some ideas on how to solve?

This component the installation shouldbe run(before or after installation it does not matter, Only it will automatically):
Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime (VSTO 2005 SE) (x86)
http://www.microsoft.com/downloads/details.aspx?FamilyID=F5539A90-DC41-4792-8EF8-F4DE62FF1E81&displaylang=en
Wiznet972  Monday, May 04, 2009 10:42 AM
That executable is a bootstrapper (launcher application) that launches an MSI installation (see vstor.exe /? command). You cannot run and MSI installation (the tool installation) while another MSI installation is already running (your installation). IOW, the utility is a prerequisite for your application so it must be installed before your installation is launched.

Modify your click once manifest to check whether or not the tool is already installed and then install it first before your application if it is not already installed.
ColbyRingeisen  Monday, May 04, 2009 2:48 PM
There is a whole article on MSDN about best practices for distributing vsto runtime with your applications. See Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer. Quite lengthy, but with something that long, odds are that the information you need will be in there somewhere.
-- Mike
Mike Wade - MSFT  Monday, May 04, 2009 5:46 PM
That executable is a bootstrapper (launcher application) that launches an MSI installation (see vstor.exe /? command). You cannot run and MSI installation (the tool installation) while another MSI installation is already running (your installation). IOW, the utility is a prerequisite for your application so it must be installed before your installation is launched.

Modify your click once manifest to check whether or not the tool is already installed and then install it first before your application if it is not already installed.
ColbyRingeisen  Monday, May 04, 2009 2:48 PM
okay, but how to findGUID of:

Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime (VSTO 2005 SE) (x86)
http://www.microsoft.com/downloads/details.aspx?FamilyID=F5539A90-DC41-4792-8EF8-F4DE62FF1E81&displaylang=en
Wiznet972  Monday, May 04, 2009 3:49 PM
The ProductCode guid for that is {388E4B09-3E71-4649-8921-F44A3A2954A7}

After the download, I opened the exe with Wizip, and looked at the internal MSI file with Orca.

Phil Wilson
PhilWilson  Monday, May 04, 2009 4:55 PM
There is a whole article on MSDN about best practices for distributing vsto runtime with your applications. See Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer. Quite lengthy, but with something that long, odds are that the information you need will be in there somewhere.
-- Mike
Mike Wade - MSFT  Monday, May 04, 2009 5:46 PM

You can use google to search for other answers

Custom Search

More Threads

• Where are the files?
• Silent install of setup.exe failed.
• How to add a link to the executable to user's programs menu?
• Run a cmd file in Merge Module Project
• Deploying program to web site.
• Application fails on first Update
• Problem with icons and banners
• Is it possible to add keys to the registry with ClickOnce?
• ClickOnce Update and Application.Restart spawns multiple open applications
• Overriding the SourceDir