Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Oct 17, 2019 6:01 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Permission issue in windows 7
PostPosted: Sun Aug 12, 2012 9:25 am 
Offline
User avatar

Joined: Mon Jan 02, 2012 1:51 am
Posts: 382
Location: India
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?

_________________
Amitava Karan
Real Studio 2012 Release 1
Windows 7 (32 bit)
Mac OS X Version 10.7


Top
 Profile  
Reply with quote  
 Post subject: Re: Permission issue in windows 7
PostPosted: Sun Aug 12, 2012 9:43 am 
Offline
User avatar

Joined: Thu Aug 26, 2010 6:57 am
Posts: 569
Location: Sydney Australia
right click > run as administrator ?

_________________
Regards

Chris Musty
http://www.specialised.net.au
-----------------------------------------------
if date.shortdate >= 4/6/2013 then
msgbox "I am using Xojo - YAY!!!"
else
msgbox "I am still using RS 12r2.1 - BOO!!!"
end if

Win 8 Pro, Ubuntu 13.04, Mint and Debian(gnome and KDE)
AWS for Hosting and TKL for AMI's


Top
 Profile  
Reply with quote  
 Post subject: Re: Permission issue in windows 7
PostPosted: Sun Aug 12, 2012 9:46 am 
Offline

Joined: Sat Aug 22, 2009 9:44 am
Posts: 315
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Permission issue in windows 7
PostPosted: Sun Aug 12, 2012 12:21 pm 
Offline
User avatar

Joined: Tue Mar 04, 2008 1:20 pm
Posts: 95
In Inno Setup add this.

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

_________________
iMac 2011, OSX Mountain Lion 10.8.1, Real Studio 2012r2.1


Top
 Profile  
Reply with quote  
 Post subject: Re: Permission issue in windows 7
PostPosted: Sun Aug 12, 2012 12:48 pm 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Permission issue in windows 7
PostPosted: Sun Aug 12, 2012 12:57 pm 
Offline

Joined: Sat Aug 22, 2009 9:44 am
Posts: 315
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group