Author Topic: NSIS Publisher - SCI Companion's First Plugin  (Read 8283 times)

0 Members and 1 Guest are viewing this topic.

Offline Collector

NSIS Publisher - SCI Companion's First Plugin
« on: February 21, 2016, 01:31:27 AM »
Here is the first public release of NSIS Publisher, a plugin for SCI Companion. It will automatically generate an NSIS installer script for your game and compile it. You can use this installer to distribute you game. It comes complete with DOSBox and will automatically configure that game to run in it.

To set it up, unpack it into a folder under SCI Companion's 'Plugins' folder. Once you have done that you will see three new items under SCI Companion's 'Plugins' folder -- 'Edit Readme', 'Publish' and 'NSIS Publisher'. 'Edit Readme' will give you quick assess to open and edit the Readme file that will be distributed with your game. 'Publish' will generate your installer. The 'NSIS Publisher' item will open Publisher without creating a script. This will let you change any default setting or customize/correct your script.

The first time you open companion it will open the options dialog to set your preferences for defaults. You can change any of these later by opening Publisher and select 'Tools' > 'Options'.

http://sciwiki.sierrahelp.com//index.php?title=NSIS_Publisher


KQII Remake Pic

Offline aardvark4lunch

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #1 on: February 22, 2016, 04:39:35 AM »
Great work. Can see myself using this real soon.

Offline gumby

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #2 on: December 20, 2017, 09:05:43 AM »
Thanks for this Collector.  I ran into a couple of issues that I couldn't resolve. I'm running NSIS 3.02.1 on Windows 10.

1) On line 40, !include "un.MoveFileFolder.nsh", I couldn't get this working.  I manually downloaded MoveFileFolder.nsh, and my understanding is that by prepending the 'un.' means it's used in the uninstall process, but I was never able to get it work.
2) Line 288, Function onGUIInit, it's not able to resolve Aero::Apply.  I saw that dlls are included in your install, but the script couldn't find them.  I tried downloading the Aero plugin from NSIS but it didn't seem to make a difference.

Ultimately, I was able to work around these by commenting out the Aero::Apply call and commenting out lines 297-305 (resulting in save games are lost during an uninstall).

In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #3 on: December 20, 2017, 10:57:46 AM »
That is odd. the two are unrelated. It might be more of a matter that the wrong point of failure is being IDed. The un.MoveFileFolder.nsh header is for keeping the save games on uninstall. That said, 3.02.1 is a newer release than what was available when I wrote the plugin. Version 3 was a big change in NSIS. It introduces Unicode support and an x64 compiler. This broke a lot of the old macros and plugins and probably broke something in MoveFileFolder. It may have broke the Aero plugin as well.

I'll have to download this version and take a look.
KQII Remake Pic

Offline Collector

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #4 on: December 20, 2017, 11:46:08 AM »
I grabbed 3.02.1 and had no issue with it. Extract this zip into the NSIS Include directory. If there is still an issue with the Aero plugin it may be more of a Win10 issue.
KQII Remake Pic

Offline gumby

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #5 on: December 20, 2017, 07:53:27 PM »
The un.MoveFileFolder.nsh fixed the issue with the uninstall code breaking.  Still have the issue with Aero, but I can live with that.  Thanks again.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #6 on: December 21, 2017, 09:28:38 AM »
When I get a chance I'll add the NSH to the Publisher zip on the Wiki.

You did drop the "Plugins" fold3er in your NSIS installed folder, didn't you? If you did and still have the problem I'll have to boot into Win10 to explore the Aero problem. It won't matter for Win10 users since Aero is no longer a part of the GUI. I guess I could add a macro to the script templates to detect 10 and bypass the Aero function on 10.
KQII Remake Pic

Offline gumby

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #7 on: December 21, 2017, 07:28:51 PM »
Yeah, I unzipped the NSIS_Publisher_1.1.0.0 into the Companion "Plugin" folder.  Is that what you meant or did I miss some step?
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #8 on: December 22, 2017, 10:14:29 AM »
I was talking about the NSIS plugin folder. Merge the "Plugins" subfolder from the zip with the NSIS Plugins subfolder.
KQII Remake Pic

Offline gumby

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #9 on: December 22, 2017, 03:20:36 PM »
Ah.  Yep, that fixed the problem with the Aero plugin reference - thanks.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: NSIS Publisher - SCI Companion's First Plugin
« Reply #10 on: January 14, 2018, 08:57:00 PM »
Finally got around to updating the download and the Wiki page to add the macro (NSH) and more clear instructions in the readme and Wiki.
KQII Remake Pic


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.036 seconds with 22 queries.