Open
Bug 31432
Opened 25 years ago
Updated 9 years ago
Install.log shows unnecessary "\" using File.windowsShortcut
Categories
(Core Graveyard :: Installer: XPInstall Engine, defect, P2)
Tracking
(Not tracked)
NEW
Future
People
(Reporter: jimmykenlee, Unassigned)
Details
Build: 2000-03-10-13-M15(WIN) (occurs on both Win NT and Win 98)
1. From http://jimbob/trigger2.html, click drop-down button and choose
a_filewindowsshortcut and click Trigger Case button
RESULT:
File and shortcut are installed into "Program" directory as expected.
Install.log shows the following:
-------------------------------------------------------------------------------
http://jimbob/jars/a_filewindowsshortcut.xpi -- 03/10/2000 18:18:08
-------------------------------------------------------------------------------
Acceptance: a_filewindowsshortcut
---------------------------------
** file.windowsShortcut returns: 0
[1/2] Installing: C:\Program Files\moz0310c\notepad.exe
[2/2] Windows Shortcut: C:\Program Files\moz0310c\\notepad shortcut
test
Install completed successfully
Finished Installation 03/10/2000 18:18:08
EXPECTED RESULT:
The install.log shows the path to the shortcut with a single "\".
Install script:
////////////////////////////////////////////////////////////////////////////////
// a_filewindowsshortcut.js
//
// Acceptance test
// • Creates a shortcut to "notepad" application from "Program" directory
//
// ~ XPInstall QA
// October 18, 1999
//
// March 10, 2000 jimmylee Rewrite file operation windowsShortcut to use new
// File object
//
////////////////////////////////////////////////////////////////////////////////
jarSrc = "notepad.exe";
var vi = "1.1.1.1";
initInstall("Acceptance: a_filewindowsshortcut", "acceptance", vi, 0);
f = getFolder("Program");
g = getFolder("Temporary");
addFile("filewindowsshortcut", "2.2.2.2", jarSrc, f, jarSrc, true);
path1 = f + jarSrc;
shortcutpath = getFolder("file:///", path1);
iconpath = shortcutpath;
err = File.windowsShortcut(shortcutpath, f, "notepad shortcut test", g, "",
iconpath, 0);
logComment("file.windowsShortcut returns: " + err);
if (0 == getLastError())
performInstall();
else
cancelInstall();
over to Curt.
Assignee: ssu → curt
Status: ASSIGNED → NEW
Target Milestone: --- → Future
Comment 4•20 years ago
|
||
bug needs to be reassigned
Updated•15 years ago
|
Assignee: curt → nobody
QA Contact: jimmykenlee → xpi-engine
Assignee | ||
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•