/build/static/layout/Breadcrumb_cap_w.png

excel plug-in

i have an excel plug-in that i want to incorporated into my application repository. the plugin resides here:

C:\Documents and Settings\%username%\Application Data\Microsoft\AddIns

Is there a way to edit the office pro msi to include this plug-in (especially since it is profile specific) or should i just go ahead and package this separately. i am new to creating packages from scratch so any direction on handling profile specific apps like this one would be appreciated.

btw i have installshield 12 and adminstudio 8

thanks in advance.

0 Comments   [ + ] Show comments

Answers (7)

Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi thien,
i would package this for itself.
The approach, i would take is this:
Install the Plugin in a subdirectory in the 'Program Files' folder.
Use a duplicatefiles entry in the MSI to copy it to each profile, with an active setup entry.
http://itninja.com/question/distribution-message21
http://www.ewall.org/index.php?module=ContentExpress&func=print&ceid=23

The same could of course be achieved, by an Transform applied to the main Office.msi
But this most likely won't work with changes done in IS12 or AS8, because they make to many changes in the background.

Hope this gives you some ideas,
Regards, Nick
Posted by: jmcfadyen 17 years ago
5th Degree Black Belt
0
'******************************************************************************
' Filename: Addins-ExcelObj.VBS
'
' Description: Adds and activates Excel Addin
'
' Modification History:
' Author Date Version Changes
' ----------------- ----------- ------- ---------------------------------------
' Installpac Pty Ltd
' John McFadyen 20/04/2006 1.00 Created Script
'
'
'******************************************************************************

dim sobjArgs


set sobjArgs = Wscript.Arguments
intCount = Wscript.Arguments.Count


for i = 1 to intCount - 1
if sobjArgs(0) = "install" then
CreateAddin(sobjArgs(i))
else
RemoveAddin(sobjArgs(i))
end if
next

'********************************************************************************
' Function: Removes an excel addin (used during uninstall)
'
' Purpose : Remove an addin (duh)
' Returns : Currently null
' Inputs : strAddinName = addin name


Function RemoveAddin(strAddinName)

Dim objExcel, objAddin

set objExcel = CreateObject("Excel.Application")
objExcel.Visible = false
objExcel.Workbooks.Add
set objAddin = objExcel.Addins.Add(strAddinName, true)
objAddin.Installed = False
objExcel.quit
set objExcel = nothing
set objAddin = nothing

End function

'********************************************************************************
' Function: Creates an excel addin (used during install)
'
' Purpose : Create an addin (duh)
' Returns : Currently null
' Inputs : strAddinName = Path to addin file

Function CreateAddin(strAddinName)

Dim objExcel, objAddin

set objExcel = CreateObject("Excel.Application")
objExcel.Visible = false
objExcel.Workbooks.Add
set objAddin = objExcel.Addins.Add(strAddinName, true)
objAddin.Installed = True
objExcel.quit
set objExcel = nothing
set objAddin = nothing

End function
Posted by: strcdply 17 years ago
Yellow Belt
0
nheim,

thanks for your response. i started to do some research on "duplicatefiles" could you point me to some links on what "active setup" refers to? i found some links that seem to point to the fact that it had to do with "self-healing"
Posted by: strcdply 17 years ago
Yellow Belt
0
jmcfadyen,

thank you for posting your script. are you using this script inside of an *.msi? how is the *.vbs script handling the path to the plug-in? is that a part of "strAddinName"? is it assuming that the plugin is residing in the default position and you are merely passing as an argument the name of the add-in to remove or add?
Posted by: KrisBcn 17 years ago
Purple Belt
0
Hi strcdply,
Here goes some useful links :

http://www.etlengineering.com/installer/activesetup.txt
http://itninja.com/question/how-do-you-roll-out-new-machines?0750
http://itninja.com/question/how-do-you-roll-out-new-machines?0751
http://www.appdeploy.com/messageboards/tm.asp?m=1995

As you can see, this site is plenty of info about it, please search for it before post an answered question :)

Hope it helps

KrisBcn
Posted by: strcdply 17 years ago
Yellow Belt
0
"As you can see, this site is plenty of info about it, please search for it before post an answered question :) "
no doubt; my apologies . thanks for graciously answering my question anyway.
Posted by: jmcfadyen 17 years ago
5th Degree Black Belt
0
yes the strAddin is the file path.

This is designed with the intention that the filename is parsed in as an argument.

For example run it as an EXE custom action as opposed to a vbs custom action.

This is because when you run a EXE custom action you can use arguments.

when using a vbs custom action you cannot.

So a CA such as

YourCA, 1058, wscript.exe [VbsPath]scriptfilename.vbs [#componentName] should do the trick.

the later [#componentName] assumes the excel file to be a keypath of a component.

Lookup "formatted" in the SDK for more details.

John
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