Here's some information from MSDN:

http://msdn.microsoft.com/en-us/library/ms724475(v=vs.85).aspx

It sounds like we should switch to putting the file association settings in HKEY_CURRENT_USER\Software\Classes. They won't apply to all users, but that's a worthwhile tradeoff if we can make the installer run for users without admin rights.

--Chris

On Wed, Feb 23, 2011 at 12:13 AM, Chris Laurel <claurel@gmail.com> wrote:
I think that it's possible to make the file associations for the user only rather than globally. This could be as simple as writing the registry entries in HKEY_CURRENT_USER instead of root. I will check this tomorrow.

--Chris


On Tue, Feb 22, 2011 at 11:46 AM, Selden E Ball Jr <seb1@cornell.edu> wrote:
It doesn't get far enough for me to be able to select whether or not
icons or associations are set. setup.exe generates a popup which says
"You must be an administrator to run this program."

(FWIW, If I select "run as..." and leave "current user" and "protect my
computer" selected, it fails even more quickly complaining it can't
write to a tmp file, so presumably it is getting past that point before
discovering it needs to be run as admin.)

s.

> Nice. From reading the Inno Setup FAQs this would seem to be because
> of the writing of registry entries under HKEY_CLASSES_ROOT during the
> installation. (What happens if you turn off file and URL associatons?)
> I think it might be possible to do a workaround using Inno Setup's
> Pascal scripting feature, but that'll take me a while to research it.

> Andrew

