Hi,

I have a program written in ruby which i'm trying to get installed on osx. Currently I have a running installer, which creates upon installation a regular directory in the /Applications directory. I was wondering if and how could I instead have it created as an .app, and have the code/some of the code inside of it signed. At the moment only the packed code within the installer file is signed, but gets unsigned upon unpacking and installing.

Thanks.

asked 17 Feb '16, 07:21

Poster's gravatar image

Poster
16557
accept rate: 0%


You would need to structure your application as an.app bundle and make InstallBuilder pack it as single file. Then use /Applications as <installdir>. Regarding the signature, you would also need to sign it separately before building the installer. You may also be interested on disable the uninstaller creation by setting the project property <createUninstaller> to 0:

 <project>
    ...
    <createUninstaller>0</createUninstaller>
    ...
  </project>
link

answered 18 Feb '16, 11:25

alejandror's gravatar image

alejandror ♦♦
1.3k127
accept rate: 31%

hmm, ok.. did that, but i still want to be able to uninstall it properly. how would i do that?

(23 Feb '16, 06:13) Poster

or alternatively, how can i still have it create an uninstaller file for windows but not for osx? as out of necessity i'm going to just use a shell script as a makeshift uninstaller

will the "Post-Uninstaller Creation Actions" section be executed if i tell it not to create an uninstaller? (might've found an ugly solution in the form of creating a variable equals to 1/0 with a platform check rule, and then assigning that value to the <createuninstaller> tag, but have logic in Post-Uninstaller which i don't want to move).

(24 Feb '16, 09:52) Poster

Most of the applications installed under /Applications does not have an uninstaller, they are just copied or removed from there in order to install or uninstall them. Please note that modifying the contents of the .app bundle would likely make any possible signature invalid.

In case you still want to create an uninstaller, let the suggested setting enabled and change the value of the property <uninstallerDirectory> to the location where you want it to be created. Would that work for you?

(26 Feb '16, 08:48) jesus ♦♦

didn't seem to have worked.. nothing was created

(28 Feb '16, 04:37) Poster

Please note that you would need to both remove the line that disables the uninstaller creation and changing the <uninstallerDirectory> property. Could you confirm this is the case?

(01 Mar '16, 06:10) alejandror ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×130
×20
×8

Asked: 17 Feb '16, 07:21

Seen: 557 times

Last updated: 01 Mar '16, 06:10