Wednesday, April 27, 2011

"Directory cannot be written"

Needed to install a .jnlp file onto my fresh Windows 7 install and received "This directory cannot be written!  Please choose another directory!" after I affirmed the directory install path:

C:\Program Files (x86)\ProgramName\

I'm sure there are several nifty ways to accomplish this, but my hands were tied by the Group Policies set by my company's IT staff (Note: if you have engineers, give them as much power as possible over their own tools).  Since googling didn't turn up any quick solutions, here was my work around:

Start
Type "cmd"
Right click the result
Select "Run as administrator"
Type in the path to the .jnlp file
Press enter

This allowed the installation to complete, however the program wouldn't run after install.  I uninstalled, re-downloaded the .jnlp using IE in Admin mode, and re-ran the install.

Booyah.

(Alternate solution: turn off UAC!)

1 comment: