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
862 B
Plaintext
24 lines
862 B
Plaintext
function Component()
|
|
{
|
|
}
|
|
|
|
Component.prototype.createOperations = function()
|
|
{
|
|
try {
|
|
// call the base create operations function
|
|
component.createOperations();
|
|
if (installer.value("os") == "win") {
|
|
try {
|
|
var userProfile = installer.environmentVariable("USERPROFILE");
|
|
installer.setValue("UserProfile", userProfile);
|
|
component.addOperation("CreateShortcut", "@TargetDir@\\PA_Calculator.exe", "@UserProfile@\\Desktop\\PA Calculator.lnk");
|
|
component.addOperation("CreateShortcut", "@TargetDir@\\PA_Calculator.exe", "@StartMenuDir@/PA Calculator.lnk","workingDirectory=@TargetDir@","description=Start PA-Calculator");
|
|
} catch (e) {
|
|
// Do nothing if key doesn't exist
|
|
}
|
|
}
|
|
} catch (e) {
|
|
print(e);
|
|
}
|
|
}
|