Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Setting Read/Write permissions on a folder created by Installshield


8 replies to this topic

Seany

Seany
  • Full Members
  • 64 posts

Posted 25 October 2013 - 11:53

Hi

 

I'm using Installshield 2010 Premier edition.

 

As part of my install I'm creating an empty folder that needs to have Read\Write permissions granted on it.

 

Whatver Ive tried doesnt seem to work (i think it actually works on an XP machine but not a Windows 7 machine)

 

Here is what ive done in my installshield project:

  • Navigate to "General Information" (Lefthand pane)
  • Set Locked-Down Permissions to "Custom InstallShield handling"
  • Navigate to "Application Data"
  • Right-click the root folder where program is to be installed
  • Click "Properties"
  • Click button "Permissions"
  • Right-click top half of screen in white box area labeled "Name(s)"
  • Select context menu item "New"
  • Remove domain user leaving this field blank
  • Added user "Authenticated Users"
  • Select check boxes in lower area ("Read & execute", "List Folder Contents", "Read", "Write")
  • Click button "Advanced"
  • Check checkbox "Apply these permissions to child objects"

After installing on an XP machine I can save files to the folder I created. So it seems to work.

 

But on a Windows 7 machine I get the standard  'You do not have permission to save files in this location' message.

 

Any advice of help is much appreciated

 

Thanks


Edited by Seany, 28 October 2013 - 11:59.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 October 2013 - 09:33

I don't understand what you are doing here. The permissions you give ("Read & execute", "List Folder Contents", "Read") don't include "Write", so why do you expect to get write permissions?



Seany

Seany
  • Full Members
  • 64 posts

Posted 28 October 2013 - 12:00

Apologies for my confusing post I had of course set "Write" permission as well, Ive edited the original post to add "Write"



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 October 2013 - 15:53

Please right click the Folder after Installation and verify it's permissions. Have they been added?



Seany

Seany
  • Full Members
  • 64 posts

Posted 28 October 2013 - 16:22

No the permissions don't appear to have been added.



Seany

Seany
  • Full Members
  • 64 posts

Posted 29 October 2013 - 13:25

Hi

 

I'm pretty sure now that it is the UAC that is stopping this working.

 

I disabled the UAC and was able to save a file to my created folder.

 

I then tried again with UAC on and once again could not save to my folder.

 

Apart from turning off UAC before installing is there way around this that anyone is aware of?

 

Thanks



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 29 October 2013 - 16:04

I wonder why adding the permission fails. Is there anything in the log? Could you try another Group Name, or a single user name, just for testing? Or use Windows Installer's built in handling? Or use Process Monitor from SysInternals to see if there are any issues applying the permissions.



Seany

Seany
  • Full Members
  • 64 posts

Posted 29 October 2013 - 16:10

I will investigate your suggestions and post any findings thanks



Seany

Seany
  • Full Members
  • 64 posts

Posted 05 November 2013 - 15:34

I think I may have figured this out.

 

I noticed that somehow I had created several components in a different feature that where also setting permissions on the folder that i was having problems with. I guess while developing the project I had somehow done this i can't really say for sure.

 

It seems that these several components were somehow clashing resulting in 'no write' permission on my folder. Once I removed the superfluous components it seemed to work as I was hoping.

 

I'm still not quite sure what difference disabling the UAC had.

 

Thanks for the advice and time.