GPSFileDepot.com
 

News:

Welcome to GPSFileDepot!

Main Menu

Installer

Started by jbensman, November 11, 2008, 05:45:57 PM

Previous topic - Next topic

jbensman

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

!define: "MUI_INSERT_NSISCONF"=""

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"="http://webpages.charter.net/jbensman/Maps.htm"
!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.



http://webpages.charter.net/jbensman/Maps.htm



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             "http://webpages.charter.net/jbensman/Maps.htm"
  !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) --> http://www.geocities.com/binary_converter/
;  !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?

Thanks


-Oz-

#1
jbensman: Your issue (line 29) appears to be with defining the exe file so its these two lines:
 !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.
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

-Oz-

Mine is 164x314.

I got that size by looking at one of their samples.
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

Tsnake

I am getting ready to try the make a setup file.  Can I get a copy of icon, image, license, readme and msg.  Thanks.

-Oz-

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?
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!