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
- :
- Redefine MSI targetdir
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
Mar 06, 2012
04:21 PM
Redefine MSI targetdir
Hi,
How do you redefine the installdir in an msi project.
In an installscript project I do it like this:
#define BASEFOLDER "d:\\server\\gms\\"
....
...
TARGETDIR = BASEFOLDER + IFX_PRODUCT_VERSION ;
How do I do that in MSI?
Thanks
How do you redefine the installdir in an msi project.
In an installscript project I do it like this:
#define BASEFOLDER "d:\\server\\gms\\"
....
...
TARGETDIR = BASEFOLDER + IFX_PRODUCT_VERSION ;
How do I do that in MSI?
Thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 09, 2012
05:54 PM
For a Basic MSI project, you can set the default in General Information > INSTALLDIR. To change it dynamically, you can use a set-a-directory custom action, or use MsiSetTargetPath if you're doing things in C or InstallScript. There's a ProductVersion property that might be of use.