|
|
|
|
@ -7,14 +7,16 @@ Component.prototype.createOperations = function()
|
|
|
|
|
try {
|
|
|
|
|
// call the base create operations function
|
|
|
|
|
component.createOperations();
|
|
|
|
|
try {
|
|
|
|
|
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("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) {
|
|
|
|
|
// Do nothing if key doesn't exist
|
|
|
|
|
}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);
|
|
|
|
|
|