Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Can't copy to SystemFolder


2 replies to this topic

RookieDeveloper

RookieDeveloper
  • Members
  • 14 posts

Posted 05 September 2003 - 13:57


I'm trying to copy some dependency files to the SystemFolder but they will not copy for some reason. If I create a folder within the system32 folder called test and copy my files there it works, but just not directly in to the System32 folder. I'm using XP to develop and test this. Any have any ideas.

InstallShield Dev 8.02

function CopyDepFiles()

string SDIR, TDIR, szSrcFile;
number nResult;
begin

// Set variable to filespec for source files.
szSrcFile = "*.*";
TDIR = SystemFolder;
SDIR = SRCDIR ^ "NoReg1";

// Copy all files in the source directory
// into the target directory.
nResult = XCopyFile (SDIR ^ szSrcFile, TDIR ^ "*.*", COMP_UPDATE_VERSION);

end;


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 September 2003 - 15:12

What files are these? Your own, or Microsoft's? (Can you give a few names?)
Do you get an error message? What's in the log?


RookieDeveloper

RookieDeveloper
  • Members
  • 14 posts

Posted 05 September 2003 - 15:23

These are windows system files that need to be present on the target system before we can register our program files. In all about 230 files, 170 of which don't require registering. So I have them broken in to 2 folders, the ones that need to be registered and the ones that don't.


cdo32.dll
MFC42D.DLL
p2bbtrv.dll
u2lfinra.dll
COMDLG32.OCX
SSTree.ocx

I don't get an error message, but NResult = some long odd # like
-704114078