PDA

View Full Version : How may I determine my installation source?



nexus6
01-31-2006, 05:05 PM
I've seen posts on this for the other products, but not MP.

I need to execute programs from the installer that will be on the installer's media (DVD) - without hardcoding a path, how can I use variables/etc to do run-time installation path resolution?

Thanks!

RobertDickau
01-31-2006, 06:01 PM
Perhaps see InstallShield KB article Q105887, at http://support.installshield.com/kb, for information about the user.dir and is.external.home properties...

nexus6
02-01-2006, 10:45 AM
thanks - is.external.home works great for the command property.

However, it seems like using J$() does not resolve correctly when used in the argument list.

Example:

command = C:/Windows/system32/msiexec.exe
(I am aware that specifing the Windows dir this way and not via the environment is flawed)

argument[0] = /i
argument[1] = $J(is.external.home)/somedir/some.msi

What should I do in this case?

Thanks.

nexus6
02-01-2006, 10:48 AM
I see that using spaces is problematic in the argument list, but the resolved path contains no spaces so that is not the problem here.

Thanks!

jimblye
02-01-2006, 05:55 PM
If this is in a product bean or a wizard bean you should be able to use
resolveString(argument[1]);
or
resolveString("$J(is.external.home)");

nexus6
02-01-2006, 06:03 PM
It's an Execute Process "Product Action" - not in actual Java code.

Thanks.