I'm a rookie with all things C++ and have almost no idea what I'm doing but I was experimenting on making RocketDock portable (a launcher) but I don't know what i'm doing wrong. The C++ online tutorials did nothing to help. What am I doing wrong?
MakeNSIS v2.44 - Copyright 1995-2009 Contributors See the file COPYING for license details. Credits can be found in the Users Manual. Processing config: Processing plugin dlls: "E:\PROGRAM FILES\NSISPortable\App\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 - ExecDos::exec - ExecDos::isdone - ExecDos::wait - FindProcDLL::FindProc - InstallOptions::dialog - InstallOptions::initDialog - InstallOptions::show - KillProcDLL::KillProc - LangDLL::LangDialog - Math::Script - MoreInfo::GetComments - MoreInfo::GetCompanyName - MoreInfo::GetFileDescription - MoreInfo::GetFileVersion - MoreInfo::GetInternalName - MoreInfo::GetLegalCopyright - MoreInfo::GetLegalTrademarks - MoreInfo::GetOSUserinterfaceLanguage - MoreInfo::GetOriginalFilename - MoreInfo::GetPrivateBuild - MoreInfo::GetProductName - MoreInfo::GetProductVersion - MoreInfo::GetSpecialBuild - MoreInfo::GetUserDefined - 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 - newadvsplash::hwnd - newadvsplash::play - newadvsplash::show - newadvsplash::stop - nsDialogs::Create - nsDialogs::CreateControl - nsDialogs::CreateItem - nsDialogs::CreateTimer - nsDialogs::GetUserData - nsDialogs::KillTimer - nsDialogs::OnBack - nsDialogs::OnChange - nsDialogs::OnClick - nsDialogs::OnNotify - nsDialogs::SelectFileDialog - nsDialogs::SelectFolderDialog - nsDialogs::SetRTL - nsDialogs::SetUserData - nsDialogs::Show - nsExec::Exec - nsExec::ExecToLog - nsExec::ExecToStack - registry::_Close - registry::_CopyKey - registry::_CopyValue - registry::_CreateKey - registry::_DeleteKey - registry::_DeleteKeyEmpty - registry::_DeleteValue - registry::_Find - registry::_HexToStr - registry::_KeyExists - registry::_MoveKey - registry::_MoveValue - registry::_Open - registry::_Read - registry::_ReadExtra - registry::_RestoreKey - registry::_SaveKey - registry::_StrToHex - registry::_Unload - registry::_Write - registry::_WriteExtra - textreplace::_FillReadBuffer - textreplace::_FindInFile - textreplace::_FreeReadBuffer - textreplace::_ReplaceInFile - textreplace::_Unload !define: "MUI_INSERT_NSISCONF"="" Changing directory to: "E:\PROGRAM FILES\RocketDock DEVELOPMENT" Processing script file: "E:\PROGRAM FILES\RocketDock DEVELOPMENT\PortableApps.comInstaller.nsi" !define: "PORTABLEAPPSINSTALLERVERSION"="0.12.0.0" !include: "PortableApps.comInstallerConfig.nsh" !define: "NAME"="RocketDock Portable" !define: "SHORTNAME"="RocketDockPortable" !define: "VERSION"=".1" !define: "FILENAME"="RocketDock_Portable_.1" !define: "CHECKRUNNING"="RocketDockPortable.exe" !define: "CLOSENAME"="RocketDock Portable " !define: "INSTALLERLANGUAGE"="English" !define: "MAINSECTIONDESCRIPTION"="Install the portable app" !define: "OPTIONALSECTIONTITLE"="Additional Languages" !define: "OPTIONALSECTIONDESCRIPTION"="Add multilingual support for this app" !define: "OPTIONALSECTIONSELECTEDAPPINFOSUFFIX"="(Multilingual)" !define: "OPTIONALSECTIONNOTSELECTEDAPPINFOSUFFIX"="(English)" !include: closed: "PortableApps.comInstallerConfig.nsh" !define: "MAINSECTIONIDX"="0" Name: "RocketDock Portable" OutFile: "..\..\..\RocketDock_Portable_.1.paf.exe" InstallDir: "\RocketDockPortable" Caption: "RocketDock Portable | PortableApps.com Installer" VIAddVersionKey: "ProductName" "RocketDock Portable" VIAddVersionKey: "Comments" "${INSTALLERCOMMENTS}" VIAddVersionKey: "CompanyName" "PortableApps.com" VIAddVersionKey: "LegalCopyright" "PortableApps.com Installer Copyright 2007-2009 PortableApps.com." VIAddVersionKey: "FileDescription" "RocketDock Portable" VIAddVersionKey: "FileVersion" ".1" VIAddVersionKey: "ProductVersion" ".1" VIAddVersionKey: "InternalName" "RocketDock Portable" VIAddVersionKey: "LegalTrademarks" "${INSTALLERADDITIONALTRADEMARKS}PortableApps.com is a registered trademark of Rare Ideas, LLC." VIAddVersionKey: "OriginalFilename" "RocketDock_Portable_.1.paf.exe" VIAddVersionKey: "PortableApps.comInstallerVersion" "0.12.0.0" SetCompress: Auto SetCompressor: /SOLID lzma SetCompressorDictSize: 32 mb SetDatablockOptimize: On CRCCheck: on AutoCloseWindow: true !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\MUI.nsh" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh" NSIS Modern User Interface version 1.8 - Copyright 2002-2009 Joost Verburg (E:\PROGRAM FILES\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh:8) !define: "MUI_INCLUDED"="" !define: "MUI_SYSVERSION"="1.8" !define: "MUI_VERBOSE"="3" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\MUI.nsh" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\FileFunc.nsh" !define: "FILEFUNC_INCLUDED"="" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\Util.nsh" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\Util.nsh" !define: "Locate"="!insertmacro LocateCall" !define: "un.Locate"="!insertmacro LocateCall" !define: "GetSize"="!insertmacro GetSizeCall" !define: "un.GetSize"="!insertmacro GetSizeCall" !define: "DriveSpace"="!insertmacro DriveSpaceCall" !define: "un.DriveSpace"="!insertmacro DriveSpaceCall" !define: "GetDrives"="!insertmacro GetDrivesCall" !define: "un.GetDrives"="!insertmacro GetDrivesCall" !define: "GetTime"="!insertmacro GetTimeCall" !define: "un.GetTime"="!insertmacro GetTimeCall" !define: "GetFileAttributes"="!insertmacro GetFileAttributesCall" !define: "un.GetFileAttributes"="!insertmacro GetFileAttributesCall" !define: "GetFileVersion"="!insertmacro GetFileVersionCall" !define: "un.GetFileVersion"="!insertmacro GetFileVersionCall" !define: "GetExeName"="!insertmacro GetExeNameCall" !define: "un.GetExeName"="!insertmacro GetExeNameCall" !define: "GetExePath"="!insertmacro GetExePathCall" !define: "un.GetExePath"="!insertmacro GetExePathCall" !define: "GetParameters"="!insertmacro GetParametersCall" !define: "un.GetParameters"="!insertmacro GetParametersCall" !define: "GetOptions"="!insertmacro GetOptionsCall" !define: "un.GetOptions"="!insertmacro GetOptionsCall" !define: "GetOptionsS"="!insertmacro GetOptionsSCall" !define: "un.GetOptionsS"="!insertmacro GetOptionsSCall" !define: "GetRoot"="!insertmacro GetRootCall" !define: "un.GetRoot"="!insertmacro GetRootCall" !define: "GetParent"="!insertmacro GetParentCall" !define: "un.GetParent"="!insertmacro GetParentCall" !define: "GetFileName"="!insertmacro GetFileNameCall" !define: "un.GetFileName"="!insertmacro GetFileNameCall" !define: "GetBaseName"="!insertmacro GetBaseNameCall" !define: "un.GetBaseName"="!insertmacro GetBaseNameCall" !define: "GetFileExt"="!insertmacro GetFileExtCall" !define: "un.GetFileExt"="!insertmacro GetFileExtCall" !define: "BannerTrimPath"="!insertmacro BannerTrimPathCall" !define: "un.BannerTrimPath"="!insertmacro BannerTrimPathCall" !define: "DirState"="!insertmacro DirStateCall" !define: "un.DirState"="!insertmacro DirStateCall" !define: "RefreshShellIcons"="!insertmacro RefreshShellIconsCall" !define: "un.RefreshShellIcons"="!insertmacro RefreshShellIconsCall" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\FileFunc.nsh" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\LogicLib.nsh" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\LogicLib.nsh" !insertmacro: DriveSpace !insertmacro: end of DriveSpace !insertmacro: GetOptions !insertmacro: end of GetOptions !insertmacro: GetDrives !insertmacro: end of GetDrives !insertmacro: GetRoot !insertmacro: end of GetRoot !insertmacro: GetSize !insertmacro: end of GetSize !insertmacro: GetParent !insertmacro: end of GetParent !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\TextFunc.nsh" !define: "TEXTFUNC_INCLUDED"="" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\FileFunc.nsh" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\FileFunc.nsh" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\Util.nsh" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\Util.nsh" !define: "LineFind"="!insertmacro LineFindCall" !define: "un.LineFind"="!insertmacro LineFindCall" !define: "LineRead"="!insertmacro LineReadCall" !define: "un.LineRead"="!insertmacro LineReadCall" !define: "FileReadFromEnd"="!insertmacro FileReadFromEndCall" !define: "un.FileReadFromEnd"="!insertmacro FileReadFromEndCall" !define: "LineSum"="!insertmacro LineSumCall" !define: "un.LineSum"="!insertmacro LineSumCall" !define: "FileJoin"="!insertmacro FileJoinCall" !define: "un.FileJoin"="!insertmacro FileJoinCall" !define: "TextCompare"="!insertmacro TextCompareCall" !define: "un.TextCompare"="!insertmacro TextCompareCall" !define: "TextCompareS"="!insertmacro TextCompareSCall" !define: "un.TextCompareS"="!insertmacro TextCompareSCall" !define: "ConfigRead"="!insertmacro ConfigReadCall" !define: "un.ConfigRead"="!insertmacro ConfigReadCall" !define: "ConfigReadS"="!insertmacro ConfigReadSCall" !define: "un.ConfigReadS"="!insertmacro ConfigReadSCall" !define: "ConfigWrite"="!insertmacro ConfigWriteCall" !define: "un.ConfigWrite"="!insertmacro ConfigWriteCall" !define: "ConfigWriteS"="!insertmacro ConfigWriteSCall" !define: "un.ConfigWriteS"="!insertmacro ConfigWriteSCall" !define: "FileRecode"="!insertmacro FileRecodeCall" !define: "un.FileRecode"="!insertmacro FileRecodeCall" !define: "TrimNewLines"="!insertmacro TrimNewLinesCall" !define: "un.TrimNewLines"="!insertmacro TrimNewLinesCall" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\TextFunc.nsh" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\WordFunc.nsh" !define: "WORDFUNC_INCLUDED"="" !include: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\Util.nsh" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\Util.nsh" !define: "WordFind"="!insertmacro WordFindCall ''" !define: "un.WordFind"="!insertmacro WordFindCall ''" !define: "WordFindS"="!insertmacro WordFindSCall ''" !define: "un.WordFindS"="!insertmacro WordFindSCall ''" !define: "WordFind2X"="!insertmacro WordFind2XCall" !define: "un.WordFind2X"="!insertmacro WordFind2XCall" !define: "WordFind2XS"="!insertmacro WordFind2XSCall" !define: "un.WordFind2XS"="!insertmacro WordFind2XSCall" !define: "WordFind3X"="!insertmacro WordFind3XCall" !define: "un.WordFind3X"="!insertmacro WordFind3XCall" !define: "WordFind3XS"="!insertmacro WordFind3XSCall" !define: "un.WordFind3XS"="!insertmacro WordFind3XSCall" !define: "WordReplace"="!insertmacro WordReplaceCall" !define: "un.WordReplace"="!insertmacro WordReplaceCall" !define: "WordReplaceS"="!insertmacro WordReplaceSCall" !define: "un.WordReplaceS"="!insertmacro WordReplaceSCall" !define: "WordAdd"="!insertmacro WordAddCall" !define: "un.WordAdd"="!insertmacro WordAddCall" !define: "WordAddS"="!insertmacro WordAddSCall" !define: "un.WordAddS"="!insertmacro WordAddSCall" !define: "WordInsert"="!insertmacro WordInsertCall" !define: "un.WordInsert"="!insertmacro WordInsertCall" !define: "WordInsertS"="!insertmacro WordInsertSCall" !define: "un.WordInsertS"="!insertmacro WordInsertSCall" !define: "StrFilter"="!insertmacro StrFilterCall" !define: "un.StrFilter"="!insertmacro StrFilterCall" !define: "StrFilterS"="!insertmacro StrFilterSCall" !define: "un.StrFilterS"="!insertmacro StrFilterSCall" !define: "VersionCompare"="!insertmacro VersionCompareCall" !define: "un.VersionCompare"="!insertmacro VersionCompareCall" !define: "VersionConvert"="!insertmacro VersionConvertCall" !define: "un.VersionConvert"="!insertmacro VersionConvertCall" !include: closed: "E:\PROGRAM FILES\NSISPortable\App\NSIS\Include\WordFunc.nsh" Icon: "..\..\App\AppInfo\appicon.ico" Error while loading icon from "..\..\App\AppInfo\appicon.ico": can't open file Error in script "E:\PROGRAM FILES\RocketDock DEVELOPMENT\PortableApps.comInstaller.nsi" on line 100 -- aborting creation process
Error while loading icon from "..\..\App\AppInfo\appicon.ico": can't open file
thats where you compilation stops, basically nsis can't find your icon at that path, possibly because you didn't set on there, and this isn't c++ this is nsis syntax is nothing like c++
your friendly neighbourhood moderator Zach Thibeau
but what is "..\..\App\AppInfo\appicon.ico" what am I supposed to put in my .nsh file to make the error message not appear?
You need to follow the guidelines laid out here:
https://portableapps.com/node/12851
The installer is only for apps in PortableApps.com Format.
Sometimes, the impossible can become possible, if you're awesome!
I thought all I had to do was edit the .nsh file from the installer and (with FindProc and MoreInfo) somehow use NSIS and create the installer like that. I want to make the installer in PA format but I really don't know how to even get started. I don't know what i'm supposed to even do with the website you showed me. Can you clarify?
P.S. the version numbers and everything else that is in the license aren't real, I'm just trying to get started with something and keep the app as simple as possible before I create the real thing.
Okay...
First of all, like the guy above said... we use NSIS no C++. But I think a little different... they do have some similarities in syntax.
The error you're having is that you don't have an icon for the installer or your app. You have to place an icon in the \App\AppInfo folder.
I have found this tool very useful in icon making. You should use this tool for extracting the icon from the exe in your app.
http://icofx.ro/
I hope this helps.
how little I know about either "language." Thanks for the link but is it legal to modify an icon (from rocketdock)?
...
I donno...
But you shouldn't be modifiying... just extracting from the original exe.
For personal use, you can normally do just about anything.
If you're wanting to redistribute it, no, which brings me to a point about the legality even of some of our "launcher only" things which we get in the beta testing forum. For example, tanisthalon's Wink Portable Launcher includes the Wink icon. I think that it's actually illegal to do even this without permission. Then you get to issues with redistribution with the current licensing of PortableApps.com components... at the moment I think probably even that, with permission from Satish, is still illegal!
Pyromaniac, just make sure you don't publish it here other than as a launcher... and even then, consider making a similar icon yourself rather than using the RocketDock icon for the reasons mentioned.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
he had permission from the dev, at least I think so. (for wink)
I'm sure that there are other rocket dock icons you can use.
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
I thought he was developing a launcher?
I am developing a launcher but first, I want to know that I can do it first. I'm just seeing if its possible because I saw that RocketDock doesn't save the settings portably but on the computer so I wanted to make a portable one.
???
It doesn't?
https://portableapps.com/node/9715
I never saw that. I just knew that RocketDock by itself saves settings on the computer but I didn't know I could do that. So much for my installer.