surveyor1 Posted December 20, 2008 Share Posted December 20, 2008 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 20, 2008 Developers Share Posted December 20, 2008 What purpose do you want to use this "hidden" directory for and the programs stored in it? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
surveyor1 Posted December 20, 2008 Author Share Posted December 20, 2008 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. Link to comment Share on other sites More sharing options...
KaFu Posted December 20, 2008 Share Posted December 20, 2008 (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 December 20, 2008 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
martin Posted December 20, 2008 Share Posted December 20, 2008 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. Link to comment Share on other sites More sharing options...
surveyor1 Posted December 20, 2008 Author Share Posted December 20, 2008 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. Link to comment Share on other sites More sharing options...
martin Posted December 20, 2008 Share Posted December 20, 2008 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. Link to comment Share on other sites More sharing options...
surveyor1 Posted December 20, 2008 Author Share Posted December 20, 2008 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now