Re: Creating Folder (Mkdir)
The application needs to be run "As Administrator". Your installation package should be creating any needed folders during installation, not after.
In Windows, there are folders provided to save application settings, user settings, and more. Maybe if you provide more details, we can offer suggestions/solutions.
Re: Creating Folder (Mkdir)
Quote:
Originally Posted by
LaVolpe
The application needs to be run "As Administrator". Your installation package should be creating any needed folders during installation, not after.
In Windows, there are folders provided to save application settings, user settings, and more. Maybe if you provide more details, we can offer suggestions/solutions.
Ok, I got it But How to create subfolders during packaging of my App? I have problem there. Therefore I decided to create subfolders after Installing the App.
Re: Creating Folder (Mkdir)
Code:
Declare Function IsUserAnAdmin Lib "Shell32" Alias "#680" () As Integer
this will tell u if your program is currently in Admin mode or not.
you can check this thread for more info about how to make your program run as admin.
http://www.vbforums.com/showthread.p...-automatically
Re: Creating Folder (Mkdir)
Thank you I made changes in (SETUP.LST) file to solve my problem, I will use your API for my next work, However I haven't enough knowlagde on it
Re: Creating Folder (Mkdir)
If we're talking about sub-folders anywhere within C:\Program Files or C:\Program Files (x86), I think it's an absolutely horrible idea for a program to reach back into those folders and do anything at all (after initial installation). That's precisely what things like C:\ProgramData, C:\Users\[WhoEverYouAre]\Documents, or even the registry are for. Or, you could even create your own sub-folder in the C:\Users\[WhoEverYouAre]\YourSubFolder area. Or, if you've got a file-server on your system, use that for your data.
Best Regards,
Elroy
Re: Creating Folder (Mkdir)
Quote:
Originally Posted by
Elroy
If we're talking about sub-folders anywhere within C:\Program Files or C:\Program Files (x86), I think it's an absolutely horrible idea for a program to reach back into those folders and do anything at all (after initial installation). That's precisely what things like C:\ProgramData, C:\Users\[WhoEverYouAre]\Documents, or even the registry are for. Or, you could even create your own sub-folder in the C:\Users\[WhoEverYouAre]\YourSubFolder area. Or, if you've got a file-server on your system, use that for your data.
Best Regards,
Elroy
Many thanks dear Elroy for your comment. I know that it shouldn't be like that, but I have problem to create subfolders for my App. druring Packaging, therefore I tried to create subfolders after installation. For Now I got an idea to make changes in (SETUP.LST) file, and still I have problem I don't know how to create subfolders for my Apps. I want to create subfolders for different file types!!!
If you have an idea I appreciate your help
#MKhP7