• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Payware Installer Malfuction; ClickTeam

Messages
10,163
Country
us-arizona
Hey all,

I found this 'chilling'.

A customer sends me an email stating he needs a code to open my payware plane (Epic LT). I tell him there are no codes. He sends me screenshots, and sure enough, ClickTeam Install Creator Pro is telling him that the Installer is expired and he needs the code to open the Installer...

?

Anyone else have this happen before? It says it was a temporary trial offer Installer. I have paid for this, its all set.

This has happened once before. I contacted ClickTeam in Paris and they said it shouldnt be doing this. I can only imagine perhaps its a Windows security 'thing'?

I ran the same file he downloaded and it runs fine, no popups like this...



Bill
 
I use the same program and, up to now, I've never had such an issue. I have pondered using the integrated registration feature but have yet to do so.

Wonder if a portion of your registry might be corrupted causing this? Maybe reinstalling the program will fix it? Could be also caused by a Microsoft update, much like a few times I recall from the past where an update wreaked havoc with various programs.

I just "rebuilt" this PC and finally moved to Win7. I'm hoping all the programs I've used in the past have no Win7 issues...
 
That's precisely why I discarded ClickTeam and started using the Open Source installer wrapper that most of the big names (such as Adobe) use!

nullsoft scriptable install system
http://nsis.sourceforge.net/Developer_Center

For the GUI and Editor I use:

HM NIS EDIT: A Free NSIS Editor/IDE
http://hmne.sourceforge.net/

It only takes a few minutes to set up a basic "install folder" and edit the installer script for a "generic" build. When it's time to wrap up a new project, I only need to copy/paste the folders and files I need into the "install folder", make minor edits to the script, and bada-bing-bada-boom!

Here's an excerpt from one of my scripts. There are two essential statements:

SetOutPath "xxxx" // this is the folder on the user's hard drive where I want the file to go. "$INSTDIR" is the path to FSX that the Registry has recorded.

File "xxxxxx" // this is the path to where the project's files are within the install build folder.

Note especially that I do NOT have to list all the filenames! I simply use *.* to mean every file in that folder. :D

Code:
Section "MainSection" SEC01
  SetOutPath "$INSTDIR"
  SetOverwrite ifnewer
  File "P:\T-38A Build Folder\GaugeSound.dll"
  
 SetOutPath "$INSTDIR\Fonts"
 File "P:\T-38A Build Folder\Fonts\*.*"

 SetOutPath "$INSTDIR\Gauges"
 File "P:\T-38A Build Folder\Gauges\*.*"

SectionEnd

Section -Post
SectionEnd

I'd be happy to share my "generic installer script" with anyone who want's to give it a whirl!

BTW, I very strongly suspect that this is pretty much what ClickTeam is using as the "engine" for their installer, since the source code is Open Source. In any event, what the user see's is pretty much identical to ClickTeam's GUI... ;)
 
Last edited:
I'd be happy to share my "generic installer script" with anyone who want's to give it a whirl!

Bill, I'd be interested in having a look. I did play around with the nullsoft install system a few years ago but never quite got beyond dumping all the files in a specific place (e.g.you had to have FSX installed in the default location for a 32 bit machine!!).
 
Bill, I'd be interested in having a look. I did play around with the nullsoft install system a few years ago but never quite got beyond dumping all the files in a specific place (e.g.you had to have FSX installed in the default location for a 32 bit machine!!).

This is a generic script to compile an installer for an FSX project. Actual script commands are in black, comments are in green.
; Comments are in green and use the semi-colon for a flag.

The first step is to create an installer build folder. Here is an example:
Directory of P:\GenericInstaller

My_License.txt
GaugeSound.dll
GenericInstaller.nsi
<DIR> Effects
<DIR> Fonts
<DIR> Gauges
<DIR> Modules
<DIR> SimObjects
<DIR> Sound

; HM NIS helper defines
!define PRODUCT_NAME "My Shiny New Airplane"
!define PRODUCT_VERSION "v1.xxx"
!define PRODUCT_PUBLISHER "Fr. Bill Gauge Studio"
!define PRODUCT_WEB_SITE "http://www.SomeWebsite.com"

SetCompressor lzma

; MUI 1.67 compatible ------
!include "MUI2.nsh"

; MUI Settings
;Request application privileges for Windows Vista

RequestExecutionLevel admin

;--------------------------------
;Interface Settings


!define MUI_ABORTWARNING

;--------------------------------
;Pages
; IF I HAVE A EULA I WANT DISPLAYED FOR THE USER TO "ACCEPT" IT IS NAMED HERE!

!insertmacro MUI_PAGE_LICENSE "My_License.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

;--------------------------------
;Languages


!insertmacro MUI_LANGUAGE "English"
; MUI end ------

; READ THE REGISTRY TO FIND THE INSTALLATION PATH FOR FSX!


InstallDirRegKey HKLM "Software\Microsoft\Microsoft Games\flight simulator\10.0" SetupPath

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"

; PLACE THE NAME YOU WANT FOR THE EXECUTABLE BETWEEN THE QUOTE MARKS!
OutFile "MyShinyNewAirplane_v1.xxx.exe"

; SET THE DEFAULT PATH TO USE IN CASE THE REGISTRY ENTRY CANNOT BE FOUND!
InstallDir "$PROGRAMFILES\Microsoft Games\Microsoft Flight Simulator X\"
ShowInstDetails hide

