Sign in to follow this  
Followers 0
surveyor1

Hiding a folder

8 posts in this topic

Is it possible to install a folder with files in it on a computer and then hide the folder using autoit script? If so, then could you still uninstall that folder or use add/remove programs to remove it at a latter time.

Thanks for any help.

Share this post


Link to post
Share on other sites



What purpose do you want to use this "hidden" directory for and the programs stored in it?

I'm trying to create an .scr file with my wife's jpg images without the user being able to use those images themselves. I know how to copy them to a folder on the user's machine and then have the scr access them, but the user would have access to the folder with the images. I would also want the user to be able to uninstall or remove the folder at a later time if they choose. I have tried FileInstall() but it seems to want to load each jpg file everytime it runs.

Thanks for any ideas or help.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

For such need's I always do a FileInstall() to @tempdir & '\Programname\' . Uncompiled FileInstall() will only perform a copy operation, compiled it will copy the embedded files only if the do not exist and the FileInstall("","",1) flag is NOT set. On uninstall just execute a DirRemove(@tempdir & '\Programname\',1), will not make any problems as the dir should exclusively used by your script.

Best Regards

Edited by KaFu

Share this post


Link to post
Share on other sites

I'm trying to create an .scr file with my wife's jpg images without the user being able to use those images themselves. I know how to copy them to a folder on the user's machine and then have the scr access them, but the user would have access to the folder with the images. I would also want the user to be able to uninstall or remove the folder at a later time if they choose. I have tried FileInstall() but it seems to want to load each jpg file everytime it runs.

Thanks for any ideas or help.

Then I think you need Zedna's udf which allows you to embed files and pictures in the exe, as FileInstall does, but reads pictures straight from the exe instead of first saving them to a file.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Then I think you need Zedna's udf which allows you to embed files and pictures in the exe, as FileInstall does, but reads pictures straight from the exe instead of first saving them to a file.

Thanks, I'm trying that route as well but I'm waiting to hear back from Zedna on that issue.

Share this post


Link to post
Share on other sites

Thanks, I'm trying that route as well but I'm waiting to hear back from Zedna on that issue.

Yes, I saw your other thread after I posted in this one. I think you would get your problem solved faster if you could post some code that showed your problem; there is probably some small thing that you have not done or not understood.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Yes, I saw your other thread after I posted in this one. I think you would get your problem solved faster if you could post some code that showed your problem; there is probably some small thing that you have not done or not understood.

thanks, look at my thread entitled nesting jpg files in script for scr file, also my thread entitled help with script. both are listed as surveyor1 under topic starter. I don't know if I'm out of bounds on asking any of this. I'm new to the forum and Autoit script. If I shouldn't pursue it any longer let me know. Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0