<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer" nil="true"></assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2009-08-25T02:40:07-05:00</created-at>
  <creator-id type="integer">58490</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer" nil="true"></milestone-id>
  <number type="integer">214</number>
  <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
  <priority type="integer">0</priority>
  <project-id type="integer">24342</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>bluesky</state>
  <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
  <title>Installer package does not work when ran under non-admin user</title>
  <updated-at type="datetime">2009-08-30T13:47:26-05:00</updated-at>
  <user-id type="integer">47272</user-id>
  <user-name>simX</user-name>
  <creator-name>someone</creator-name>
  <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
  <original-body>Here is the installer log. The installer was ran under a non-admin user, which explains why it failed to create the receipt.

May 31 15:07:02 xxxx
pkgReceiptMaker[1584]: Error 13 (Permission denied) trying to rename /private/tmp/ClickToFlash.pkg.1575MfyjnG/Receipts/ClickToFlash.pkg to /Library/Receipts/ClickToFlash.pkg
May 31 15:07:02 xxxx pkgReceiptMaker[1584]: Error creating final receipt for package 'ClickToFlash.pkg'
May 31 15:07:02 xxxx Installer[1575]: Install failed: The Installer could not write the receipt for &#8220;ClickToFlash&#8221;.
May 31 15:07:02 xxxx Installer[1575]: Displaying 'Install Failed' UI.
May 31 15:07:02 xxxx Installer[1575]: 'Install Failed' UI displayed message:'The Installer could not write the receipt for &#8220;ClickToFlash&#8221;.'.</original-body>
  <latest-body>Here is the installer log. The installer was ran under a non-admin user, which explains why it failed to create the receipt.

May 31 15:07:02 xxxx
pkgReceiptMaker[1584]: Error 13 (Permission denied) trying to rename /private/tmp/ClickToFlash.pkg.1575MfyjnG/Receipts/ClickToFlash.pkg to /Library/Receipts/ClickToFlash.pkg
May 31 15:07:02 xxxx pkgReceiptMaker[1584]: Error creating final receipt for package 'ClickToFlash.pkg'
May 31 15:07:02 xxxx Installer[1575]: Install failed: The Installer could not write the receipt for &#8220;ClickToFlash&#8221;.
May 31 15:07:02 xxxx Installer[1575]: Displaying 'Install Failed' UI.
May 31 15:07:02 xxxx Installer[1575]: 'Install Failed' UI displayed message:'The Installer could not write the receipt for &#8220;ClickToFlash&#8221;.'.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Here is the installer log. The installer was ran under a
non-admin user, which explains why it failed to create the
receipt.&lt;/p&gt;
&lt;p&gt;May 31 15:07:02 xxxx pkgReceiptMaker[1584]: Error 13 (Permission
denied) trying to rename
/private/tmp/ClickToFlash.pkg.1575MfyjnG/Receipts/ClickToFlash.pkg
to /Library/Receipts/ClickToFlash.pkg May 31 15:07:02 xxxx
pkgReceiptMaker[1584]: Error creating final receipt for package
'ClickToFlash.pkg' May 31 15:07:02 xxxx Installer[1575]: Install
failed: The Installer could not write the receipt for
&amp;#8220;ClickToFlash&amp;#8221;. May 31 15:07:02 xxxx Installer[1575]:
Displaying 'Install Failed' UI. May 31 15:07:02 xxxx
Installer[1575]: 'Install Failed' UI displayed message:'The
Installer could not write the receipt for
&amp;#8220;ClickToFlash&amp;#8221;.'.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Here is the installer log. The installer was ran under a non-admin user, which explains why it failed to create the receipt.

@@@
May 31 15:07:02 xxxx
pkgReceiptMaker[1584]: Error 13 (Permission denied) trying to rename /private/tmp/ClickToFlash.pkg.1575MfyjnG/Receipts/ClickToFlash.pkg to /Library/Receipts/ClickToFlash.pkg
May 31 15:07:02 xxxx pkgReceiptMaker[1584]: Error creating final receipt for package 'ClickToFlash.pkg'
May 31 15:07:02 xxxx Installer[1575]: Install failed: The Installer could not write the receipt for &#8220;ClickToFlash&#8221;.
May 31 15:07:02 xxxx Installer[1575]: Displaying 'Install Failed' UI.
May 31 15:07:02 xxxx Installer[1575]: 'Install Failed' UI displayed message:'The Installer could not write the receipt for &#8220;ClickToFlash&#8221;.'.
@@@</body>
      <body-html>&lt;div&gt;&lt;p&gt;Here is the installer log. The installer was ran under a
non-admin user, which explains why it failed to create the
receipt.&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;May 31 15:07:02 xxxx
pkgReceiptMaker[1584]: Error 13 (Permission denied) trying to rename /private/tmp/ClickToFlash.pkg.1575MfyjnG/Receipts/ClickToFlash.pkg to /Library/Receipts/ClickToFlash.pkg
May 31 15:07:02 xxxx pkgReceiptMaker[1584]: Error creating final receipt for package 'ClickToFlash.pkg'
May 31 15:07:02 xxxx Installer[1575]: Install failed: The Installer could not write the receipt for &amp;#8220;ClickToFlash&amp;#8221;.
May 31 15:07:02 xxxx Installer[1575]: Displaying 'Install Failed' UI.
May 31 15:07:02 xxxx Installer[1575]: 'Install Failed' UI displayed message:'The Installer could not write the receipt for &amp;#8220;ClickToFlash&amp;#8221;.'.&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-31T14:12:17-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>new</state>
      <tag>1.5b2 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-19T20:42:42-05:00</updated-at>
      <user-id type="integer">58490</user-id>
      <user-name>someone</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-31T21:35:40-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
:assigned_user: 
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>open</state>
      <tag>1.5b2 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-05-31T21:35:42-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>What version of Mac OS X/Safari/ClickToFlash? I was able to correctly install for a nonadmin user on Mac OS X 10.5.7/Safari 3.2.3/ClickToFlash 1.5b3.</body>
      <body-html>&lt;div&gt;&lt;p&gt;What version of Mac OS X/Safari/ClickToFlash? I was able to
correctly install for a nonadmin user on Mac OS X 10.5.7/Safari
3.2.3/ClickToFlash 1.5b3.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-24T20:00:01-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: open
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b2 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-06-24T20:00:02-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I've just witnessed this behaviour with 1.5b4 and Safari 4 on 10.5.7.

I tried, on the offchance, asking pkgutil to forget the old package (my theory was that it was trying to replace and old receipt in /Library), but to no avail.

pkgutil --pkgs lists no trace of CtF in either / nor $HOME.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I've just witnessed this behaviour with 1.5b4 and Safari 4 on
10.5.7.&lt;/p&gt;
&lt;p&gt;I tried, on the offchance, asking pkgutil to forget the old
package (my theory was that it was trying to replace and old
receipt in /Library), but to no avail.&lt;/p&gt;
&lt;p&gt;pkgutil --pkgs lists no trace of CtF in either / nor $HOME.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-29T02:20:05-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b2 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-06-29T02:20:11-05:00</updated-at>
      <user-id type="integer">33126</user-id>
      <user-name>Mo</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>This bug still exists on ClickToFlash 1.5b4. I am running Safari 3.2.3 on Mac OS X 10.5.7 PPC.</body>
      <body-html>&lt;div&gt;&lt;p&gt;This bug still exists on ClickToFlash 1.5b4. I am running Safari
3.2.3 on Mac OS X 10.5.7 PPC.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-30T23:04:12-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: 1.5b2 broken install installer non-admin permission pkg privilege receipt
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b4 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-06-30T23:04:15-05:00</updated-at>
      <user-id type="integer">58490</user-id>
      <user-name>someone</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I don't see how you can write to the Receipts folder, since a non-admin user does not have permissions to write to that folder and the installer never asks for admin permission.

In addition, would you consider abandoning the use of package installers and move to drop-and-drop based installation (provide symlinks in the dmg)? This method works well on both Tiger and Leopard, handles permission problems on its own and provides a more seemless Sparkle update experience).</body>
      <body-html>&lt;div&gt;&lt;p&gt;I don't see how you can write to the Receipts folder, since a
non-admin user does not have permissions to write to that folder
and the installer never asks for admin permission.&lt;/p&gt;
&lt;p&gt;In addition, would you consider abandoning the use of package
installers and move to drop-and-drop based installation (provide
symlinks in the dmg)? This method works well on both Tiger and
Leopard, handles permission problems on its own and provides a more
seemless Sparkle update experience).&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-30T23:09:33-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b4 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-06-30T23:09:40-05:00</updated-at>
      <user-id type="integer">58490</user-id>
      <user-name>someone</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I am just wondering if your /Library/Receipts has the standard permission set.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I am just wondering if your /Library/Receipts has the standard
permission set.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-07-04T16:38:06-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b4 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-07-04T16:38:08-05:00</updated-at>
      <user-id type="integer">58490</user-id>
      <user-name>someone</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>The installer package is still broken for *non-admin* users in version 1.5b5 under Safari 3.2.3 running on Mac OS X 10.5.7 PowerPC. Can you try to reproduce this bug again? I found it very surprising that you can write to /Library/Receipts when running the installer under a non-admin user without first obtaining admin privilege.</body>
      <body-html>&lt;div&gt;&lt;p&gt;The installer package is still broken for &lt;em&gt;non-admin&lt;/em&gt;
users in version 1.5b5 under Safari 3.2.3 running on Mac OS X
10.5.7 PowerPC. Can you try to reproduce this bug again? I found it
very surprising that you can write to /Library/Receipts when
running the installer under a non-admin user without first
obtaining admin privilege.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-11T01:09:05-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: 1.5b4 broken install installer non-admin permission pkg privilege receipt
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-11T01:09:06-05:00</updated-at>
      <user-id type="integer">58490</user-id>
      <user-name>someone</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I just tested this, and installation under a non-admin user still works fine.

It'd be stupid if Mac OS X required permissions to write a receipt to the /Library/ folder.  That would mean that a non-admin user could not install *anything*.  I think this is correct behavior on the part of the system; it's true that you don't have permissions to write to /Library/Receipts/ as a non-admin user, but I suspect that the Installer does.

