Edits To Dynamics Launch File Won’t Save

Patrick Roth - Click for blog homepageThis is a reposting of an article Patrick Roth originally wrote on my Developing for Dynamics GP blog.

My blog post today isn’t anything earth shattering but something a partner ran into that was unexpected.  Logical – but unexpected nonetheless.

A recent forum post detailed how the user was trying to set forms & reports dictionary paths using the Edit Launch File window.  What they found was that after editing the launch file using this window was that the changes were not being saved.

Really?  I just assumed everyone hand edited the Dynamics.set file like I do.  On the other hand, the window is nice in that it doesn’t let you screw things up either.  So thumbs up for using the UI to do this.

For this specific problem- what the user is running into is likely either a generic permissions error and doesn’t have permissions to modify files in the GP folder.  Or most likely they are on a Windows 7 machine with Dynamics GP installed into the Program Files folder and therefore running into a UAC (User Account Control) permissions error.

So the issue is somewhat unexpected as this is the only window I can think of offhand that modifies something in the root GP folder (besides the VBA editor does when it saves VBA modifications to the root GP folder) instead of the Data folder.

This also is exactly the reason that when you run Dynutils the app asks to elevate permissions in case it has to merge any cnk files.

So in this case, the solution was rather easy:

  1. Just hand edit the Dynamics.set file
  2. When launching Dynamics, make to right click on the Dynamics shortcut and choose “Run as Administrator”.  This will prompt for elevated permissions and once granted will allow Dynamics to be able to write to the root of the GP folder.

You could, of course, just change user permissions to the folder itself to allow any user to modify files in that directory.  Or turn UAC off entirely.  But both of these defeat the purpose of having UAC in the first place.

Best Regards,

Patrick Roth
Dynamics GP Developer Support

This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on http://www.winthropdc.com/blog.

3 thoughts on “Edits To Dynamics Launch File Won’t Save

  1. Hi Patrick,
    Tough this blog post is over 2 years old, I want to mention that I run into this UAC issue on any Windows 7 or Server 2008, every time I need to edit the Dynamics.SET launch file (or any file that's sitting in the GP program folder)… I'm local admin of the system and the UAC's are disabled by policy on our systems… but nonetheless, the only way to save the file is to make a copy outside (i.e. on the Desktop), Edit the file, save it and copy it back to the GP folder….
    The GP application is always setup to be ran with Administrator Privileges, but when installing a new CNK file, I sometime have to right-click the application icon and launch it with elevated permissions too… Somehow Microsoft hasn't figured out yet how to deal with the UAC's…
    The joke is that when I need to modify .SET or .INI files for users, I access their local drive remotely thru the network and never have any permission issues (I'm local admin on all our system and servers by default)…
    In some cases those UAC's are just plain hassle for admins, but they are supposed to protect the end-user… aren't they ? 🙂


  2. Hi Beat
    I never have any issues on my system even with UAC on….
    but that is because I don't install under Program Files.
    My 3 installs are located at C:Dyn1000, C:Dyn1100 & C:Dyn1200.


  3. Windows 10 update!  Beat's fix worked for me.  I had UAC off and granted domain admins access to the folder on Windows 10 Pro and it wouldn't let me overwrite it.  
    I didn't want to install anything out of order like our internal instructions say so came looking for an answer and found this.  


Please post feedback or comments

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.