LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution Kit

I've built a distribution kit (with CVI7.0) which contains files with "Read Only" attributes but after installation, all installed files attributes have the default one "archive" and not "Read Only".
0 Kudos
Message 1 of 2
(3,034 Views)
By default, we do not store the file attribute ( hidden, system, readonly ). But you can change this manually inside the msi. You can use an msi file editor called Orca ( comes with Microsofts Installer SDK, a free download ) to edit the file table. When you create the distribution kit, you will get an msi file. Open the file in orca, file for the File Row and you will see the table on the right side update and list the files you have included in your installer. Change the file attribute column value from 16384 to 16385 ( details here ). So when you run the installer, that file will have a read only attribute. You will need to do this every time you
build the distribution kit.

YOu could also run a batch file after the installer is done that would change the file attribute.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
Message 2 of 2
(3,034 Views)