There's something about your user that isn't right.  Have you tried creating a pristine non-admin user, and trying to install ClickToFlash using that account?</body>
      <body-html>&lt;div&gt;&lt;p&gt;I just tested this, and installation under a non-admin user
still works fine.&lt;/p&gt;
&lt;p&gt;It'd be stupid if Mac OS X required permissions to write a
receipt to the /Library/ folder. That would mean that a non-admin
user could not install &lt;em&gt;anything&lt;/em&gt;. I think this is correct
behavior on the part of the system; it's true that you don't have
permissions to write to /Library/Receipts/ as a non-admin user, but
I suspect that the Installer does.&lt;/p&gt;
&lt;p&gt;There's something about your user that isn't right. Have you
tried creating a pristine non-admin user, and trying to install
ClickToFlash using that account?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-11T01:20:56-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-11T01:21:00-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Okay, I've now tried this on two machines, two running 10.5, one running [REDACTED].

On the first attempt, I tried installing 1.5b5 as me on my MacBook, and it failed as before. This was the only test with a Mobile account, the rest were local (were the results different for these, I would have tried a new mobile account, but it wasn't necessary).

Next, I tried a fresh local non-admin account, which failed because the failed installation as me had left files lying around in /tmp (ClickToFlash.webplugin, specifically). I cleared those out and tried again, and it again failed because of an inability to write to /Library/Receipts.

On [REDACTED], it succeeded, and didn't write one jot to /Library/Receipts or ~/Library/Receipts.

On a different machine, also running 10.5 and on which I've never installed CtF on, I created another local non-admin account, and that also failed writing the package receipt.

I note on my MacBook (but none of the others), I have a ~/Library/Receipts (which just contains growl.pkg).</body>
      <body-html>&lt;div&gt;&lt;p&gt;Okay, I've now tried this on two machines, two running 10.5, one
running &lt;a href=&quot;/projects/24342/changesets/REDACTED&quot; title=
&quot;Changeset [REDACTED]&quot;&gt;[REDACTED]&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On the first attempt, I tried installing 1.5b5 as me on my
MacBook, and it failed as before. This was the only test with a
Mobile account, the rest were local (were the results different for
these, I would have tried a new mobile account, but it wasn't
necessary).&lt;/p&gt;
&lt;p&gt;Next, I tried a fresh local non-admin account, which failed
because the failed installation as me had left files lying around
in /tmp (ClickToFlash.webplugin, specifically). I cleared those out
and tried again, and it again failed because of an inability to
write to /Library/Receipts.&lt;/p&gt;
&lt;p&gt;On &lt;a href=&quot;/projects/24342/changesets/REDACTED&quot; title=
&quot;Changeset [REDACTED]&quot;&gt;[REDACTED]&lt;/a&gt;, it succeeded, and didn't
write one jot to /Library/Receipts or ~/Library/Receipts.&lt;/p&gt;
&lt;p&gt;On a different machine, also running 10.5 and on which I've
never installed CtF on, I created another local non-admin account,
and that also failed writing the package receipt.&lt;/p&gt;
&lt;p&gt;I note on my MacBook (but none of the others), I have a
~/Library/Receipts (which just contains growl.pkg).&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-11T04:18:55-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-11T04:18:58-05:00</updated-at>
      <user-id type="integer">33126</user-id>
      <user-name>Mo</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Out of curiosity, what's the rationale for --domain user not being passed to packagemaker in http://github.com/rentzsch/clicktoflash/blob/13b1e672adfe01b69f5b8f81c653eb2bd85ddae0/Installer/build_installer_pkg.command ?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Out of curiosity, what's the rationale for --domain user not
being passed to packagemaker in &lt;a href=
&quot;http://github.com/rentzsch/clicktoflash/blob/13b1e672adfe01b69f5b8f81c653eb2bd85ddae0/Installer/build_installer_pkg.command&quot;&gt;
http://github.com/rentzsch/clicktoflash/blob/13b1e672adfe01b69f5b8f...&lt;/a&gt;
?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-11T04:25:08-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-11T04:25:11-05:00</updated-at>
      <user-id type="integer">33126</user-id>
      <user-name>Mo</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I believe &quot;--domain user&quot; triggers the FileVault installer bug: http://rentzsch.lighthouseapp.com/projects/24342/tickets/96-continue-grayed-out-in-installer</body>
      <body-html>&lt;div&gt;&lt;p&gt;I believe &quot;--domain user&quot; triggers the FileVault installer bug:
&lt;a href=
&quot;http://rentzsch.lighthouseapp.com/projects/24342/tickets/96-continue-grayed-out-in-installer&quot;&gt;
http://rentzsch.lighthouseapp.com/projects/24342/tickets/96-continu...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-11T10:13:19-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-11T10:13:19-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Okay, I figured this one out.  If you've previously installed ClickToFlash as an admin user (i.e.: there is already a receipt for ClickToFlash in /Library/Receipts/), then installing as a non-admin user will succeed.

But if you've never installed ClickToFlash as an admin and there is no existing receipt for it in /Library/Receipts/ (or you've deleted the receipt), then the install will fail.

Argh.  I guess we need yet another workaround.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Okay, I figured this one out. If you've previously installed
ClickToFlash as an admin user (i.e.: there is already a receipt for
ClickToFlash in /Library/Receipts/), then installing as a non-admin
user will succeed.&lt;/p&gt;
&lt;p&gt;But if you've never installed ClickToFlash as an admin and there
is no existing receipt for it in /Library/Receipts/ (or you've
deleted the receipt), then the install will fail.&lt;/p&gt;
&lt;p&gt;Argh. I guess we need yet another workaround.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-11T10:30:44-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>cantreproduce</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-11T10:30:47-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-11T10:31:54-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: cantreproduce
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>accepted</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-11T10:31:55-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Sounds better than 'accepted' Simone, you have a bona-fide reproduction! ;-)</body>
      <body-html>&lt;div&gt;&lt;p&gt;Sounds better than 'accepted' Simone, you have a bona-fide
reproduction! ;-)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-12T03:07:38-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: accepted
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>reproduced</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-12T03:07:41-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>&gt; When installing ClickToFlash, you may receive this error if
&gt; you've installed ClickToFlash before:

&gt; Installer could not install files in /tmp
&gt; This is a known problem with pre-release versions of 1.4 and 1.5.
____________

I can reproduce this bug in 1.4.2

It seems to happen if you have multiple user accounts

The first install was ok, it was under a non-admin account

The problem might occur only if you install under a user account first instead of the administrator account

When the problem occurs, the package &quot;forget&quot; procedure must be repeated for each additional account you want to install on

Generally speaking, to sudo-forget you must be administrator. This is the default behavior of MacOS (instructions on web site do not clarify this)

If possible, ClickToFlash should have an option to &quot;install for all users&quot; and prompt for admin password where appropriate, instead of requiring admin logon
_______

* FYI, I love the UI... this thing is just what I wanted - thanks!</body>
      <body-html>&lt;div&gt;&lt;blockquote&gt;
&lt;p&gt;When installing ClickToFlash, you may receive this error if
you've installed ClickToFlash before:&lt;/p&gt;
&lt;p&gt;Installer could not install files in /tmp This is a known
problem with pre-release versions of 1.4 and 1.5. ____________&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I can reproduce this bug in 1.4.2&lt;/p&gt;
&lt;p&gt;It seems to happen if you have multiple user accounts&lt;/p&gt;
&lt;p&gt;The first install was ok, it was under a non-admin account&lt;/p&gt;
&lt;p&gt;The problem might occur only if you install under a user account
first instead of the administrator account&lt;/p&gt;
&lt;p&gt;When the problem occurs, the package &quot;forget&quot; procedure must be
repeated for each additional account you want to install on&lt;/p&gt;
&lt;p&gt;Generally speaking, to sudo-forget you must be administrator.
This is the default behavior of MacOS (instructions on web site do
not clarify this)&lt;/p&gt;
&lt;p&gt;If possible, ClickToFlash should have an option to &quot;install for
all users&quot; and prompt for admin password where appropriate, instead
of requiring admin logon&lt;br&gt;
_______&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;FYI, I love the UI... this thing is just what I wanted -
thanks!&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-17T15:15:40-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>reproduced</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-17T15:15:44-05:00</updated-at>
      <user-id type="integer">66641</user-id>
      <user-name>me</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Blech, fixed this in my repo.  Non-admin users are now asked for a password if there is no existing receipt.  Unfortunately, due to the way this had to be constructed (two packages with the same content, one which requires admin privs and one not), if you're a non-admin user and there's no receipt, installing w/admin privs will not create the correct receipt, so you'll still have to put in a password the next time you install.

But, yeah, this is an acceptable fix, since it should allow anybody to install as long as they have a username/password.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Blech, fixed this in my repo. Non-admin users are now asked for
a password if there is no existing receipt. Unfortunately, due to
the way this had to be constructed (two packages with the same
content, one which requires admin privs and one not), if you're a
non-admin user and there's no receipt, installing w/admin privs
will not create the correct receipt, so you'll still have to put in
a password the next time you install.&lt;/p&gt;
&lt;p&gt;But, yeah, this is an acceptable fix, since it should allow
anybody to install as long as they have a username/password.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-22T19:59:50-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>reproduced</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-22T19:59:50-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-23T14:41:07-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: reproduced
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>fixcommitted</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-23T14:41:07-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>This is broken for me circa &lt;http://github.com/rentzsch/clicktoflash/commit/e84a62ad4ef5f4599d5b03b78fb21328944745ee&gt; on Mac OS X 10.5.8.

`8/25/09 2:31:19 AM [0x0-0x285285].com.apple.installer[18931] Notice There is a receipt, no admin privs required for installer pkg.` gets repeated around 200 times. First time through the installation also completely deadlocked.

ClickToFlash is installed without correct permissions:

@@@
wolf-mbp:~ wolf$ cd ~/Library/Internet\ Plug-Ins/
wolf-mbp:Internet Plug-Ins wolf$ ls -l
total 0
drw-rw-r--  3 wolf  admin  102 Aug 25 02:30 ClickToFlash.webplugin
drwxr-xr-x@ 3 wolf  staff  102 Mar 10 23:37 XML View Plugin.webplugin
@@@

Even though I'm the owner, the executable flag isn't set on the ClickToFlash.webplugin directory, denying enumeration of the bundle's contents. This disables the plugin from loading at all.</body>
      <body-html>&lt;div&gt;&lt;p&gt;This is broken for me circa &lt;a href=
&quot;http://github.com/rentzsch/clicktoflash/commit/e84a62ad4ef5f4599d5b03b78fb21328944745ee&quot;&gt;
http://github.com/rentzsch/clicktoflash/commit/e84a62ad4ef5f4599d5b03b78fb21328944745ee&lt;/a&gt;
on Mac OS X 10.5.8.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;8/25/09 2:31:19 AM
[0x0-0x285285].com.apple.installer[18931] Notice There is a
receipt, no admin privs required for installer pkg.&lt;/code&gt; gets
repeated around 200 times. First time through the installation also
completely deadlocked.&lt;/p&gt;
&lt;p&gt;ClickToFlash is installed without correct permissions:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;wolf-mbp:~ wolf$ cd ~/Library/Internet\ Plug-Ins/
wolf-mbp:Internet Plug-Ins wolf$ ls -l
total 0
drw-rw-r--  3 wolf  admin  102 Aug 25 02:30 ClickToFlash.webplugin
drwxr-xr-x@ 3 wolf  staff  102 Mar 10 23:37 XML View Plugin.webplugin&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;Even though I'm the owner, the executable flag isn't set on the
ClickToFlash.webplugin directory, denying enumeration of the
bundle's contents. This disables the plugin from loading at
all.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-25T02:40:07-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>fixcommitted</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T02:41:02-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hrm.  Kick out that commit, then.  I thought I was fixing an issue where ClickToFlash was installed to /tmp with incorrect permissions, but maybe I'm just creating more problems?

In any case, though, it works on my comp with ClickToFlash.webplugin having 664 privs.  I specifically set the executable bit on the actual executable files in the postflight script.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hrm. Kick out that commit, then. I thought I was fixing an issue
where ClickToFlash was installed to /tmp with incorrect
permissions, but maybe I'm just creating more problems?&lt;/p&gt;
&lt;p&gt;In any case, though, it works on my comp with
ClickToFlash.webplugin having 664 privs. I specifically set the
executable bit on the actual executable files in the postflight
script.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-25T02:45:16-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>fixcommitted</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T02:45:18-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>lsbom tells me the permissions in the actual package are fine. Smells like the postflight script is doing something not quite right.</body>
      <body-html>&lt;div&gt;&lt;p&gt;lsbom tells me the permissions in the actual package are fine.
Smells like the postflight script is doing something not quite
right.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-25T02:49:44-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>fixcommitted</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T02:49:48-05:00</updated-at>
      <user-id type="integer">33126</user-id>
      <user-name>Mo</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-25T02:50:46-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:milestone: 
</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>fixcommitted</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T02:50:51-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-25T02:51:03-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: fixcommitted
</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>reproduced</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T02:51:07-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Yeah, eliminating the postflight permissions changing (not the chowning, though) causes things to work right again.  So we need to 775 the directory too?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Yeah, eliminating the postflight permissions changing (not the
chowning, though) causes things to work right again. So we need to
775 the directory too?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-25T02:55:21-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>reproduced</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T02:55:24-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Mo's latest commit &lt;http://github.com/rentzsch/clicktoflash/commit/3c2b3ac31ef89c7b91702f5ee6f1a9e7038c5f6e&gt; does indeed fix the wrong-permissions on my end. Still logging 92 'There is a receipt, no admin privs required for installer pkg.' messages, though. It that script being executed X times for each mounted disk or something? (I have 5 mounted volumes.)</body>
      <body-html>&lt;div&gt;&lt;p&gt;Mo's latest commit &lt;a href=
&quot;http://github.com/rentzsch/clicktoflash/commit/3c2b3ac31ef89c7b91702f5ee6f1a9e7038c5f6e&quot;&gt;
http://github.com/rentzsch/clicktoflash/commit/3c2b3ac31ef89c7b91702f5ee6f1a9e7038c5f6e&lt;/a&gt;
does indeed fix the wrong-permissions on my end. Still logging 92
'There is a receipt, no admin privs required for installer pkg.'
messages, though. It that script being executed X times for each
mounted disk or something? (I have 5 mounted volumes.)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-25T03:11:31-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>reproduced</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T03:11:32-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I dunno.  I saw that message being duplicated, but honestly, I just ignored it.  But maybe it's a symptom of the deadlock?  I only have one mounted volume and it shows up about 16 times for me.

Fucking fuck I hate Apple's installer technology.

We can comment out the echo lines to suppress that, but if it truly is running that script ~16 times for each volume, then maybe something else is wrong?  Sigh.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I dunno. I saw that message being duplicated, but honestly, I
just ignored it. But maybe it's a symptom of the deadlock? I only
have one mounted volume and it shows up about 16 times for me.&lt;/p&gt;
&lt;p&gt;Fucking fuck I hate Apple's installer technology.&lt;/p&gt;
&lt;p&gt;We can comment out the echo lines to suppress that, but if it
truly is running that script ~16 times for each volume, then maybe
something else is wrong? Sigh.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-25T03:15:33-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>reproduced</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-25T03:15:36-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>&lt;http://github.com/rentzsch/clicktoflash/commit/96f78edb130f0b8d10149b9d0c053c9c6c9e5b43&gt;</body>
      <body-html>&lt;div&gt;&lt;p&gt;&lt;a href=
