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
- :
- get path for common files
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Oct 16, 2009
11:57 AM
get path for common files
Inside an installscript I would like to get the full path to the common files for the installtion. What function is best for doing this? I'm new at this, but I found the MsiGetSourcePath function and had some trouble understanding the inputs and there are no example... anyone have an example. What I am trying to do is call an executable inside the installscript and I have a couple of options. The .exe file can be either placed in the common files folder for the installation or be placed in the same folder that the MSI installation file exists (i.e. the .exe file would be in the same folder as the installer file when given to a user for installation.) What's the best way to do this?
Thanks,
Sean
Thanks,
Sean
(1) Reply
Oct 16, 2009
06:41 PM
How do you determine whether the EXE is in Common Files or in the installation source? In any case, once you know, perhaps you could use CommonFilesFolder in your script, or use MsiGetProperty or MsiGetTargetPath to get the value of the SETUPEXEDIR or CommonFilesFolder property?
Keep in mind that an action referring to a file that's being installed with a component needs to be set for deferred execution after InstallFiles, and conditioned to run only during a first-time installation...
Keep in mind that an action referring to a file that's being installed with a component needs to be set for deferred execution after InstallFiles, and conditioned to run only during a first-time installation...