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)

x86
Windows NT
defect

Tracking

(Not tracked)

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();
Target Milestone: M17
Severity: minor → trivial
Target Milestone: M17 → M18
Parecelling out Cathleen's bugs
Assignee: cathleen → ssu
Status: NEW → ASSIGNED
Priority: P3 → P2
Resetting target field for missed milestones
Target Milestone: M18 → ---
over to Curt.
Assignee: ssu → curt
Status: ASSIGNED → NEW
Target Milestone: --- → Future
bug needs to be reassigned
Assignee: curt → nobody
QA Contact: jimmykenlee → xpi-engine
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.