VMware Horizon Community
VMinLaw
Contributor
Contributor
Jump to solution

Run Script before opening Outlook 2010

We have a command we need to run to load an add-in in Outlook prior to opening it.   We have thinapp'd Office and it works fine but we need to figure out how to run the script only once when they first open Outlook.  Does anyone know of a good way to do this?  I have it to the point where I created a shortcut under Office Tools to run the script manually but I would like this to be seamless to the user.

We basically need to run the following to load the add-in.

appinstall.exe servername

Reply
0 Kudos
1 Solution

Accepted Solutions
Lakshman
Champion
Champion
Jump to solution

Reply
0 Kudos
6 Replies
Lakshman
Champion
Champion
Jump to solution

You may try using VB script. See here for examples:

Scripting within ThinApp | VMware ThinApp Blog - VMware Blogs

Reply
0 Kudos
VMinLaw
Contributor
Contributor
Jump to solution

That sounds like it will work.  Where do I configure the scripting at? 

Reply
0 Kudos
Lakshman
Champion
Champion
Jump to solution

You can leave the script at the root folder where the package.ini and build.bat exists.

Using the call back functions explained in the blog, the script can be called.

If no callback functions are used, the script will be executed every time when the ThinApp is launched.

Reply
0 Kudos
VMinLaw
Contributor
Contributor
Jump to solution

I am still not understanding how the script will be called?   If I just create a script like runscipt.vbs with one of the functions in the blog then put in the root folder how is it called?

Reply
0 Kudos
VMinLaw
Contributor
Contributor
Jump to solution

I see how to do it now.  Do you need to build the project once you add the script or can you just add it to the root project folder after a build?

Reply
0 Kudos
Lakshman
Champion
Champion
Jump to solution

A rebuild is required whenever any addition or deletion of files to the ThinApp project folders.

Reply
0 Kudos