; CREATE AN EMPTY FOLDER FOR EVERY POSSIBLE FSX SUB-FOLDER
; AND UNCOMMENT THE ONES ACTUALLY USED BY YOUR PROJECT!
;
; SetOutPath "$INSTDIR\SubFolderPath" IS THE PATH TO FSX + THE NAME OF THE SUBFOLDER
; File "x:\FolderName\*.*" IS THE ABSOLUTE PATH TO THE FILES IN THE INSTALL FOLDER.
; THE \*.* INDICATES TO INCLUDE ALL FILES IN THE SPECIFIED FOLDER!


Section "MainSection" SEC01

; FSX ROOT FOLDER
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "P:\MyShinyNewAirplane Build Folder\GaugeSound.dll"

; FSX GAUGES FOLDER
SetOutPath "$INSTDIR\Gauges"
File "P:\MyShinyNewAirplane Build Folder\Gauges\*.*"

; FSX SOUND FOLDER
SetOutPath "$INSTDIR\Sound\MyShinyNewAirplane"
File "P:\MyShinyNewAirplane Build Folder\Sound\MyShinyNewAirplane\*.*"

; FSX SimObjects\Airplanes Folder and SubFolders
SetOutPath "$INSTDIR\SimObjects\Airplanes\MyShinyNewAirplane"
File "P:\MyShinyNewAirplane Build Folder\SimObjects\Airplanes\MyShinyNewAirplane\*.*"

SetOutPath "$INSTDIR\SimObjects\Airplanes\MyShinyNewAirplane\Manuals"
File "P:\MyShinyNewAirplane Build Folder\SimObjects\Airplanes\MyShinyNewAirplane\Manuals\*.*"

SetOutPath "$INSTDIR\SimObjects\Airplanes\MyShinyNewAirplane\model"
File "P:\MyShinyNewAirplane Build Folder\SimObjects\Airplanes\MyShinyNewAirplane\model\*.*"

SetOutPath "$INSTDIR\SimObjects\Airplanes\MyShinyNewAirplane\panel"
File "P:\MyShinyNewAirplane Build Folder\SimObjects\Airplanes\MyShinyNewAirplane\panel\*.*"

; THIS PROJECT HAS TWO PANEL FOLDERS SO I NEED TO INCLUDE THESE AS WELL
; THE SAME TECHNIQUE IS USED FOR MULTIPLE \TEXTURE.n FOLDERS...


SetOutPath "$INSTDIR\SimObjects\Airplanes\MyShinyNewAirplane\panel.both"
File "P:\MyShinyNewAirplane Build Folder\SimObjects\Airplanes\MyShinyNewAirplane\panel.both\*.*"

SetOutPath "$INSTDIR\SimObjects\Airplanes\MyShinyNewAirplane\sound"
File "P:\MyShinyNewAirplane Build Folder\SimObjects\Airplanes\MyShinyNewAirplane\sound\*.*"

SetOutPath "$INSTDIR\SimObjects\Airplanes\MyShinyNewAirplane\texture"
File "P:\MyShinyNewAirplane Build Folder\SimObjects\Airplanes\MyShinyNewAirplane\texture\*.*"

SectionEnd

Section -Post
SectionEnd
 
Many thanks Bill for posting this. I for one would really love to have an installer that works with WinXP 32bit to Win7 x86 or Win7 64....


The odd thing with that one customer and the one before, last year, was that it was only those two people.. Thats why I think its an 'outside' thing tripping their installers (well, my installers, but on their computers).

Another thing that I just cant stand about the ClickTeam installer is that it cannot find FS 'every time' on computers. Some Win7 64 and x86 systems hide it, and its always with a person that doesnt know much about computers, 70 years old, just wants to fly. Those poor guys are hit the hardest by the installer not working 100%.

I think its time to see if I can get this Open Source system working...


Bill Leaming,

Is it too much to ask for a screenshot of your folder system for this installer?





Bill O.
 
Last edited:
Bill Leaming,

Does this combine common textures like ClickTeam does to make the total file size smaller?



Bill O.
 
No problem, Bill O.! This is the actual build folder for the C310R installer. Notice that it is essentially a clone of the FSX folder structure, or at least those folders/sub-folders that're actually used by the C310R release.

One of the advantages of the HM NSI/NSIS system is that with one click I can build the installer, then RUN the installer. I point it at a dummy folder named C:\FSX_Dummy so I can then verify that all files were installed in the correct folders... :D
 

Attachments

  • NSI_Installer_Sample_01.jpg
    NSI_Installer_Sample_01.jpg
    94 KB · Views: 437
Bill Leaming,

Does this combine common textures like ClickTeam does to make the total file size smaller?

I honestly have no idea. There are however at least eight different compression algorithims from which to choose. I've always used the one with the tightest compression:

SetCompressor lzma

It's important to understand that once you have one installer.nsi script working, you can copy/paste/edit for a new project in just a few minutes.

There very well may be even "better" front-end GUI's available for NSIS, but this one has served me well and has never failed on any user's machine.
 
Last edited:
Bill,

Many thanks, it even seems to make sense when you put it like that.
Maybe I should start commenting code properly....
 
Even though I'm "coding-challenged"... ANYTHING from Source Forge has got to be worthwhile!

I'll be copying and pasting this post to a permanent document for myself.

Thanks Bill for the info and thanks... Bill for asking all kinds of valuable questions!
 
I should also point out that the HM NIS EDIT program also has a "Wizard" that is very much similar to that used by ClickTeam's program.

It is also possible to set up a dual installer to detect FS9 or FSX if someone wishes to do so.

Frankly though, I can "hand-edit" a copy of my generic script in less time than it would take to use the Wizard...

What truly blew my mind though are the list of HUGE software houses that use NSIS instead of "rolling their own..." :eek:
 
Back
Top