|
Answer» Hi there. I've compiled an .exe file that extracts the folder contents for my software to C:\Users\User\Documents\Recipes For Diabetics\ I choose Documents because it's easier then dealing with possible "Program Files" folder issues especially on Vista machines. (UAC and such)
The software itself is a simple database with recipes. I have bundled my "software folder" and turned it into an .exe file using a software called Inno Setup Compiler. ( I had placed a link before, but was "remanded" by the administrator of this forum for spamming.) But it can easily be found in Google.
My problem is that once the software is extracted to C:\Users\User\Documents\Recipes For Diabetics\ I can open it and navigate anywhere within the software but as soon as I try to Add or Delete a recipe, I get an error message that says "This File Cannot be Modified".
I know how to fix it manually by going to the folder and set Everyone as user and give Everyone Full Control. Another way that works is by turning "User Account Control" off and then reboot the machine.
But what I'd really like to do is set a script that runs after installation which automatically sets these permissions for me. Leaving things the way they are is very "client unfriendly."
Does anyone have any IDEAS? Is anyone familiar with Inno Setup Compiler? Any takers? http://helpware.net/VistaCompat.htm
1)Right-click an EXE or its shortcut and select "Run as administrator" from the context menu. 2)Mark the executable as requestedExecutionLevel level="requireAdministrator" using a manifest file (see link above for a very easy way.)The product he USED to create his database installer is a package that works on Delphi files. Delphi is based on Pascal.
The package MENTIONED is "Inno Setup " and can be found on the download site of CNET.
Quote Publisher's description. From Jordan Russell:
Inno Setup is a free, feature-packed installation builder. The application's features include a Windows 2000-style wizard interface; the ability to create a single EXE for easy ONLINE distribution; support for disk spanning; and full uninstall capabilities. The program also includes customizable setup types, integrated LZMA file compression, support for installing shared files and OCXs, and the creation of Start menu icons, INI entries, and registry entries. Full Delphi source code is available on the author's Web site.
Read more: Inno Setup Compiler - Free software downloads and software reviews - CNET Download.com http://download.cnet.com/Inno-Setup-Compiler/3000-2216_4-10041351.html#ixzz1VFAnGGWV
It is FREE, so the moderator was, perhaps, overly cautious for removing the link. From the general deselection it appears to be a usable product. And the author seems to UNDERSTAND the setup requirements for Windows.
The OP may need to read over again the documentation: http://www.jrsoftware.org/ishelp/
But putting nan executable program in 'My Documents' is not a recommended practice. IMHO, this issue needs to be addressed first of all.Quotethe moderator was, perhaps, overly cautious for removing the link. From the general deselection it appears to be a usable product. And the author seems to understand the setup requirements for Windows.
OK...
|