&quot;http://github.com/rentzsch/clicktoflash/commit/96f78edb130f0b8d10149b9d0c053c9c6c9e5b43&quot;&gt;
http://github.com/rentzsch/clicktoflash/commit/96f78edb130f0b8d10149b9d0c053c9c6c9e5b43&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T17:15:22-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: reproduced
</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>fixcommitted</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T17:15:25-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Fix released in 1.5fc1.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Fix released in 1.5fc1.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T18:19:08-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: fixcommitted
</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>fixreleased</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T18:19:10-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>@simX has a repro on the installation deadlock I saw. It's nasty: can't even get a real stack trace with sample, Shark or gdb.

I say back out this .mpkg fix, go back to less-broken .pkg, and simply document the 10.4+10.5 installer bug and that you have to issue some magic terminal command to install ClickToFlash on a nonadmin account after installing on to an admin account (10.6 seems to fix this bug).

Maybe one day we'll figure out how to make an installer package that dodges all of Apple's bugs. But I don't want to hold up 1.5 for it.</body>
      <body-html>&lt;div&gt;&lt;p&gt;@simX has a repro on the installation deadlock I saw. It's
nasty: can't even get a real stack trace with sample, Shark or
gdb.&lt;/p&gt;
&lt;p&gt;I say back out this .mpkg fix, go back to less-broken .pkg, and
simply document the 10.4+10.5 installer bug and that you have to
issue some magic terminal command to install ClickToFlash on a
nonadmin account after installing on to an admin account (10.6
seems to fix this bug).&lt;/p&gt;
&lt;p&gt;Maybe one day we'll figure out how to make an installer package
that dodges all of Apple's bugs. But I don't want to hold up 1.5
for it.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:23:31-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:state: fixreleased
</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:23:36-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>@rentzsch: You've got it a bit backwards.  You *can* install on a non-admin account after you've *already* installed it on an admin account.  But if you *haven't* yet installed it on an admin account, you *cannot* install it on a non-admin account.

So it's kind of worse, because it presents a bad install the first time a non-admin user tries to install it.  And there's not really a magical Terminal incantation that'll fix it (unless creating a dummy 0 KB file named com.github.rentzsch.clicktoflash.pkg in the Receipts folder is enough).

At this point, I think I would recommend requiring a password on all installs even though it's not necessary for admin users.  I dunno, I'd prefer all users actually being able to install it.

The other possibility is exploring whether using the legacy InstallationCheck files for .mpkg installers still works on 10.4 and 10.5 and whether that would avoid the deadlock issue...</body>
      <body-html>&lt;div&gt;&lt;p&gt;@rentzsch: You've got it a bit backwards. You &lt;em&gt;can&lt;/em&gt;
install on a non-admin account after you've &lt;em&gt;already&lt;/em&gt;
installed it on an admin account. But if you &lt;em&gt;haven't&lt;/em&gt; yet
installed it on an admin account, you &lt;em&gt;cannot&lt;/em&gt; install it on
a non-admin account.&lt;/p&gt;
&lt;p&gt;So it's kind of worse, because it presents a bad install the
first time a non-admin user tries to install it. And there's not
really a magical Terminal incantation that'll fix it (unless
creating a dummy 0 KB file named
com.github.rentzsch.clicktoflash.pkg in the Receipts folder is
enough).&lt;/p&gt;
&lt;p&gt;At this point, I think I would recommend requiring a password on
all installs even though it's not necessary for admin users. I
dunno, I'd prefer all users actually being able to install it.&lt;/p&gt;
&lt;p&gt;The other possibility is exploring whether using the legacy
InstallationCheck files for .mpkg installers still works on 10.4
and 10.5 and whether that would avoid the deadlock issue...&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:32:03-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:32:08-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>@simX: thanks for the correction.

I say since it took us this long to discover this bug, most of our users are admin accounts or install first on an admin account.

I'm against requiring a password because it makes ClickToFlash look like it's doing something insidious.

I'm willing to sacrifice a seamless first-time-nonadmin experience on 10.4+10.5 to maintain our &quot;harmless&quot; appearance for the majority of our users.

Besides, this is all fixed in 10.6, so this issue will eventually dissipate (or at least lessen) by itself.</body>
      <body-html>&lt;div&gt;&lt;p&gt;@simX: thanks for the correction.&lt;/p&gt;
&lt;p&gt;I say since it took us this long to discover this bug, most of
our users are admin accounts or install first on an admin
account.&lt;/p&gt;
&lt;p&gt;I'm against requiring a password because it makes ClickToFlash
look like it's doing something insidious.&lt;/p&gt;
&lt;p&gt;I'm willing to sacrifice a seamless first-time-nonadmin
experience on 10.4+10.5 to maintain our &quot;harmless&quot; appearance for
the majority of our users.&lt;/p&gt;
&lt;p&gt;Besides, this is all fixed in 10.6, so this issue will
eventually dissipate (or at least lessen) by itself.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:37:14-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:39:33-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Yeah, I agree, I don't like requiring a password.

