TomJohnson
Posts: 2
Joined: Thu Mar 20, 2014 7:19 pm

Writable App folder possible?

When installing under Windows 7, the application directory is not modifiable by the user that performed the install. This is a per machine installation. I need to modify a configuration file that is part of the install after the install is complete and can't seem to do so unless I run notepad as administrator and open the file. Is there a way to force non-UAC on the install folder?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Writable App folder possible?

Hello Tom and welcome to Advanced Installer forums,

In order to update a file which is part of the installation package you can consider our Text File Update support which can be used to either create a new file with the specified content or to modify those existing using "Append" and "Search & Replace" operations.

I've attached a .zip archive that contains a sample which use a text file update operation to search for a given string in a file (which is part of the installation package) and replace it with a value specified by the user during install time.

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Attachments
TextFileUpdateSample.zip
(3.72 KiB) Downloaded 300 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TomJohnson
Posts: 2
Joined: Thu Mar 20, 2014 7:19 pm

Re: Writable App folder possible?

Thank you for that information. Was not quite what I was looking for. I was looking to change the permissions or set whatever flag Vista/Windows 7 needs to make the directory under program files modifiable by users. As the application itself makes modifications to some of the text files (XML) in the directory. I realize they should be stored in the user profile and I may change to that if necessary. For now, I changed the default install path to [WINDOWS_VOLUME][Product Name] and that directory is writable.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Writable App folder possible?

Hi Tom,

In order to change permissions, you can use ICACLS to set folder permissions. Also, you can take a look on the Folder permissions with Vista and Network drives forum thread which may be useful to you.

Unfortunately, any tasks that require administrator privileges will trigger an UAC prompt (if UAC is enabled) and the user will have to enter its credentials.
Such administrative tasks include installing software and drivers, changing system-wide settings, viewing or changing other user accounts, and running administrative tools.

If the UAC is off then it will not be any prompt to enter admin credentials. If the UAC is off then the installation will be launched with the current log-on user right. If the log on user is a guest and the installer require administrator privileges then the installation will fail because it doesn't have sufficient privileges to complete this installation for all users of the machine.

You can take a look on the User Account Control article which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”