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 :).
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
line 75.
Insert original signature here with Greasemonkey Script.
nsDialogs::Create /NOUNLOAD 1018
guess you don't have the nsDialogs plugin
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
jeez, now it's saying line 117 is wrong. All there is is
Pop $Unequal
...Insert original signature here with Greasemonkey Script.
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
But now it's zeroing the code from lines 0-31 because strreplace wasn't defined?
Insert original signature here with Greasemonkey Script.
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
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
I already have that under include
Insert original signature here with Greasemonkey Script.
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
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
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
Now if only the button wouldn't say install...
Insert original signature here with Greasemonkey Script.