This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to modify the selected install path?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
11:32 AM
How to modify the selected install path?
Is there a simple way to modify the install path to add a folder
The default install dir for my installer is "C:\Program Files\MyCompany\MyApp".
Is there a way to modify the install path so that no matter what the customner selects the installer will still install to "Customer's selected Path\MyApp" ???
Thanks,
Bradley
The default install dir for my installer is "C:\Program Files\MyCompany\MyApp".
Is there a way to modify the install path so that no matter what the customner selects the installer will still install to "Customer's selected Path\MyApp" ???
Thanks,
Bradley
(10) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
11:57 AM
If you give a relative directory as a feature's or component's Install Location setting, it will be appended to the parent item's (or items') destination.
For example, if the product's install location is C:\Somewhere and a component's install location is subdir, files in that component will be installed to C:\Somewhere\subdir...
For example, if the product's install location is C:\Somewhere and a component's install location is subdir, files in that component will be installed to C:\Somewhere\subdir...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
04:12 PM
RobertDickau wrote:
If you give a relative directory as a feature's or component's Install Location setting, it will be appended to the parent item's (or items') destination.
For example, if the product's install location is C:\Somewhere and a component's install location is subdir, files in that component will be installed to C:\Somewhere\subdir...
Thanks Robert but this is for an existing install with many already defined features, components and custom actions. So is there a way to reset the install path property to append a folder name afyer the destination dialog?
I was looking at doing this in the destination dialog events but this does not work in silent mode (as it does not look like silent mode sets that path; which makes sense in most cases.)
Bradley
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
04:19 PM
I haven't tried it, but perhaps a Set Product Bean Property action that sets the root bean's installLocation (or absoluteInstallLocation) property to the current value plus your subdirectory name?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
06:29 PM
RobertDickau wrote:
If you give a relative directory as a feature's or component's Install Location setting, it will be appended to the parent item's (or items') destination.
For example, if the product's install location is C:\Somewhere and a component's install location is subdir, files in that component will be installed to C:\Somewhere\subdir...
Well I have tried this but I am still able to install to c:\. Our system test guys have flaged this as a show stopper. No I can keep most of the components out of the root but _jvm can still end up one folder above C:\MyApp\.
Bradley
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
07:32 PM
RobertDickau wrote:
I haven't tried it, but perhaps a Set Product Bean Property action that sets the root bean's installLocation (or absoluteInstallLocation) property to the current value plus your subdirectory name?
Okay I gave this a try. No joy. absoluteInstall Location remains unchainged from what I set it to in the Destination Dialog. I set the Wiard Action just after the Destionation Dialog. Maybe I got it wrong?
Bean ID: Bean7
Active: True
Product Bean ID: bean45
Product Bean Property Name: absoluteInstallLocation
Value: $P(absoluteInstallLocation)\myApp
Bean45 is the top most bean in my Product tree an displays the product name.
Bradley
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2008
08:31 AM
Regarding the placement of the _jvm directory (before going down the set-a-property path), can you change that in Application Data > Launchers > Advanced View (tab at the bottom of the IDE) > Product Uninstaller > Product Uninstaller JVM Resolution > Install Location?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2008
09:01 AM
RobertDickau wrote:
Regarding the placement of the _jvm directory (before going down the set-a-property path), can you change that in Application Data > Launchers > Advanced View (tab at the bottom of the IDE) > Product Uninstaller > Product Uninstaller JVM Resolution > Install Location?
Cool. Thanks.
However I got it working late last night with your second suggestion. So once again Thank You! This works....
Added a Set Product Bean Property action that sets the root bean's installLocation.
Bean ID: Bean7
Active: True
Product Bean ID: bean45
Product Bean Property Name: installLocation
Value: $P(absoluteInstallLocation)\myApp
I am ont 100% sure wht changing installLocation after the destination dilaog also changes the absoluteInstallLocation. But it does work.
Thank you Robert!
Bradley
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2008
10:54 AM
Robert,
One more question. How to I PREVENT this Wizard Action from running during a repair or update?
Bradley
One more question. How to I PREVENT this Wizard Action from running during a repair or update?
Bradley
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2008
10:57 AM
I'm a bit rusty, so there might be a simpler way, but perhaps search these forums for the "already installed condition" example? Given a product's UUID, it should tell you if the product is already installed...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 14, 2008
12:40 PM
That works too.
Thanks again!
Bradley
Thanks again!
Bradley