GREFwTool/installer/packages/info.linuxsheeple.grefwtool/meta/installscript.qs

25 lines
776 B
Plaintext

/* Install script to install program shortcut on the desktop */
function Component()
{
// default constructor
}
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@\\GREFwTool.exe", "@UserProfile@\\Desktop\\GREFwTool.lnk");
} catch (e) {
// Do nothing if key doesn't exist
}
}
} catch (e) {
print(e);
}
}