> On 22 February 2011 20:33, Selden E Ball Jr <seb1@cornell.edu> wrote:
> >
> > Yup. fail.
> >
> > Although I installed Celestia (as admin) to a folder originally belonging
> > to my non-priv'd account, the resulting folders are protected against writing
> > by a non-admin. e.g. I can't install addons in the extras folder.
> > Using Explorer's properties menu from the non-admin account
> > shows the folders to be readonly. Celestia can be run, but no changes
> > can be made to it.
> >
> > This is not something I previously worried about.
> >
> > This is under Windows XP SP3 x32.
> >
> > *sigh*
> >
> > s.
> >
> >> Unfortunately, the installer requires that the person running it be
> >> logged in with administrator privileges. Is there any way this can be
> >> avoided?
> >
> >> Updating files from a non-admin account in a folder belonging to an
> >> administrator is likely to have issues.
> >
> >> In most cases, this problem will be invisible, since most people
> >> run with admin privs on single-user systems, but requiring that a
> >> user of Celestia have admin privs should be unnecessary.
> >
> >> *sigh*
> >
> >> Selden
> >
> >> > I've uploaded the Windows installer with the latest versions of the
> >> > exoplanets data files.
> >
> >> > http://dl.dropbox.com/u/20485467/celestia/setup.exe
> >
> >> > Andrew
> >
> >> > On 8 February 2011 23:30, Chris Laurel <claurel@gmail.com> wrote:
> >> > > I've uploaded a new 1.6.1 MacOS X build:
> >> > > http://www.shatters.net/~claurel/celestia/files/celestia-osx-1.6.1.dmg
> >> > > The only change is the cel URL / favorites fix.
> >> > > --Chris
> >> > > On Mon, Feb 7, 2011 at 2:26 PM, Andrew Tribick <ajtribick@googlemail.com>
> >> > > wrote:
> >> > >>
> >> > >> Oops that diff was from an experimental directory. Here's the proper one.
> >> > >>
> >> > >> Idea behind it is to get the following two URLs to work in exactly the
> >> > >> same way
> >> > >>
> >> > >>
> >> > >> cel://Follow/Sol:Earth:Moon:G%c3%a4rtner/2011-02-07T21:51:37.05301?x=mhPJHHFi8////////////w&y=XIGvXgKLIg&z=j4zhd1RNDw&ow=0.814404&ox=0.4714&oy=0.292737&oz=0.169802&select=Sol:Earth:Moon:G%c3%a4rtner&fov=33.847&ts=1&ltd=0&p=0&rf=16691&lm=0&tsrc=0&ver=3
> >> > >>
> >> > >>
> >> > >> cel://Follow/Sol:Earth:Moon:Gärtner/2011-02-07T21:51:37.05301?x=mhPJHHFi8////////////w&y=XIGvXgKLIg&z=j4zhd1RNDw&ow=0.814404&ox=0.4714&oy=0.292737&oz=0.169802&select=Sol:Earth:Moon:Gärtner&fov=33.847&ts=1&ltd=0&p=0&rf=16691&lm=0&tsrc=0&ver=3
> >> > >>
> >> > >> (Basic idea was to use the MIB number to force it to escape the
> >> > >> non-Latin1 characters, turned out this is unnecessary)
> >> > >>
> >> > >> Andrew
> >> > >>
> >> > >> On 7 February 2011 22:10, Pat Suwalski <pat@suwalski.net> wrote:
> >> > >> > On 05/02/11 07:56 AM, Andrew Tribick wrote:
> >> > >> >>       if (ok) {
> >> > >> >>           appCore->addToHistory();
> >> > >> >> -        appCore->goToUrl(url.latin1());
> >> > >> >> +        appCore->goToUrl(KURL(url).url(0,
> >> > >> >> QTextCodec::codecForName("ISO8859-1")->mibEnum()).latin1());
> >> > >> >>       }
> >> > >> >>   }
> >> > >> >>
> >> > >> >
> >> > >> > That seems wrong, somehow. Why explicitly create a QTextCodec and assign
> >> > >> > it to ISO8859-1?
> >> > >> >
> >> > >> > (Just got back from a really nice beach in Cuba, hoping we could release
> >> > >> > this week.)
> >> > >> >
> >> > >> > --Pat
> >> > >> >
> >> > >> >
> >> > >> > ------------------------------------------------------------------------------
> >> > >> > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio
> >> > >> > XE:
> >> > >> > Pinpoint memory and threading errors before they happen.
> >> > >> > Find and fix more than 250 security defects in the development cycle.
> >> > >> > Locate bottlenecks in serial and parallel code that limit performance.
> >> > >> > http://p.sf.net/sfu/intel-dev2devfeb
> >> > >> > _______________________________________________
> >> > >> > Celestia-developers mailing list
> >> > >> > Celestia-developers@lists.sourceforge.net
> >> > >> > https://lists.sourceforge.net/lists/listinfo/celestia-developers
> >> > >> >
> >> > >>
> >> > >>
> >> > >> ------------------------------------------------------------------------------
> >> > >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> >> > >> Pinpoint memory and threading errors before they happen.
> >> > >> Find and fix more than 250 security defects in the development cycle.
> >> > >> Locate bottlenecks in serial and parallel code that limit performance.
> >> > >> http://p.sf.net/sfu/intel-dev2devfeb
> >> > >> _______________________________________________
> >> > >> Celestia-developers mailing list
> >> > >> Celestia-developers@lists.sourceforge.net
> >> > >> https://lists.sourceforge.net/lists/listinfo/celestia-developers
> >> > >>
> >> > >
> >> > >
> >
> >> > ------------------------------------------------------------------------------
> >> > Free Software Download: Index, Search & Analyze Logs and other IT data in
> >> > Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> >> > generated by your applications, servers and devices whether physical, virtual
> >> > or in the cloud. Deliver compliance at lower cost and gain new business
> >> > insights. http://p.sf.net/sfu/splunk-dev2dev
> >> > _______________________________________________
> >> > Celestia-developers mailing list
> >> > Celestia-developers@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/celestia-developers
> >
> >
> >> ------------------------------------------------------------------------------
> >> Free Software Download: Index, Search & Analyze Logs and other IT data in
> >> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> >> generated by your applications, servers and devices whether physical, virtual
> >> or in the cloud. Deliver compliance at lower cost and gain new business
> >> insights. http://p.sf.net/sfu/splunk-dev2dev
> >> _______________________________________________
> >> Celestia-developers mailing list
> >> Celestia-developers@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/celestia-developers
> >
> >
> > ------------------------------------------------------------------------------
> > Free Software Download: Index, Search & Analyze Logs and other IT data in
> > Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> > generated by your applications, servers and devices whether physical, virtual
> > or in the cloud. Deliver compliance at lower cost and gain new business
> > insights. http://p.sf.net/sfu/splunk-dev2dev
> > _______________________________________________
> > Celestia-developers mailing list
> > Celestia-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/celestia-developers
> >

> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Celestia-developers mailing list
> Celestia-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/celestia-developers


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Celestia-developers mailing list
Celestia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/celestia-developers