GPSFileDepot Forums

General Category => Map Making Support => Topic started by: jbensman on November 11, 2008, 05:45:57 PM

Title: Installer
Post by: jbensman on November 11, 2008, 05:45:57 PM
I am trying to make and installer for my maps with the directions on this site and I get this error message:

MakeNSIS v2.40 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Processing config:
Processing plugin dlls: "C:\Program Files\NSIS\Plugins\*.dll"
 - AdvSplash::show
 - Banner::destroy
 - Banner::getWindow
 - Banner::show
 - BgImage::AddImage
 - BgImage::AddText
 - BgImage::Clear
 - BgImage::Destroy
 - BgImage::Redraw
 - BgImage::SetBg
 - BgImage::SetReturn
 - BgImage::Sound
 - Dialer::AttemptConnect
 - Dialer::AutodialHangup
 - Dialer::AutodialOnline
 - Dialer::AutodialUnattended
 - Dialer::GetConnectedState
 - InstallOptions::dialog
 - InstallOptions::initDialog
 - InstallOptions::show
 - LangDLL::LangDialog
 - Math::Script
 - NSISdl::download
 - NSISdl::download_quiet
 - Splash::show
 - StartMenu::Init
 - StartMenu::Select
 - StartMenu::Show
 - System::Alloc
 - System::Call
 - System::Copy
 - System::Free
 - System::Get
 - System::Int64Op
 - System::Store
 - TypeLib::GetLibVersion
 - TypeLib::Register
 - TypeLib::UnRegister
 - UserInfo::GetAccountType
 - UserInfo::GetName
 - UserInfo::GetOriginalAccountType
 - VPatch::GetFileCRC32
 - VPatch::GetFileMD5
 - VPatch::vpatchfile
 - nsDialogs::Create
 - nsDialogs::CreateControl
 - nsDialogs::CreateItem
 - nsDialogs::GetUserData
 - nsDialogs::OnBack
 - nsDialogs::OnChange
 - nsDialogs::OnClick
 - nsDialogs::OnNotify
 - nsDialogs::SelectFileDialog
 - nsDialogs::SelectFolderDialog
 - nsDialogs::SetRTL
 - nsDialogs::SetUserData
 - nsDialogs::Show
 - nsExec::Exec
 - nsExec::ExecToLog
 - nsExec::ExecToStack


Changing directory to: "C:\Program Files\Garmin\My Topos"

Processing script file: "C:\Program Files\Garmin\My Topos\My topos.nsi"
!include: "C:\Program Files\NSIS\Include\MUI2.nsh"
!include: "C:\Program Files\NSIS\Contrib\Modern UI 2\MUI2.nsh"
NSIS Modern User Interface version 2.0 - 2002-2008 Joost Verburg (C:\Program Files\NSIS\Contrib\Modern UI 2\MUI2.nsh:8)
!define: "MUI_INCLUDED"=""
!define: "MUI_SYSVERSION"="2.0"
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\Program Files\NSIS\Contrib\Modern UI 2\MUI2.nsh"
!include: closed: "C:\Program Files\NSIS\Include\MUI2.nsh"
!define: "MAP_DESC_NAME"="My Topo Maps"
!define: "MAP_SHORT_NAME"="My Topos"
!define: "MAP_URL"=""
!define: "MAP_EMAIL"="[email protected]"
!define: "MAP_COPYRIGHT"="Copyright (C) 2008 Jim Bensman"
!define: "MAP_VERSION"="1.0"
!define: "MAP_REL_DATE"="Nov 11 2008"
!define: "MAP_ID"="8081"
!define: "DIRECTORY"="C:\Program Files\Garmin\My Topos\"
!define: "EXE_FILE"="C:\Program Files\Garmin\My Topos\my_topos_install.exe"
!define: "INSTALL_MSG"="This wizard will guide you through the installation of My Topo Maps version 1.0 (Nov 11 2008) for Garmin GPS Units.

Please email [email protected] with any questions or comments or if you paid for this map.

It is recommended that you close all other applications before starting Setup.  This will make it possible to update relevant system files without having to reboot your computer.

Click Next to continue."
Name: "My Topo Maps"
OutFile expects 1 parameters, got 3.
Usage: OutFile install_output.exe
Error in script "C:\Program Files\Garmin\My Topos\My topos.nsi" on line 29 -- aborting creation process

Here is what I have where you enter stuff:

; install.nsi
  !include "MUI2.nsh"

; Configuration parameters
  !define MAP_DESC_NAME       "My Topo Maps"
  !define MAP_SHORT_NAME      "My Topos"
  !define MAP_URL             ""
  !define MAP_EMAIL           "[email protected]"
  !define MAP_COPYRIGHT       "Copyright (C) 2008 Jim Bensman"
  !define MAP_VERSION         "1.0"
  !define MAP_REL_DATE        "Nov 11 2008"
  !define MAP_ID              8081             ; Family ID = 4644 (dec) = 1224 (hex) = 2412 (hex flipped) -->
;  !define MAP_TYPE            11224          ; only if using custom types
  !define DIRECTORY           "C:\Program Files\Garmin\My Topos\"
  !define EXE_FILE            "${DIRECTORY}my_topos_install.exe"

I do not have custom types on this maps set , but one of the mapsets I want to make an installer for has custom types.  Do you do any thing different for that set?


Title: Re: Installer
Post by: -Oz- on November 12, 2008, 08:12:25 AM
jbensman: Your issue (line 29) appears to be with defining the exe file so its these two lines:
Code: [Select]
 !define DIRECTORY  "C:\Documents and Settings\Administrator\My Documents\mapinstall\"
  !define EXE_FILE            "${DIRECTORY}map_install.exe"

You need to make sure the directory exists and has the ending \ and then the .exe file above makes sense.

Now for custom types you do have to do things a little different.

If you open the .nsi file in something that will let you view line numbers (I use notepad++ its free and great) you need to delete the ; on line 15 and make that equal to your custom type file.  Then on line 108 remove the semicolon. On line 118 remove the semicolon.

That will include the custom type with the installer.
Title: Re: Installer
Post by: -Oz- on November 29, 2008, 11:51:16 PM
Mine is 164x314.

I got that size by looking at one of their samples.
Title: Re: Installer
Post by: Tsnake on January 12, 2009, 05:12:19 PM
I am getting ready to try the make a setup file.  Can I get a copy of icon, image, license, readme and msg.  Thanks.
Title: Re: Installer
Post by: -Oz- on January 12, 2009, 06:30:08 PM
I've attached the icon I use, the image I use, and the license I use.  I don't use a readme (although maybe I should to cover some FAQs).  And msg?