Advertisement

02.21.2008 at 08:39AM PST, ID: 23181662
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Adding a file to Office folder

Zones: InstallShield, MSI
Tags: InstallShield, 12, MSI
I'm creating a Basic MSI file with InstallShield but cannot see a way of doing the following:

1. Find out where Excel is installed (I know what key it is in the registry to determine this)
2. Install a file into this location

With InstallScript i could do this with script-defined folders, but these don't exist with MSI...

Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: partymarty84
Solution Provided By: partymarty84
Participating Experts: 2
Solution Grade: B
Views: 8
Translate:
Loading Advertisement...
02.21.2008 at 06:25PM PST, ID: 20954088

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 01:00AM PST, ID: 20955578

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 10:40AM PST, ID: 20960076

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 10:40AM PST, ID: 20960082

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.25.2008 at 08:42AM PST, ID: 20976985

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.25.2008 at 09:06AM PST, ID: 20977185

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.25.2008 at 10:06AM PST, ID: 20977700

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.25.2008 at 10:33AM PST, ID: 20977953

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.25.2008 at 12:53PM PST, ID: 20979118

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.26.2008 at 10:25AM PST, ID: 20987127

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.26.2008 at 02:15PM PST, ID: 20989553

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 03:57AM PST, ID: 20993195

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 05:42AM PST, ID: 20993822

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 06:00AM PST, ID: 20993960

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 07:12AM PST, ID: 20994616

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
02.21.2008 at 06:25PM PST, ID: 20954088

Rank: Master

Create system search for your directory value, with operation "read file pathname from registry", and assign the result to property INSTALLDIR.
 
02.22.2008 at 01:00AM PST, ID: 20955578
vadimrapp1,

The main program will go into the program files folder so I can't use INSTALLDIR for two different directories can I?
 
02.22.2008 at 10:40AM PST, ID: 20960076

Rank: Master

Do this in the installation:

add some arbitrary directory under program files, for example name it OfficeDir
put the file you want to install into Office directory in that arbitrary directory
open setup editor, and open table Directory
find the row with your OfficeDir in the column DefaultDir
take the value of the column Directory - that's the name of the property associated with the directory.
In your system search, use that property name instead of INSTALLDIR.

This worked for me in Wise, should work in Installshield as well (which I avoid).

If for some reason this does not work, another way is to create new feature just for this file. Features normally have their own installation directories, so for this feature the same method must work. You can make that feature hidden.
 
02.22.2008 at 10:40AM PST, ID: 20960082

Rank: Master

> I can't use INSTALLDIR for two different directories can I?

no, you can't.
 
02.25.2008 at 08:42AM PST, ID: 20976985
I found out how to create a new property although not very documented. When you create a system search, just type in a new property name...

I then added a new component under Files and Folders, linked the file to that component and told system search to deploy the component to the registry value's location.
Accepted Solution
 
02.25.2008 at 09:06AM PST, ID: 20977185

Rank: Master

objection. The asker was given precise steps to resolve the problem. What he did is probably the same (adjusting for the not very clear explanation, see below), too bad he does not even understand that.

Besides, his explanation can't be accepted as solution because:

1. components are not created under files and folders. In Installshield, they are created under organization/components.

2. system search does not deploy anything anywhere. However, component's destination can be specified as property, which in turn was the result of system search - this is probably what the asker did.
 
02.25.2008 at 10:06AM PST, ID: 20977700
It's a pity that you had to stoop so low and insult a beginner at this. Still, you'll see below that sometimes the student teaches the master.

1. Components can be created under Files and Folders. Do this by right clicking the 'Destination Computer' > 'New Component'. Simple.

2. System search has the option to 'Use the property as a destination for a component'. Therefore System search effectively DEPLOYS the file into the correct folder.

Your solution was to create an unnecessary folder on a client's PC that would then needed to be removed. That's messy in my opinion. It also did not provide an answer to point number 2 in my question which was '2. Install a file into this location'. You only explained how to get the property to be the directory.
 
02.25.2008 at 10:33AM PST, ID: 20977953

Rank: Master

1. this may depend on the interface of specific installshield product. In mine, there's no such option.

2. No, system search still does not install anything. That your installshield gives you this option means the exact same thing that I have suggested: use the property as destination.

No unnecessary folder would be created on client's pc. The substitution of the property for the actual folder name would occur before the actual installation. Rather than making assumptions, you might have tried what I suggested - unlike you, I have verified it before making the suggestion.

Accordingly, the answer to point number 2 was "put the file you want to install into Office directory in that arbitrary directory".

Effectively, you have done exactly the same thing as I suggested, only you used different buttons: you performed system search, put result into a property, and  used that property as destination for the directory. It's good news that you found those buttons in your specific version of installshield, but it does not mean that what I said was irrelevant.

