amjayreen
Level 3

How to set INSTALLDIR dynamically during installation?

Team,


I'm new to installshield. I'm trying to create a new MSI for an application. The requirement is to dynamically fetch the install directory location when the user installs it.
This is going to be a very simple MSI which just updates few DLL files from the install directory which the user picks.

Please help me in completing my project. Thanks in advance.:):):)
Labels (1)
0 Kudos
4 Replies
PlinyElder
Level 7

Is this for a Basic MSI project?

If so you can use the "DestinationFolder" dialog in the Dialog view.
0 Kudos
amjayreen
Level 3

PlinyElder wrote:
Is this for a Basic MSI project?

If so you can use the "DestinationFolder" dialog in the Dialog view.



Yes, this is for a basic MSI Project. I've tried it by adding the Destination folder dialog, it is throwing an error when i click the change button. Do we need to define the button action functionality?
0 Kudos
PlinyElder
Level 7

Behavior of the Change button should be:
[LIST=1]
  • SpawnDialog - InstallChangeFolder - 1
  • [_BrowseProperty] - INSTALLDIR - 1


    The location Text field should have the "Property" set to "_BrowseProperty" and the "Text" should be "[INSTALLDIR]"
  • 0 Kudos
    amjayreen
    Level 3

    PlinyElder wrote:
    Behavior of the Change button should be:
    [LIST=1]
  • SpawnDialog - InstallChangeFolder - 1
  • [_BrowseProperty] - INSTALLDIR - 1


    The location Text field should have the "Property" set to "_BrowseProperty" and the "Text" should be "[INSTALLDIR]"


  • Thanks. It's working now. Apart from the INSTALLDIR, the files should also be deployed to another directory. Is is possible that the user select that location dynamically during the installation?
    Or any thoughts on how can this be done?
    0 Kudos