View Full Version : XCopyFile or CopyFile Not Working on a Network Drive
hongweijia
01-15-2003, 05:30 PM
I tried to use XCopyFile or CopyFile but I found they are not working on a networking drive if I put these functions in the OnInstallFilesActionAfter() event. They will work if I put them in the OnFirstUIAfter() event. However, it's not good to copy files OnFirstUIAfter event since no progress bars available for moving files in this event. There are some compaints on these functions In the IS D7.0 news group. Does anyone know if IS plans to fix it.
Thanks in advance!
HJ
:confused:
Paul M.
01-16-2003, 08:01 AM
Can you give more information as to why these functions are not working? For example are they returning access denied? If they are returning this then what you may want to do is look at an InstallShield KB http://support.installshield.com/kb/view.asp?pcode=ALL&articleid=Q107124 as this addresses the problem of accessing a network location during the move data handlers.
hongweijia
01-16-2003, 09:13 AM
The network location was shared to everyone(Full Control). The XCopyFile function returned 0 (success) but copied nothing. Anyway I am going to change the type of move data handlers and see what happen to XCopyFile.
Thanks a lot for your info!
HJ
hongweijia
01-16-2003, 10:12 AM
Following the Q107124, I got the error"ISDEV : error Type of Custom Action OnInstallFilesActionAfter has been modified from its original setting, this will cause unpredictable results. " during building even though XCopyFile worked. It seems we couldn't change the type of move data handlers like Q107124 suggestions.;)
Paul M.
01-16-2003, 10:14 AM
Even though you get the error you can still build. It is just letting you know that it has been changed from the default value.
ananthn
05-24-2003, 02:47 AM
I am using Dev8.01
My req was to check the target system for certain dlls and ocx before copying and registring them.I used a ftn in the Installing event and in the function implementation i used to Xcopy to copy the dlls and ocx.I followed all the steps metioned above and lastly I changed the values in the DirectEditor->Custom action->onMoved and On Moving values from 3073 to 1025 as per instruction in Q107124 and Rebuilt the project.I got two errors and I ignored them and I tried to Install thru network.But still Xcopy is returning
2147024894 error.In some instance Xcopy returned "zero" sucess value , but to my surprise no file was copied.
Plz help me to solve the issue.
Plz lemme know is there any alternative to cater the requiremnet other than Xcopy
Thanx in advance.
hlarledge
07-15-2003, 12:56 PM
My problem is exactly the same as ananthn. I have tried both XCopyFile and CopyFile without success. Does anyone know how to copy files on a network drive using IS Dev 8.02?
Thanks,
HL
Originally posted by ananthn
I am using Dev8.01
My req was to check the target system for certain dlls and ocx before copying and registring them.I used a ftn in the Installing event and in the function implementation i used to Xcopy to copy the dlls and ocx.I followed all the steps metioned above and lastly I changed the values in the DirectEditor->Custom action->onMoved and On Moving values from 3073 to 1025 as per instruction in Q107124 and Rebuilt the project.I got two errors and I ignored them and I tried to Install thru network.But still Xcopy is returning
2147024894 error.In some instance Xcopy returned "zero" sucess value , but to my surprise no file was copied.
Plz help me to solve the issue.
Plz lemme know is there any alternative to cater the requiremnet other than Xcopy
Thanx in advance.
ananthn
07-15-2003, 11:34 PM
hi Arledge
U have to change the value of corresponding custom action like Feature Installing or Feature Installed,On Moving or On moved etc.
in which ur calling Xcopy file to 1025.
After u change the value in the Custom Action u will get one compilation error and some warnings.U can ignore that since itz normal behaviour as said by InstallShield support engineers.
For me , first i wrongly changed custom action for OnMoving and i was calling Xcopy in Feature Installing.Then I changed the Custom action value of Feature Installing and now itz working fine for me.
Regards
Ananth
hlarledge
07-16-2003, 09:07 AM
Thanks. I had made the change without any luck, but moving the call from FirstUIAfter to OnEnd did solve the problem.
Thanks,
HL
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.