You are here

** Solved*** Plugin INstaller

15 posts / 0 new
Last post
vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
** Solved*** Plugin INstaller
6. Plugin Installers

In addition to standard installers, the PortableApps.com Installer can be used for plugin installers to add files to a portable app. This is accomplished via a file called plugininstaller.ini within the Other\Source directory. This file can contain all of the entries within the appinfo.ini and installer.ini files described above combined into a single file. One addition to the file is within the [Details] section where an entry called PluginName= is made. This should be the name of the plugin, for example: Adobe Flash for Firefox Portable. The [MainDirectories] removal options all default to false for plugin installers. If an EULA is needed for the plugin, instead of EULA.txt or EULA.rtf, the files PluginEULA.txt or PluginEULA.rtf should be used.

To create a plugin installer, create a directory layout similar to the portable app that the plugin is used with including the App, App\AppName, Data, Other, etc directories. Then place only the files to be included in the plugin installer in their appropriate location. The App\AppInfo directory should be empty as it is used only by the main app. Any custom code should be in a file called PortableApps.comInstallerPluginCustom.nsh. Finally, create a file plugininstaller.ini with the entries that would normally be in appinfo.ini and installer.ini above and compile as normal.

OK i am so way confused with this, I copied it from the PA Installer Format. I am trying to create an installer to install additional addons to a program. So I set up the folder as described, created my plugininstaller.ini file ( I think) and tried to run the installer. I keep getting an error message that says I must create a valid portable app's base directory to create an installer for.

I have no idea what that means? Also The part about compile as normal, does that mean I need to recompile the PA installer?

prapper
Offline
Last seen: 3 years 1 month ago
Developer
Joined: 2008-01-24 17:01
Plugins

You need to set up a separate directory for your plugin installer and, if it's online, you only need one file:

PluginPortable
    |_Other
        |_Source
            |_plugininstaller.ini

Fill in the details in plugininstaller.ini as if it was appinfo.ini and include PluginName. For example:

[Format]
Type=PortableApps.comFormat
Version=1.0

[Details]
Name=LAME
PluginName=LAME for REAPER Portable
AppId=REAPERPortable
Publisher=LAME Team & PortableApps.com
Homepage=portableapps.com/apps/music_video/reaper_portable
Category=Music & Video
Description=LAME for REAPER Portable.
Language=English

[License]
Shareable=true
OpenSource=true
Freeware=true
CommercialUse=true

[Version]
PackageVersion=3.98.4.0
DisplayVersion=3.98.4 Development Test 1

[Control]
Start=REAPERPortable.exe

[DownloadFiles]
DownloadURL=http://audio.ciara.us/rarewares/lame3.98.4.zip
DownloadName=LAME
DownloadFilename=lame3.98.4.zip
DownloadMD5=03a57127ed6fd97cf066dc585e68f242
AdditionalInstallSize=496
Extract1To=App\REAPER
Extract1File=lame_enc.dll

If you're including the files, leave out the [DownloadFiles] section and create a directory structure similar to this:

PluginPortable
    |_App
    |   |_AppName
    |       |_dir_with_plugins (or wherever they are for the app)
    |_Other
        |_Source
            |_plugininstaller.ini

To finish, just run the installer on the PluginPortable directory.

Hope that helps.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
I did that I think

Thought i did that but will double check, Should the root directory name match the root directory of the original program?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

prapper
Offline
Last seen: 3 years 1 month ago
Developer
Joined: 2008-01-24 17:01
No

You can call it whatever you like.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
Same redults

same error message?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

prapper
Offline
Last seen: 3 years 1 month ago
Developer
Joined: 2008-01-24 17:01
You're running the PA.c

You're running the PA.c Installer on PluginPortable the same way you would on AppNamePortable? If so, I'm not sure what could be going wrong.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
getting closer

ok I guess pluginstaller.ini is vry different then plugininstaller.ini that was first problem now an error message about

Error: Can't open language file - "K:\PortableApps\PortableApps.comInstaller\App\nsis\Contrib\Language files\Englih.nlf"!
Error in macro MUI_LANGUAGE on macroline 9
Error in script "C:\Documents and Settings\Compaq_Owner\Desktop\LBreakout2Portable\Other\Source\PortableApps.comInstallerPlugin.nsi" on line 155 -- aborting creation process

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

prapper
Offline
Last seen: 3 years 1 month ago
Developer
Joined: 2008-01-24 17:01
You spelt English wrong!

You spelt English wrong!

Should be -

Language=English

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
yup just noticed sorry

was jsut about to edit the last one and tell you I got it but you type faster than me lol one more time thanks BTW

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
I think I have it figured out

OK got the package packaged, now testing it out many many thanks

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

prapper
Offline
Last seen: 3 years 1 month ago
Developer
Joined: 2008-01-24 17:01
No problem

Smile

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
One last question

For add ons do I need a development splash screen?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

prapper
Offline
Last seen: 3 years 1 month ago
Developer
Joined: 2008-01-24 17:01
No, there's no app to launch,

No, there's no app to launch, the installer is just adding files.

RunningNerd
Offline
Last seen: 12 years 10 months ago
Joined: 2011-04-28 14:48
Is it posible to extract an

Is it posible to extract an exe located in an zip file?
How do i make this?

depp.jones
Offline
Last seen: 1 day 20 hours ago
DeveloperTranslator
Joined: 2010-06-05 17:19
Please read the example in

Please read the example in the first post. The last lines of prappers plugininstaller.ini should cover the solution for your problem. Whether it's a dll or exe doesn't matter, same syntax.

Log in or register to post comments