Since you have moved into the territory of personal insults (although I don't see where was insult in my objection), this is my last comment in this thread.
 
02.25.2008 at 12:53PM PST, ID: 20979118
I'm afraid we'll have to agree to disagree. System search puts the file i need in the folder i specify. The definition of Install is 'to place in position'.
 
02.26.2008 at 10:25AM PST, ID: 20987127
A request has been made in Community Support to close this question:
http://www.experts-exchange.com/Q_23190806.html

If there are no objections, a moderator will finalize this question in approximately 4 days as follows:
PAQ with refund using {http:#a20977700}

Please leave any recommendations here.

Netminder
Site Admin
 
02.26.2008 at 02:15PM PST, ID: 20989553

Rank: Master

I still object to this disposition. The reason: the solution I proposed is 100% equivalent to the solution of the asker. The difference is only in the interface of particular tool used to create the installation; I said that the solution worked in Wise where I verified it, and should work in Installshield as well. What the asker did was: he did find the way to do it in Installshield. But the essence of the solution remains the same: do system search; put result in a variable; use the variable as destination for the folder where to put the file.

The system search in itself does not install anything. It returns the result in a property, and that property subsequently can be used anywhere during the installation.  Installshield interface for system search provides checkbox "use this property as destination", so the asker thinks that it is fact one operation.

Maybe it would be good idea if this dispute was reviewed by someone familiar with Windows Installer.
 
02.27.2008 at 03:57AM PST, ID: 20993195
The solution worked in Wise? I asked for a solutions for Installshield.

My answer relates to InstallShield Basic MSI. It's like asking for a solution for Microsoft Office and you giving a solution for Open Office. Similar but not exact, Sorry.

I object to my answer not being accepted, not because of points. I'm more concerned that someone else looking at this question will see you're answer that is for Wise, which is not what the question is about.

Again, System Search does in EFFECT install a file to a location. Please understand this. The long version of what is does is also what you said, it returns a result in a property and can be used as a destination path. We are both correct! I don't know why you can't see this.
 
02.27.2008 at 05:42AM PST, ID: 20993822

Rank: Master

> It's like asking for a solution for Microsoft Office and you giving a solution for Open Office.

this depends on what to call a solution. This is in fact great analogy with Office. For example, you ask how to make next word to begin from the new line, and I respond that you have to begin new paragraph, but I don't tell you what exact button to push in Word. Meanwhile, you do little research in Word and find out that you have to press Enter. The next thing you say is that this is your solution because it's not new paragraph that begins new line, but enter key. This is the exact thing that is happening here, and not even once. For example, your another  discovery: "I found out how to create a new property although not very documented. When you create a system search, just type in a new property name..." is 100% equivalent to my very first comment "assign the result to property INSTALLDIR." - yes, I did not say "type", same as I wouldn't say "press enter key"...

As for the system search... let me use another analogy. Let's say, you go to a web site where you have to sign up for an account. Near the userid and password fields, there's checkbox "remember me on this computer". If you check it, the next time you will be logged on automatically. But it's not this checkbox that logs you in, and not the sign-up screen. Both only prepare the information for the subsequent logon - you still have to navigate to the link "log into my account". The same is happening here. System search generates the rows in the table AppSearch for the installer and puts action AppSearch in the script. The result of it goes to the property, which is the destination of the component. But the installation itself is made by ExecuteActiion, which happens much later, and takes into account many other things. If you make the feature the file belongs to optional, and the user does not select it during the installation, then the file will not be installed, even though the system search was performed - same as if you checked "remember me on this computer" during sign-up, but then never came back to the website. If the installation relies on certain condition, or registration key entered by the user, it won't be installed. Finally, if the user simply presses "cancel", it won't be installed. All these things happen during the installation after system search was already performed, and all would not be possible is system search itself installed something.

I truly suggest that you take some time and learn more about Installer rather than only Installshield, so you see not only the steering wheel and gas pedal, but also have in mind the engine - it does help to drive.
 
02.27.2008 at 06:00AM PST, ID: 20993960
"I found out how to create a new property although not very documented. When you create a system search, just type in a new property name..."  isn't 100% equivalent to your answer as INSTALLDIR couldn't be used.
So i needed to create a new property, which i didn't know how to do at first. I found this out myself.
 
02.27.2008 at 07:12AM PST, ID: 20994616

Rank: Master

>"I found out how to create a new property although not very documented. When you create a system search, just type in a new property name..."  isn't 100% equivalent to your answer as INSTALLDIR couldn't be used.

My answer was not the INSTALLDIR could not be used. It was that INSTALLDIR can't be used for two different directories - that's what you asked. The keyword is "different".

INSTALLDIR is only one property. Whatever property you type in there, becomes the result of the search. If that property did not exist before, then it's automatically created at this point. So if you type there MYPROPERTY, this creates new property MYPROPERTY and put the result in it. Then you have to tell that you want to use new property as the destination of the directory. One way to achieve that is by the steps that I provided - which would work in any MSI editor (even the same Installshield may have different faetures, for example Standard vs. Professional). But each editor can offer other ways to do that , and it's good that you have found more user-friendly one in your Installshield.
 
 
03.02.2008 at 01:35PM PST, ID: 21027701
My apologies; I clicked the wrong button.
 
 
03.02.2008 at 01:36PM PST, ID: 21027714
Closed, points refunded. Ultimately, what works for the Asker IS the solution.

Netminder
Site Admin
 
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628