Lemme see if creating that dummy file is enough to satisfy our old installer.  If so, then we'll go that route and have YET ANOTHER Terminal incantation for fixing the installer.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Yeah, I agree, I don't like requiring a password.&lt;/p&gt;
&lt;p&gt;Lemme see if creating that dummy file is enough to satisfy our
old installer. If so, then we'll go that route and have YET ANOTHER
Terminal incantation for fixing the installer.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:39:25-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:39:35-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>FWIW, this problem *won't* dissipate until we drop *10.5* support. :\  So it'll be quite a while.

Unless we want separate packages for each OS version...</body>
      <body-html>&lt;div&gt;&lt;p&gt;FWIW, this problem &lt;em&gt;won't&lt;/em&gt; dissipate until we drop
&lt;em&gt;10.5&lt;/em&gt; support. :\ So it'll be quite a while.&lt;/p&gt;
&lt;p&gt;Unless we want separate packages for each OS version...&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:41:37-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">33492</milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:41:39-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title>1.5</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">45213</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>simX: it's funny how having our own custom installer is totally the actual way to solve this, however folks are more comfortable with an Apple-style .pkg. They think it's higher-quality and safer, when in fact both are incorrect.</body>
      <body-html>&lt;div&gt;&lt;p&gt;simX: it's funny how having our own custom installer is totally
the actual way to solve this, however folks are more comfortable
with an Apple-style .pkg. They think it's higher-quality and safer,
when in fact both are incorrect.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:42:03-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:milestone: 33492
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:42:05-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name>rentzsch</assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:42:09-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- 
:assigned_user: 45213
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:42:10-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>@rentzsch: Lol.  How true.

So, good news is, since the Installer is so bitchy, it thinks a 0 KB file named &quot;ClickToFlash.pkg&quot; in the receipts folder is good enough.

So, yeah, revert to the old .pkg, and we have a magical Terminal incantation for non-admin users who haven't installed on an admin user before.</body>
      <body-html>&lt;div&gt;&lt;p&gt;@rentzsch: Lol. How true.&lt;/p&gt;
