cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chilakamarthi81
Level 2

How to read Installation Directory in VBScript and PowerShell Script? I need both as I use in different Installers

Jump to solution

How to read Installation Directory in VBScript and PowerShell Script? I need both as I use in different installers.

I have default directory where my app gets installed. But during installation wizard, if user changes default installation directory I want to use that new directory to run a powershell/VBScript file located in where my app is going to sit as the script files are going to be there...

Labels (1)
0 Kudos
(1) Solution
Revenera_Ian
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @chilakamarthi81,

Thank you for your post.

Please accept our apologies for the delayed response.

The following response applies to only the following project types:

Basic MSI
InstallScript MSI

The documentation at the following link discusses how to get and set INSTALLDIR via a VBScript custom action:

https://community.flexera.com/t5/InstallShield-Knowledge-Base/Retrieve-and-Set-Properties-in-a-VBScript-Custom-Action/ta-p/4439

For a PowerShell custom action, you could try the PowerShell cmdlets discussed in the documentation at the following link:

https://docs.revenera.com/installshield28helplib/helplibrary/CAPowerShell.htm

Please give these suggestions a try. Do they work for you?

Please let us know if you have any questions or concerns. Thanks!

View solution in original post

0 Kudos
(1) Reply
Revenera_Ian
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @chilakamarthi81,

Thank you for your post.

Please accept our apologies for the delayed response.

The following response applies to only the following project types:

Basic MSI
InstallScript MSI

The documentation at the following link discusses how to get and set INSTALLDIR via a VBScript custom action:

https://community.flexera.com/t5/InstallShield-Knowledge-Base/Retrieve-and-Set-Properties-in-a-VBScript-Custom-Action/ta-p/4439

For a PowerShell custom action, you could try the PowerShell cmdlets discussed in the documentation at the following link:

https://docs.revenera.com/installshield28helplib/helplibrary/CAPowerShell.htm

Please give these suggestions a try. Do they work for you?

Please let us know if you have any questions or concerns. Thanks!

0 Kudos