Install.log shows unnecessary "\" using File.windowsShortcut

NEW
Unassigned

Status

Core Graveyard
Installer: XPInstall Engine
P2
trivial
19 years ago
3 years ago

People

(Reporter: Jimmy Lee, Unassigned)

Tracking

Trunk
Future
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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();

Updated

19 years ago
Target Milestone: M17

Updated

19 years ago
Severity: minor → trivial

Updated

18 years ago
Target Milestone: M17 → M18
Parecelling out Cathleen's bugs
Assignee: cathleen → ssu

Updated

18 years ago
Status: NEW → ASSIGNED
Priority: P3 → P2
Resetting target field for missed milestones
Target Milestone: M18 → ---

Comment 3

17 years ago
over to Curt.
Assignee: ssu → curt
Status: ASSIGNED → NEW
Target Milestone: --- → Future

Comment 4

14 years ago
bug needs to be reassigned
Assignee: curt → nobody
QA Contact: jimmykenlee → xpi-engine
(Assignee)

Updated

3 years ago
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.