PDA

View Full Version : InstallShield 8.0 ---> Files copied read only for cd



faheemtahir
11-25-2004, 02:12 AM
I created wes setup and burned in the CD. When i installed the product it copied some files as read only which i copied through xcopy command in install shield. But i want to remove readonly from those files. Because those files can't be accessed while they r read only.

wu_bala_1978
11-25-2004, 02:49 AM
During creation of setup, what was the property of the file(s)?

faheemtahir
11-25-2004, 08:04 AM
there attributes were normal

faheemtahir
12-18-2004, 07:55 AM
following code sets the attributes of files to normal upto nested level



nFileFindResult = FindAllFiles (INSTALLDIR , "*.*" ,szFileName , RESET);
nFileAttributeResult = SetFileInfo(szFileName , FILE_ATTRIBUTE , FILE_ATTR_NORMAL , "");
while (nFileFindResult == 0)
nFileAttributeResult = SetFileInfo(szFileName , FILE_ATTRIBUTE ,FILE_ATTR_NORMAL , "");
nFileFindResult = FindAllFiles(INSTALLDIR , "*.*", szFileName, CONTINUE);

endwhile;

wu_bala_1978
12-19-2004, 02:57 AM
hi fateem,

ty for sharing the piece of info..gud ot hear that u got it working

wuuu

faheemtahir
12-27-2004, 09:00 AM
sure i'll but, and i m doing, very sad i didn't got much help yet for my self :(