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
- :
- Re: VolumeSelectCombo Help!
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
‎Jan 29, 2008
05:38 PM
VolumeSelectCombo Help!
My project is a Basic MSI project. Don't have much experience with InstallScript.
Our company needs the ability to install our application on any available fixed drive (ex. C:, D:, E: or F:) with out changing the installation path. We only want the drive letter to change.
Problem: I have created a new dialog box with the control VolumeSelectCombo which displays only the fixed drives available. My problem is when I choose the C: drive for installation our application gets installed to partition 😧 which is the largest drive with the most free space. From reading documentation thats the default for installshield. We need to be able to select which drive our software will be installed to. I have also tried creating a custom action to 'set a property' from the VolumeSelectCombo property VPROP but it replaces the entire INSTALLDIR property to VPROP property. (ex. INSTALLDIR =\Test1 replaces with INSTALLDIR=C:\). The rest of the path is overwritten with the property of VPROP.
Any help is greatly appriciated. 😮
Our company needs the ability to install our application on any available fixed drive (ex. C:, D:, E: or F:) with out changing the installation path. We only want the drive letter to change.
Problem: I have created a new dialog box with the control VolumeSelectCombo which displays only the fixed drives available. My problem is when I choose the C: drive for installation our application gets installed to partition 😧 which is the largest drive with the most free space. From reading documentation thats the default for installshield. We need to be able to select which drive our software will be installed to. I have also tried creating a custom action to 'set a property' from the VolumeSelectCombo property VPROP but it replaces the entire INSTALLDIR property to VPROP property. (ex. INSTALLDIR =\Test1 replaces with INSTALLDIR=C:\). The rest of the path is overwritten with the property of VPROP.
Any help is greatly appriciated. 😮
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2008
02:28 PM
Perhaps use a set-a-directory custom action to set INSTALLDIR to a value that just begins with your [VPROP] value?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2008
04:12 PM
Tried that already. I created a CA 'set a directory' which I set the Source = INSTALLDIR Target = VPROP, the installer tries to find INSTALLDIR which it can't. I get error 2872 Check Path.
I put a incident into InstallShield they told me I need to use 'ParsePath function and MsiSetTargetPath to get this to work. Does anyone know what/how to use?
I put a incident into InstallShield they told me I need to use 'ParsePath function and MsiSetTargetPath to get this to work. Does anyone know what/how to use?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2008
04:40 PM
Does a set-directory action with source INSTALLDIR and target [VPROP]\rest\of\the\path work? (I don't recall if the value returned with VolumeSelectCombo ends with a slash.) The idea being that [VPROP] being in brackets will expand its value instead of treating it like a hard-coded string. If you create an MSI log file, is the value set correctly?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
11:48 AM
thanks for your response Robert.
Your suggestion would work if I only had one directory that I need to install file to but I have multuple directories :
Directory structure of installation
\Databases\dat
\Databases\sql
\Databases\sql\cat
\Databases\sql\ia
\Databases\sql\lgst
\Databases\sql\lgst\lgst_tables
\Databases\sql\lgst\lgst_usps
\Databases\sql\users_groups
😞 This shouldn't be this difficult. What am I missing. All I want to do is give the user the option to install our app onto any drive they choose without letting them change the install directory structure only the drive letter.
Your suggestion would work if I only had one directory that I need to install file to but I have multuple directories :
Directory structure of installation
\Databases\dat
\Databases\sql
\Databases\sql\cat
\Databases\sql\ia
\Databases\sql\lgst
\Databases\sql\lgst\lgst_tables
\Databases\sql\lgst\lgst_usps
\Databases\sql\users_groups
😞 This shouldn't be this difficult. What am I missing. All I want to do is give the user the option to install our app onto any drive they choose without letting them change the install directory structure only the drive letter.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
03:04 PM
You should be able to set up your component destinations as [INSTALLDIR]sub1, [INSTALLDIR]sub2, and so forth, and then set [INSTALLDIR] as [VPROP]\fixed\part with your custom action; after that, the subdirectories should follow the new INSTALLDIR...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
10:01 PM
Robert your suggestion makes sense I will try tomorrow. Why would InstallSheild suggest Parsepath & MsiSetTargetPath. I did get it to work using those functions but I would rather not use installscript. I will post result.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 01, 2008
01:01 PM
All is working great! I implemented your resolution below. This is so much better than using installscript. Thank You! 🙂
Set up component destinations as [INSTALLDIR]sub1, [INSTALLDIR]sub2, and so forth, and then set [INSTALLDIR] as [VPROP]\fixed\part with your custom action; after that, the subdirectories should follow the new INSTALLDIR...
Set up component destinations as [INSTALLDIR]sub1, [INSTALLDIR]sub2, and so forth, and then set [INSTALLDIR] as [VPROP]\fixed\part with your custom action; after that, the subdirectories should follow the new INSTALLDIR...