JensHP
8th August 2009 11:59 UTC
Invisible folders
I have no experience in programming NSIS but inherited an old NSIS installer that works perfectly well -- except that I now need some folder to be invisible after installation. I can easily hide the folders before installation (either by setting the folder property to "hidden" or by using the application "Hide Folders" to hide them) but no matter what I do, the folders reappear after installation.
Is there any scripting in NSIS that allow me to hide the folders during the installation process?
jpderuiter
8th August 2009 13:03 UTC
You can set the Hidden attribute by using SetFileAttributes (NSIS manual chapter 4.9.3.12)
JensHP
8th August 2009 19:24 UTC
Thank for the advise. Now things look brighter :-)
As I have no experience in programming NSIS, could you outline the syntax assuming that I have to hide the folder xxx lying at the root of the project?
jpderuiter
8th August 2009 20:01 UTC
Sure, but since this is basic stuff, you will learn NSIS quicker if you find it out yourself.
It's all in the manual.
Anyway, try
SetFileAttributes "$INSTDIR\xxx" HIDDEN
JensHP
8th August 2009 23:11 UTC
Thanks. Got it working!