Re: Installer-dev Digest, Vol 86, Issue 1
Re: Installer-dev Digest, Vol 86, Issue 1
- Subject: Re: Installer-dev Digest, Vol 86, Issue 1
- From: Greg Neagle <email@hidden>
- Date: Mon, 10 Oct 2011 08:18:29 -0700
A followup on this point:
> [Q] When I launch an application with open, it is run as root. Why?
>
> • If you require root authentication to install your package, most of the Installation scripts are run as root. If you want to open an application with the current user account, you can use the $USER environment variable like this:
>
> /usr/bin/su $USER -c /usr/bin/open /the/path/to/your/application
Note that in some contexts (such as running /usr/sbin/installer as root when there is no console user) $USER may not be set. Your scripts should handle that appropriately.
-Greg
On Oct 9, 2011, at 8:23 AM, Stephane Sudre wrote:
> Regarding the second set of results, you are probably experiencing the
> classic issue of not knowing _who_ is running the script.
>
> Check the second Q&A:
>
> http://s.sudre.free.fr/Stuff/Installer/Installation_Scripts/InstallationScripts-FAQ001.html
>
> On Sun, Oct 9, 2011 at 1:14 AM, Rakesh Singhal <email@hidden> wrote:
>> Hi,
>>
>> Thanks. I am trying to get the language in postflight script using the
>> command "defaults read -g AppleLanguages" and "defaults read -g
>> AppleLocale". AppleLaguages does not work and it gives error "The
>> domain/default pair of (kCFPreferencesAnyApplication, AppleLanguages) does
>> not exist".
>>
>> In terminal AppleLocale returns en_IN if my Mac OS was installed in English
>> or fr_IN if my Mac OS was installed in French, but the same command returns
>> "en" in postflight script in above both OS (English and French).
>>
>> None of them are working. Please let me know how to fix it.
>>
>> Thanks & Regards,
>> Rakesh
>>
>>
>>> Date: Tue, 04 Oct 2011 07:47:56 +0000
>>> From: Per Olofsson <email@hidden>
>>> Subject: Re: Add option to choose language during installation
>>> To: Installer-Dev mailing-list <email@hidden>
>>> Message-ID: <email@hidden>
>>> Content-Type: text/plain; charset=us-ascii
>>>
>>> 4 okt 2011 kl. 06:30 skrev Rakesh Singhal:
>>>
>>>> I am using Packages tool
>>>> (http://s.sudre.free.fr/Software/Packages/about.html) to create installer
>>>> package (mpkg file). I am able to create the installer package and install
>>>> it properly without any issue. Now, I would like to add the option to choose
>>>> the language when user click on mpkg file. I have added the license
>>>> localization and other localization etc in myproject.pkgproj. After these
>>>> changes, it creates the .lproj folders for other languages also in mpkg
>>>> file. But I am not able to find a way to add the option to choose language
>>>> and then pass it to postflight script. To pass the language option to
>>>> postflight script, I can create a temp file. But do not know how to add
>>>> option.
>>>
>>> As long as the (m)pkg and the installed bundles have the appropriate
>>> lprojs, the system will automatically choose the language that matches the
>>> user's language preference. If you have legacy components that need to be
>>> localized, you can inspect the settings in a script with:
>>>
>>> defaults read -g AppleLanguages
>>> defaults read -g AppleLocale
>>>
>>> --
>>> Per Olofsson
>>> System Administrator, ITS, University of Gothenburg
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Installer-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden