You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
function Component()
|
|
{
|
|
}
|
|
|
|
Component.prototype.createOperations = function()
|
|
{
|
|
try {
|
|
// call the base create operations function
|
|
component.createOperations();
|
|
if (installer.value("os") == "win") {
|
|
var userProfile = installer.environmentVariable("USERPROFILE");
|
|
installer.setValue("UserProfile", userProfile);
|
|
component.addOperation("Copy", "@TargetDir@\\Technik-AG.palib", "@UserProfile@\\Documents\\Technik-AG.palib");
|
|
component.addOperation("GlobalConfig", "DKM-Tech", "PA-Calculator", "library/path", "@UserProfile@\\Documents\\Technik-AG.palib");
|
|
}else if (nstaller.value("os") == "mac"){
|
|
var userProfile = installer.environmentVariable("USERPROFILE");
|
|
installer.setValue("UserProfile", userProfile);
|
|
component.addOperation("Copy", "@TargetDir@/Technik-AG.palib", "@UserProfile@/Documents/Technik-AG.palib");
|
|
component.addOperation("GlobalConfig", "DKM-Tech", "PA-Calculator", "library/path", "@UserProfile@/Documents/Technik-AG.palib");
|
|
}
|
|
} catch (e) {
|
|
print(e);
|
|
}
|
|
} |