function Component(){ }
Component.prototype.createOperations = function()
{
component.createOperations();
if (installer.value("os") == "win")
{
var userProfile = installer.environmentVariable("USERPROFILE");
installer.setValue("UserProfile", userProfile);
component.addOperation("CreateShortcut", "@TargetDir@/Spreadsheet.exe",
"@UserProfile@/Desktop/Spreadsheet.lnk" ,"workingDirectory=@TargetDir@",
"iconPath=@TargetDir@/Spreadsheet.ico");
component.addOperation("CreateShortcut", "@TargetDir@/QSpreadsheet.exe",
"@TargetDir@/Spreadsheet.lnk" ,"workingDirectory=@TargetDir@",
"iconPath=@TargetDir@/Spreadsheet.ico");
component.addOperation("CreateShortcut", "@TargetDir@/Spreadsheet.exe",
"@StartMenuDir@/Spreadsheet.lnk", "workingDirectory=@TargetDir@",
"iconPath=@TargetDir@/Spreadsheet.ico");
component.addOperation("RegisterFileType", "sp",
"@TargetDir@\\Spreadsheet.exe \" %1\"", "Tomy Files", "application/Tomy",
"@TargetDir@/Spreadsheet.ico", "ProgId=Spreadsheet.sp")
}
}
function Component(){ }
Component.prototype.createOperations = function()
{
component.createOperations();
if (installer.value("os") == "win")
{
var userProfile = installer.environmentVariable("USERPROFILE");
installer.setValue("UserProfile", userProfile);
component.addOperation("CreateShortcut", "@TargetDir@/Spreadsheet.exe",
"@UserProfile@/Desktop/Spreadsheet.lnk" ,"workingDirectory=@TargetDir@",
"iconPath=@TargetDir@/Spreadsheet.ico");
component.addOperation("CreateShortcut", "@TargetDir@/QSpreadsheet.exe",
"@TargetDir@/Spreadsheet.lnk" ,"workingDirectory=@TargetDir@",
"iconPath=@TargetDir@/Spreadsheet.ico");
component.addOperation("CreateShortcut", "@TargetDir@/Spreadsheet.exe",
"@StartMenuDir@/Spreadsheet.lnk", "workingDirectory=@TargetDir@",
"iconPath=@TargetDir@/Spreadsheet.ico");
component.addOperation("RegisterFileType", "sp",
"@TargetDir@\\Spreadsheet.exe \" %1\"", "Tomy Files", "application/Tomy",
"@TargetDir@/Spreadsheet.ico", "ProgId=Spreadsheet.sp")
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks