Flexera Software Community  

Go Back   Flexera Software Community > Products > Legacy Installer Products > Express 5.x and earlier > InstallShield Express 4 & 5
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-14-2003, 06:31 AM
CraigWardell
 
Posts: n/a
Excel Add-Ins

I am trying to package up some Excel spreadsheets and some addins. I can’t find a way to automatically register the addin’s for Office 2000 or XP (can on 97 using registry). Does anyone know if this can be done in installshield express ?

If not, I have a spreadsheet that automatically registers my addins that I would like to run on completion of the setup. However since upgrading to Express 4 from the free version that came with Borland C++, I can’t launch a xls file from the Setup Complete Dialog (only .exe’s). I’ve also tried adding a custom action but without knowing where Excel will run from, I get error 1721 during the install.

Has anyone else managed to run a none exe program from install shield ?
Reply With Quote
  #2  
Old 01-14-2003, 10:19 AM
Chandima Chandima is offline
InstallShield Developer
 
Join Date: Oct 2001
Posts: 4,852
So you basically need to run the Excel executable with a command line right? What version of the Free Delphi Express did you have? Was it version 2.x or 3.x?
__________________
Chandima Rajakaruna
Macrovision Corporation
Reply With Quote
  #3  
Old 01-15-2003, 01:35 AM
CraigWardell
 
Posts: n/a
Yes, all I want to do is launch the clients version of excel with a spreadsheet from the package.

We were using version 2.12 (62) for C Builder 5, but it's not compatible with Windows 2000 and XP, so we upgraded to Express version 4.
Reply With Quote
  #4  
Old 01-15-2003, 10:15 AM
Chandima Chandima is offline
InstallShield Developer
 
Join Date: Oct 2001
Posts: 4,852
Try the following an let me know if it works:

1. Go to Requirements View
2. Right click and launch the system search wizard and press Next on the Welcome panel
3. Select "Folder Path, by searching for a specific file in all drives" in combo and Press "Next"
4. Configure as follows:

File Name: Excel.exe
Number of levels: 20

5. Press "Next"
6. Press Finish
7. Should create a new node named "EXCEL" with a "Green Check" icon. Click on this icon till it turns to the "empty box" icon. This means the setup will look for Excel.exe but will NOT stop the setup if it is found or not.
8. Go to Custom Actions View
9. Create a new Exe Custom Action
10. Change it's "Source Location" property to "File Exists on Target Computer"
11. Select "File Location" property, open the drop down and select the top most entry (Browse, create or modify a directory entry...). This should launch a directory browse dialog.
12. Create a root level folder and name it "Test"
13. Set this folder's "Directory Identifier" property to "EXCEL"
14. Press OK (closes the dialog)
15. Set the "File Name and Command Line" property to "Excel.exe" and the command line you want to give.
16. Set "Invoke" property to "After Setup Complete Success" dialog.
17 Build and Install.
__________________
Chandima Rajakaruna
Macrovision Corporation
Reply With Quote
  #5  
Old 01-16-2003, 05:11 AM
CraigWardell
 
Posts: n/a
I think that is along the right line but it’s still not working. If I do exactly as you say I get

Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: NewCustomAction1, location: C:\Program Files\Microsoft Office\Office\excel.exe\, command: "C:\Program Files\Microsoft Office\Office\excel.exe\" "C:\Program Files\Arelon\Budget\OfficeDir\Library\Addin_Ins.xls"

The problem seems to be that [EXCEL] is set to
Property(S): EXCEL = C:\Program Files\Microsoft Office\Office\excel.exe\
(it has a back slash on the end of it) This seems to get added when you create the Temp directory and name it EXCEL.

I’ve tried it without adding the temp directory leaving the location blank (some strange validation on this sometimes allows you to do this but not always), and that didn’t work either.
[EXCEL] is then set to
Property(S): EXCEL = C:\Program Files\Microsoft Office\Office\excel.exe (looks correct!)

But I still get the error.
Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: NewCustomAction1, location: , command: "C:\Program Files\Microsoft Office\Office\excel.exe" "C:\Program Files\Arelon\Budget\OfficeDir\Library\Addin_Ins.xls"

If I cut and paste the command into a dos window it does work.

I’ve also tried to run [EXCEL] from the final dialog, but it won’t allow me to run a program that doesn’t exist.

Any more ideas ?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Flexera Software Inc. All rights reserved.