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
- :
- Change Install Location for different Platforms
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
‎Apr 28, 2006
01:40 PM
Change Install Location for different Platforms
Hi ,
I am using Destination Dialog to set the installLocation for the product.
I want to display different default destination folder for different platform.
For eg,
For windows:
C:\Program Files\My Company\My Product
For HP-Ux
/opt/My Company/My Product
I am using a IS_DESTINATION variable to retrieve installLocation at runtime.
Please help me know how to change default installLocation depending on the Platform(Windows,AIX,Solaris).
Thanks
Senthil
I am using Destination Dialog to set the installLocation for the product.
I want to display different default destination folder for different platform.
For eg,
For windows:
C:\Program Files\My Company\My Product
For HP-Ux
/opt/My Company/My Product
I am using a IS_DESTINATION variable to retrieve installLocation at runtime.
Please help me know how to change default installLocation depending on the Platform(Windows,AIX,Solaris).
Thanks
Senthil
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 28, 2006
02:09 PM
The expression $D(install) expands to the "typical" install location on different platforms (the Program Files folder on Windows, /opt on most other systems (except Mac OS X and OS/400)), which is why you see $D(install) in the default Install Location for the root Product bean.
If you need something different, you could perhaps use a Set Product Bean Property action to change the root Product bean's Install Location property, conditioned so that it runs only on the desired platforms...
If you need something different, you could perhaps use a Set Product Bean Property action to change the root Product bean's Install Location property, conditioned so that it runs only on the desired platforms...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 02, 2006
02:51 PM
For my installs on Unix - I default the destination to the cwd by doing this in Begin Install:
Regards,
Tom
String installPath;
String DESTINATION_VAR_NAME = "IS_DESTINATION";
String strOSName = arg0.resolveString("$J(os.name)").substring(0,3).toUpperCase();
if(strOSName.equalsIgnoreCase("WIN")){
// set Windows default stuff
}else{ // Unix - set the default install location to cwd.
String cwd= arg0.resolveString("$J(user.dir)");
installPath = arg0.resolveString("$PATH(" + cwd+ "/MyCompany)");
arg0.getServices().getISDatabase().setVariableValue(DESTINATION_VAR_NAME,installPath);
}
Regards,
Tom