Copying Over Hidden Files
Updated: 22 May 2010 | 3 comments
Hello,
Just wanted to know if this is a restriction in the application or a bug, - when i try create a package with multiple files; say for example that out of the 5 files 2 are hidden in the .\application folder and i compile and excute the package i can only see the 3 files in the destination folder even though my settings in Windows are set to view all files including hidden files.
Not sure if this is bug or a restriction can someone please advise?
Thanks,
Anthony
discussion Filed Under:
Comments
Are you saying that the five files are compiled in your MSI but are either not deployed where there are hidden files, or are not visible? Your posting does not make clear exactly where your problem lies.
From a packaging and compilation perspective, your source files should not be hidden or attributed in any way. The application of attributes should be performed on the target files after installation - and if you take a few minutes to study the attribute column's settings in the file table, you will see that attributes can be applied automatically without needing any further coding. (The help file MSI.CHM is a good reference source for this type of information)
Finally, just because YOU have full rights to view hidden files, does not automatically mean that every application shares those rights!!
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Hey,
Thanks for the info sorry i wasnt clear! No coffee this morning!
Well i am not creating an MSI, i am creating a simple executable using Wisescript to copy over a few files that are located in the root .\applicaion folder. For some reason the two hidden files are not getting copied over when i execute the package.
OK, you need to unhide the files before you compile the EXE. You can run the EXE with the /X switch to ensure that the files are in your EXE, as this switch allows you to extract one or more files from the EXE, and is a good sanity check of your package.
Then try installing your EXE without the hidden attribute. Once you are happy that is working, add in a couple of Execute program commands to call %SYS32%\attrib.exe with the appropriate filepath and the +H switch to hide the installed file.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.