&lt;p&gt;So, good news is, since the Installer is so bitchy, it thinks a
0 KB file named &quot;ClickToFlash.pkg&quot; in the receipts folder is good
enough.&lt;/p&gt;
&lt;p&gt;So, yeah, revert to the old .pkg, and we have a magical Terminal
incantation for non-admin users who haven't installed on an admin
user before.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:46:54-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:46:58-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>(FWIW, the Terminal incantation is:

@@@
su admin_user_name
@@@

type in password, press return, then:

@@@
sudo touch /Library/Receipts/ClickToFlash.pkg
@@@</body>
      <body-html>&lt;div&gt;&lt;p&gt;(FWIW, the Terminal incantation is:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;su admin_user_name&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;type in password, press return, then:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;sudo touch /Library/Receipts/ClickToFlash.pkg&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-27T19:47:48-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-27T19:47:51-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>It appears that command can be reduced to

@@@
su wolf -c 'touch /Library/Receipts/ClickToFlash.pkg'
@@@

Replacing `wolf` with an admin user name, naturally.</body>
      <body-html>&lt;div&gt;&lt;p&gt;It appears that command can be reduced to&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;su wolf -c 'touch /Library/Receipts/ClickToFlash.pkg'&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;Replacing &lt;code&gt;wolf&lt;/code&gt; with an admin user name,
naturally.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-28T00:28:34-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-28T00:28:36-05:00</updated-at>
      <user-id type="integer">45213</user-id>
      <user-name>rentzsch</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I found an application called SafariCookies which uses the PKG installer.  Like ClickToFlash it extends Safari functionality but the install method is slightly different.  I just thought it might be worth looking at for various reasons.

http://sweetpproductions.com/safaricookies/index.htm
_______________

The author sets a nice example here by detailing what the installer is going to do right inside the installer dialog:


&#8226; Safari Cookies installs a folder into your Inputmanagers folder, located at /Library/InputManagers/

&#8226; Favorites are saved to the file ~/Library/Application Support/Favorites.plist

&#8226; All of Safari Cookies preferences are stored in Safari's preference file ~/Library/Preferences/com.apple.Safari.plist (with the prefix &quot;SC&quot;)

&#8226; If logging is enabled, a log file will be created in the user folder ~/Library/Logs/

&#8226; An uninstaller is included in the Safari Cookies preference pane, which will delete all traces of Safari Cookies - should the need arise
_______________

Under &quot;Installation Type&quot; in the installer dialog, it says:

&quot;Click Install to perform a standard installation of this software for all users of the computer.&quot;


When this occurs under a non-admin account, the user is prompted for administrator name and password.  When installation occurs under the admin account, it only prompts for the password.  At this point it should be obvious that the password is required because you are installing for all users.  But that seems like an acceptable solution to me.

Maybe this method will not work the same way on 10.4 -- but maybe just fine on 10.5 or later.  I wonder, is it really necessary to have a single installer that supports 10.4 through 10.6 ?  It just seems like asking for a password is preferable to asking the user to do stuff in terminal, if possible.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I found an application called SafariCookies which uses the PKG
installer. Like ClickToFlash it extends Safari functionality but
the install method is slightly different. I just thought it might
be worth looking at for various reasons.&lt;/p&gt;
&lt;p&gt;&lt;a href=
&quot;http://sweetpproductions.com/safaricookies/index.htm&quot;&gt;http://sweetpproductions.com/safaricookies/index.htm&lt;/a&gt;&lt;br&gt;
_______________&lt;/p&gt;
&lt;p&gt;The author sets a nice example here by detailing what the
installer is going to do right inside the installer dialog:&lt;/p&gt;
&lt;p&gt;&amp;#8226; Safari Cookies installs a folder into your Inputmanagers
folder, located at /Library/InputManagers/&lt;/p&gt;
&lt;p&gt;&amp;#8226; Favorites are saved to the file ~/Library/Application
Support/Favorites.plist&lt;/p&gt;
&lt;p&gt;&amp;#8226; All of Safari Cookies preferences are stored in Safari's
preference file ~/Library/Preferences/com.apple.Safari.plist (with
the prefix &quot;SC&quot;)&lt;/p&gt;
&lt;p&gt;&amp;#8226; If logging is enabled, a log file will be created in the
user folder ~/Library/Logs/&lt;/p&gt;
&lt;p&gt;&amp;#8226; An uninstaller is included in the Safari Cookies
preference pane, which will delete all traces of Safari Cookies -
should the need arise&lt;br&gt;
_______________&lt;/p&gt;
&lt;p&gt;Under &quot;Installation Type&quot; in the installer dialog, it says:&lt;/p&gt;
&lt;p&gt;&quot;Click Install to perform a standard installation of this
software for all users of the computer.&quot;&lt;/p&gt;
&lt;p&gt;When this occurs under a non-admin account, the user is prompted
for administrator name and password. When installation occurs under
the admin account, it only prompts for the password. At this point
it should be obvious that the password is required because you are
installing for all users. But that seems like an acceptable
solution to me.&lt;/p&gt;
&lt;p&gt;Maybe this method will not work the same way on 10.4 -- but
maybe just fine on 10.5 or later. I wonder, is it really necessary
to have a single installer that supports 10.4 through 10.6 ? It
just seems like asking for a password is preferable to asking the
user to do stuff in terminal, if possible.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-30T00:49:38-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-30T00:49:43-05:00</updated-at>
      <user-id type="integer">66641</user-id>
      <user-name>me</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Requiring a password for the majority of cases is a non-starter.  We don't want ClickToFlash to look like it's mucking stuff up.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Requiring a password for the majority of cases is a non-starter.
We don't want ClickToFlash to look like it's mucking stuff up.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-30T00:52:45-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-30T00:52:49-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I dont think even the typical Mac user is going to be scared by a password request, especially if the installer dialog tells them why it happens.  If they have chosen to install the app, they have already chosen to trust it.  Most disk utility programs ask for a password too, even when they are launched under the admin account.  I have never seen users complain about this.  Just my opinion, but if you are concerned with appearances, it looks even worse when they have to use terminal to complete the install.

No offense guys, but like Steve Jobs said, genius is next to insanity

;)</body>
      <body-html>&lt;div&gt;&lt;p&gt;I dont think even the typical Mac user is going to be scared by
a password request, especially if the installer dialog tells them
why it happens. If they have chosen to install the app, they have
already chosen to trust it. Most disk utility programs ask for a
password too, even when they are launched under the admin account.
I have never seen users complain about this. Just my opinion, but
if you are concerned with appearances, it looks even worse when
they have to use terminal to complete the install.&lt;/p&gt;
&lt;p&gt;No offense guys, but like Steve Jobs said, genius is next to
insanity&lt;/p&gt;
&lt;p&gt;;)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-30T01:38:27-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-30T01:38:30-05:00</updated-at>
      <user-id type="integer">66641</user-id>
      <user-name>me</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>You're welcome to fork the project and create your own installer. :rolleyes: :P</body>
      <body-html>&lt;div&gt;&lt;p&gt;You're welcome to fork the project and create your own
installer. :rolleyes: :P&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-30T02:18:09-05:00</created-at>
      <creator-id type="integer">58490</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">214</number>
      <permalink>installer-package-does-not-work-when-ran-under-non-admin-user</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">24342</project-id>
      <state>bluesky</state>
      <tag>1.5b5 broken install installer non-admin permission pkg privilege receipt</tag>
      <title>Installer package does not work when ran under non-admin user</title>
      <updated-at type="datetime">2009-08-30T13:47:26-05:00</updated-at>
      <user-id type="integer">47272</user-id>
      <user-name>simX</user-name>
      <creator-name>someone</creator-name>
      <url>http://rentzsch.lighthouseapp.com/projects/24342/tickets/214</url>
      <assigned-user-name nil="true"></assigned-user-name>
      <milestone-title nil="true"></milestone-title>
    </version>
  </versions>
</ticket>
