Real Software Forums
http://forums.realsoftware.com/

Permission issue in windows 7
http://forums.realsoftware.com/viewtopic.php?f=6&t=44979
Page 1 of 1

Author:  amitavak [ Sun Aug 12, 2012 9:25 am ]
Post subject:  Permission issue in windows 7

Hi Everyone,

I made the windows installer for my application using INNO SetUp. But when I installed that application on my windows 7 system. I found that the application is not running properly. Then I go the folder where I installed the app(for me it is C:\Program Files\Application Name) and set the permission(that is set the full control for the user, using which I login), Then Everything working fine.

So, my question is, is there any way to set permission automatically during installation?

Author:  Specialised [ Sun Aug 12, 2012 9:43 am ]
Post subject:  Re: Permission issue in windows 7

right click > run as administrator ?

Author:  wbgookin [ Sun Aug 12, 2012 9:46 am ]
Post subject:  Re: Permission issue in windows 7

Are you trying to write something into the application folder when you launch the program? I haven't needed to change permissions to run my applications under Windows 7. Anything that gets written when launching/running goes into the application data folder instead of the program folder.

Author:  spacebuddy [ Sun Aug 12, 2012 12:21 pm ]
Post subject:  Re: Permission issue in windows 7

In Inno Setup add this.

[Dirs]
Name: "{app}\"; Permissions: everyone-modify

Author:  kermit [ Sun Aug 12, 2012 12:48 pm ]
Post subject:  Re: Permission issue in windows 7

wbgookin has it right.
Your program is trying to create or write files in the program folder.
Windows Vista, 7 and 8 all prevent that for normal users

"fixing' it on one machine is not a good solution.

In your code, access these files as
specialfolder.applicationdata.child('my app").child("the file.txt")

Inno can install your support files into this location for you.
No special permissions required

Author:  wbgookin [ Sun Aug 12, 2012 12:57 pm ]
Post subject:  Re: Permission issue in windows 7

An alternative to having innosetup copy the files to the correct folder is including those files within your app and having it write them to the appropriate folder for you. I do it this way so if they get mangled somehow, I can recreate them from within the program rather than making the user reinstall it.

Bill

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/