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: How get [INSTALLDIR] in custom action ?
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
‎Feb 21, 2011
11:28 AM
How get [INSTALLDIR] in custom action ?
Hello,
I have to do some tasks in a .vbs script.
The script have to modify some files installed and these files was installed in [INSTALLDIR].
How can I pass the [INSTALLDIR] value to the custom action ?
I have see that the property "InstallDir" is not valid if I starts the script "after file transfer" !
Thanks
I have to do some tasks in a .vbs script.
The script have to modify some files installed and these files was installed in [INSTALLDIR].
How can I pass the [INSTALLDIR] value to the custom action ?
I have see that the property "InstallDir" is not valid if I starts the script "after file transfer" !
Thanks
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2011
08:50 PM
Generally, you can get INSTALLDIR by using the line.
Session.Property("INSTALLDIR")
In Deferred, Commit, and Rollback Custom Actions, you need some step.
http://helpnet.flexerasoftware.com/robo/projects/installshield17helplib/AccessingProps-DeferredCAs.htm
Session.Property("INSTALLDIR")
In Deferred, Commit, and Rollback Custom Actions, you need some step.
http://helpnet.flexerasoftware.com/robo/projects/installshield17helplib/AccessingProps-DeferredCAs.htm
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 14, 2011
05:57 AM
I have a similar question but concerning the use of JScript
Associated to a custom action, I have a *.js file, and I wiish I could write something in this spirit:
[FONT="Courier New"]
function doInstall()
{
installDir = InstallShieldObject.INSTALLDIR // <= this is what I'd like to do
var comandUpdateRegistry = "regedit /s" + installDir + "registryScript.reg"
oShell = WScript.CreateObject( "WScript.Shell" );
oShell.Run( updateRegistryScriptCommand );
return true;
}[/FONT]
or Should I give up and use VBScript ?
Associated to a custom action, I have a *.js file, and I wiish I could write something in this spirit:
[FONT="Courier New"]
function doInstall()
{
installDir = InstallShieldObject.INSTALLDIR // <= this is what I'd like to do
var comandUpdateRegistry = "regedit /s" + installDir + "registryScript.reg"
oShell = WScript.CreateObject( "WScript.Shell" );
oShell.Run( updateRegistryScriptCommand );
return true;
}[/FONT]
or Should I give up and use VBScript ?