You are here

Need help with an advanced launcher that Simeon made.

13 posts / 0 new
Last post
digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
Need help with an advanced launcher that Simeon made.

I was trying to make a special launcher for some apps. The compiler keeps spitting out errors. Here's the source code:

;Copyright 2007 Simeon Kühl and Digitxp

;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.

;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.

;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;GNU General Public License for more details.

;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

!define APPNAME "GameSuite"
!define VER "0.9.0.0"
!define WEBSITE "PortableApps.com/DevelopmentTest"
!define DEFAULTAPPDIR "Games"
!define NAME "GameSuitePortable"
!define PORTABLEAPPNAME "GameSuite Portable"
OutFile "\..\..\GameSuitePortable.exe"
RequestExecutionLevel user
Icon "..\..\App\AppInfo\Appicon.ico"
;=== Program Details
Name "${PORTABLEAPPNAME}"
OutFile "..\..\${NAME}.exe"
Caption "${PORTABLEAPPNAME} | PortableApps.com"
VIProductVersion "${VER}"
VIAddVersionKey ProductName "${NAME}"
VIAddVersionKey Comments "Allows a collection of games to be run from a removable drive. For additional details, visit ${WEBSITE}"
VIAddVersionKey CompanyName "PortableApps.com"
VIAddVersionKey LegalCopyright "Portableapps.com and Conteributors"
VIAddVersionKey FileDescription "${PORTABLEAPPNAME}"
VIAddVersionKey FileVersion "${VER}"
VIAddVersionKey ProductVersion "${VER}"
VIAddVersionKey InternalName "${PORTABLEAPPNAME}"
VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey OriginalFilename "${NAME}.exe"
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user

LangString LauncherFileNotFound ${LANG_ENGLISH} "${PORTABLEAPPNAME} cannot be started. You may wish to re-install to fix this issue. (ERROR: $MISSINGFILEORPATH could not be found)"
LangString LauncherAlreadyRunning ${LANG_ENGLISH} "Another instance of ${APPNAME} is already running. Please close other instances of ${APPNAME} before launching ${PORTABLEAPPNAME}."


!include "nsDialogs.nsh"
!include "StrRep.nsh"

Page custom nsDialogsPage nsDialogsPageLeave ; 
Sorry for the long post :P
Thanks :).
Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
What errors?

Blum

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
Says

line 75.

Insert original signature here with Greasemonkey Script.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
That is

nsDialogs::Create /NOUNLOAD 1018

guess you don't have the nsDialogs plugin Smile

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
Yeah,

jeez, now it's saying line 117 is wrong. All there is is
Pop $Unequal...

Insert original signature here with Greasemonkey Script.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Yep

And it cant pop it because you haven't specified "Unequal" as a variable.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
Yep.

But now it's zeroing the code from lines 0-31 because strreplace wasn't defined?

Insert original signature here with Greasemonkey Script.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
the problem

I had was that it couldn't find StrRep.nsh.
To solve that, just copy the file called StrRep.nsh from the Sumatra/Other/Source folder to the folder this nsi file is in.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

rab040ma
Offline
Last seen: 5 months 3 days ago
Joined: 2007-08-27 13:35
Or you could put it into

Or you could put it into your NSIS\include folder, so it is available with other projects. About the only drawback with that is if there are different versions of some include file with the same name, But I haven't seen that lately.

MC

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
There's only one thing about that

I already have that under include Sad

Insert original signature here with Greasemonkey Script.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
hmm...thats funy

could you post the last lines of your NSIS log?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I think I found it

You have to delete the line silentinstall, otherwise you wont see anything as this line tell the program not to show up. Thats cool with Johns Launchers but no so cool with your Launcher Smile
And you have 2 Outfile.

And StrRep.nsh isn't needed so that's why it is zeroing it out.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
Yeah, it works!!!

Now if only the button wouldn't say install...

Insert original signature here with Greasemonkey Script.

Log in or register to post comments